• Home
  • Raw
  • Download

Lines Matching +full:opencl +full:- +full:spirv

1 // Copyright (c) 2015-2016 The Khronos Group Inc.
7 // http://www.apache.org/licenses/LICENSE-2.0
26 #include "spirv-tools/libspirv.h"
65 // the first-line capability exists in that std::vector, success is expected;
71 // declared. However, Combine() only produces tuples -- it cannot produce, say,
125 OpMemoryModel Logical OpenCL in TEST_F()
135 // clang-format off
773 " OpMemoryModel Logical OpenCL ";
837 " OpMemoryModel Logical OpenCL"
849 " OpMemoryModel Physical32 OpenCL"
861 " OpMemoryModel Physical64 OpenCL"
1021 // clang-format on
1037 // clang-format off
1369 // Uniform must target a non-void value.
1476 // clang-format on
1504 std::string("OpMemoryModel Logical OpenCL "
1519 // clang-format off
1534 // See https://github.com/KhronosGroup/SPIRV-Tools/issues/365
1827 // See https://github.com/KhronosGroup/SPIRV-Tools/issues/365
1863 // OpenGL 4.0 is based on SPIR-V 1.0
1963 // clang-format on
1970 // the image-operands part. The assembly defines constants %fzero and %izero
1975 // clang-format off
1979 OpMemoryModel Logical OpenCL
1999 // clang-format on
2027 for (uint64_t typeIndex = 0; typeIndex < table->count; ++typeIndex) { in spvCoreOperandTableNameLookup()
2028 const auto& group = table->types[typeIndex]; in spvCoreOperandTableNameLookup()
2048 spvCoreOperandTableNameLookup(env, sc.context->operand_table, in Exists()
2129 // From https://github.com/KhronosGroup/SPIRV-Tools/issues/248 in TEST_F()
2139 OpMemoryModel Logical OpenCL in TEST_F()
2171 const std::string spirv = R"( in TEST_F() local
2174 OpMemoryModel Logical OpenCL in TEST_F()
2177 CompileSuccessfully(spirv); in TEST_F()
2182 const std::string spirv = R"( in TEST_F() local
2185 OpMemoryModel Logical OpenCL in TEST_F()
2188 CompileSuccessfully(spirv); in TEST_F()
2196 const std::string spirv = R"( in TEST_F() local
2203 CompileSuccessfully(spirv); in TEST_F()
2208 const std::string spirv = R"( in TEST_F() local
2215 CompileSuccessfully(spirv, SPV_ENV_VULKAN_1_0); in TEST_F()
2223 const std::string spirv = R"( in TEST_F() local
2234 CompileSuccessfully(spirv, SPV_ENV_VULKAN_1_0); in TEST_F()
2239 const std::string spirv = R"( in TEST_F() local
2248 CompileSuccessfully(spirv, SPV_ENV_VULKAN_1_0); in TEST_F()
2257 const std::string spirv = R"( in TEST_F() local
2262 OpMemoryModel Physical64 OpenCL in TEST_F()
2265 CompileSuccessfully(spirv, SPV_ENV_OPENCL_1_2); in TEST_F()
2270 HasSubstr("Capability Pipes is not allowed by OpenCL 1.2 Full Profile")); in TEST_F()
2274 const std::string spirv = R"( in TEST_F() local
2280 OpMemoryModel Physical64 OpenCL in TEST_F()
2284 CompileSuccessfully(spirv, SPV_ENV_OPENCL_1_2); in TEST_F()
2289 const std::string spirv = R"( in TEST_F() local
2294 OpMemoryModel Physical64 OpenCL in TEST_F()
2298 CompileSuccessfully(spirv, SPV_ENV_OPENCL_1_2); in TEST_F()
2304 "Capability Sampled1D is not allowed by OpenCL 1.2 Full Profile")); in TEST_F()
2308 const std::string spirv = R"( in TEST_F() local
2313 OpMemoryModel Physical64 OpenCL in TEST_F()
2316 CompileSuccessfully(spirv, SPV_ENV_OPENCL_EMBEDDED_1_2); in TEST_F()
2322 "Capability Int64 is not allowed by OpenCL 1.2 Embedded Profile")); in TEST_F()
2326 const std::string spirv = R"( in TEST_F() local
2332 OpMemoryModel Physical64 OpenCL in TEST_F()
2336 CompileSuccessfully(spirv, SPV_ENV_OPENCL_EMBEDDED_1_2); in TEST_F()
2341 const std::string spirv = R"( in TEST_F() local
2346 OpMemoryModel Physical64 OpenCL in TEST_F()
2350 CompileSuccessfully(spirv, SPV_ENV_OPENCL_EMBEDDED_1_2); in TEST_F()
2354 HasSubstr("Capability Sampled1D is not allowed by OpenCL 1.2 " in TEST_F()
2359 const std::string spirv = R"( in TEST_F() local
2364 OpMemoryModel Physical64 OpenCL in TEST_F()
2368 CompileSuccessfully(spirv, SPV_ENV_OPENCL_EMBEDDED_1_2); in TEST_F()
2372 HasSubstr("Capability Pipes is not allowed by OpenCL 1.2 " in TEST_F()
2377 const std::string spirv = R"( in TEST_F() local
2383 OpMemoryModel Physical64 OpenCL in TEST_F()
2386 CompileSuccessfully(spirv, SPV_ENV_OPENCL_2_0); in TEST_F()
2391 const std::string spirv = R"( in TEST_F() local
2396 OpMemoryModel Physical64 OpenCL in TEST_F()
2399 CompileSuccessfully(spirv, SPV_ENV_OPENCL_2_0); in TEST_F()
2405 "Capability Matrix is not allowed by OpenCL 2.0/2.1 Full Profile")); in TEST_F()
2409 const std::string spirv = R"( in TEST_F() local
2415 OpMemoryModel Physical64 OpenCL in TEST_F()
2419 CompileSuccessfully(spirv, SPV_ENV_OPENCL_2_0); in TEST_F()
2424 const std::string spirv = R"( in TEST_F() local
2429 OpMemoryModel Physical64 OpenCL in TEST_F()
2433 CompileSuccessfully(spirv, SPV_ENV_OPENCL_2_0); in TEST_F()
2437 HasSubstr("Capability Sampled1D is not allowed by OpenCL 2.0/2.1 " in TEST_F()
2442 const std::string spirv = R"( in TEST_F() local
2447 OpMemoryModel Physical64 OpenCL in TEST_F()
2450 CompileSuccessfully(spirv, SPV_ENV_OPENCL_EMBEDDED_2_0); in TEST_F()
2454 HasSubstr("Capability Int64 is not allowed by OpenCL 2.0/2.1 " in TEST_F()
2459 const std::string spirv = R"( in TEST_F() local
2465 OpMemoryModel Physical64 OpenCL in TEST_F()
2469 CompileSuccessfully(spirv, SPV_ENV_OPENCL_EMBEDDED_2_0); in TEST_F()
2474 const std::string spirv = R"( in TEST_F() local
2479 OpMemoryModel Physical64 OpenCL in TEST_F()
2483 CompileSuccessfully(spirv, SPV_ENV_OPENCL_EMBEDDED_2_0); in TEST_F()
2487 HasSubstr("Capability Sampled1D is not allowed by OpenCL 2.0/2.1 " in TEST_F()
2492 const std::string spirv = R"( in TEST_F() local
2497 OpMemoryModel Physical64 OpenCL in TEST_F()
2500 CompileSuccessfully(spirv, SPV_ENV_OPENCL_2_2); in TEST_F()
2505 const std::string spirv = R"( in TEST_F() local
2510 OpMemoryModel Physical64 OpenCL in TEST_F()
2513 CompileSuccessfully(spirv, SPV_ENV_OPENCL_2_2); in TEST_F()
2518 HasSubstr("Capability Matrix is not allowed by OpenCL 2.2 Full Profile")); in TEST_F()
2522 const std::string spirv = R"( in TEST_F() local
2528 OpMemoryModel Physical64 OpenCL in TEST_F()
2532 CompileSuccessfully(spirv, SPV_ENV_OPENCL_2_2); in TEST_F()
2537 const std::string spirv = R"( in TEST_F() local
2542 OpMemoryModel Physical64 OpenCL in TEST_F()
2546 CompileSuccessfully(spirv, SPV_ENV_OPENCL_2_2); in TEST_F()
2552 "Capability Sampled1D is not allowed by OpenCL 2.2 Full Profile")); in TEST_F()
2556 const std::string spirv = R"( in TEST_F() local
2561 OpMemoryModel Physical64 OpenCL in TEST_F()
2564 CompileSuccessfully(spirv, SPV_ENV_OPENCL_EMBEDDED_2_2); in TEST_F()
2570 "Capability Int64 is not allowed by OpenCL 2.2 Embedded Profile")); in TEST_F()
2574 const std::string spirv = R"( in TEST_F() local
2580 OpMemoryModel Physical64 OpenCL in TEST_F()
2584 CompileSuccessfully(spirv, SPV_ENV_OPENCL_EMBEDDED_2_2); in TEST_F()
2589 const std::string spirv = R"( in TEST_F() local
2594 OpMemoryModel Physical64 OpenCL in TEST_F()
2598 CompileSuccessfully(spirv, SPV_ENV_OPENCL_EMBEDDED_2_2); in TEST_F()
2602 HasSubstr("Capability Sampled1D is not allowed by OpenCL 2.2 " in TEST_F()
2608 // by an extension. See https://github.com/KhronosGroup/SPIRV-Tools/issues/1596
2613 const std::string spirv = R"( in TEST_F() local
2619 CompileSuccessfully(spirv, SPV_ENV_UNIVERSAL_1_0); in TEST_F()
2629 const std::string spirv = R"( in TEST_F() local
2635 CompileSuccessfully(spirv, SPV_ENV_UNIVERSAL_1_0); in TEST_F()
2647 const std::string spirv = R"( in TEST_F() local
2657 CompileSuccessfully(spirv, SPV_ENV_UNIVERSAL_1_0); in TEST_F()
2664 // extension. See https://github.com/KhronosGroup/SPIRV-Tools/issues/1624
2671 const std::string spirv = R"( in TEST_F() local
2676 OpMemoryModel Physical32 OpenCL in TEST_F()
2689 CompileSuccessfully(spirv, SPV_ENV_UNIVERSAL_1_0); in TEST_F()
2699 const std::string spirv = R"( in TEST_F() local
2704 OpMemoryModel Physical32 OpenCL in TEST_F()
2717 CompileSuccessfully(spirv, SPV_ENV_UNIVERSAL_1_0); in TEST_F()
2727 const std::string spirv = R"( in TEST_F() local
2732 OpMemoryModel Physical32 OpenCL in TEST_F()
2745 CompileSuccessfully(spirv, SPV_ENV_UNIVERSAL_1_0); in TEST_F()
2751 const std::string spirv = R"( in TEST_F() local
2759 CompileSuccessfully(spirv, SPV_ENV_UNIVERSAL_1_3); in TEST_F()
2765 const std::string spirv = R"( in TEST_F() local
2773 CompileSuccessfully(spirv, SPV_ENV_UNIVERSAL_1_3); in TEST_F()
2784 const std::string spirv = R"( in TEST_F() local
2803 CompileSuccessfully(spirv, SPV_ENV_UNIVERSAL_1_0); in TEST_F()
2808 // Test that extensions incorporated into SPIR-V 1.5 no longer require
2843 const auto spirv = MinimalShaderModuleWithCapability(GetParam().capability); in TEST_P() local
2844 CompileSuccessfully(spirv, GetParam().last_version_requiring_extension); in TEST_P()
2850 << spirv << "\n"; in TEST_P()
2858 const auto spirv = MinimalShaderModuleWithCapability(GetParam().capability); in TEST_P() local
2859 CompileSuccessfully(spirv, GetParam().first_version_in_core); in TEST_P()
2862 EXPECT_THAT(getDiagnosticString(), Eq("")) << spirv << "\n"; in TEST_P()
2867 const auto spirv = in TEST_P() local
2869 CompileSuccessfully(spirv, GetParam().first_version_in_core); in TEST_P()
2872 EXPECT_THAT(getDiagnosticString(), Eq("")) << spirv << "\n"; in TEST_P()
2937 const auto spirv = in TEST_P() local
2939 CompileSuccessfully(spirv, SPV_ENV_UNIVERSAL_1_4); in TEST_P()
2952 const auto spirv = in TEST_P() local
2954 CompileSuccessfully(spirv, SPV_ENV_UNIVERSAL_1_5); in TEST_P()
2967 const auto spirv = MinimalShaderModuleWithCapability("ShaderViewportIndex"); in TEST_F() local
2968 CompileSuccessfully(spirv, SPV_ENV_UNIVERSAL_1_5); in TEST_F()
2974 const auto spirv = MinimalShaderModuleWithCapability("ShaderLayer"); in TEST_F() local
2975 CompileSuccessfully(spirv, SPV_ENV_UNIVERSAL_1_5); in TEST_F()