mirror of
https://github.com/openharmony/third_party_spirv-tools.git
synced 2026-07-20 19:27:02 -04:00
Support OpenCL 1.2 and 2.0 target environments
include: Add target environment enums for OpenCL 1.2 and 2.0 Validator: Validate OpenCL capabilities Update validate capabilities to handle embedded profiles Add test for OpenCL capabilities validation Update messages to mention the OpenCL profile used Re-format val_capability_test.cpp
This commit is contained in:
committed by
David Neto
parent
059fe0822a
commit
12447d8465
@@ -91,7 +91,12 @@ spv_result_t spvOpcodeTableGet(spv_opcode_table* pInstTable,
|
||||
switch (env) {
|
||||
case SPV_ENV_UNIVERSAL_1_0:
|
||||
case SPV_ENV_VULKAN_1_0:
|
||||
case SPV_ENV_OPENCL_1_2:
|
||||
case SPV_ENV_OPENCL_EMBEDDED_1_2:
|
||||
case SPV_ENV_OPENCL_2_0:
|
||||
case SPV_ENV_OPENCL_EMBEDDED_2_0:
|
||||
case SPV_ENV_OPENCL_2_1:
|
||||
case SPV_ENV_OPENCL_EMBEDDED_2_1:
|
||||
case SPV_ENV_OPENGL_4_0:
|
||||
case SPV_ENV_OPENGL_4_1:
|
||||
case SPV_ENV_OPENGL_4_2:
|
||||
@@ -104,6 +109,7 @@ spv_result_t spvOpcodeTableGet(spv_opcode_table* pInstTable,
|
||||
return SPV_SUCCESS;
|
||||
case SPV_ENV_UNIVERSAL_1_2:
|
||||
case SPV_ENV_OPENCL_2_2:
|
||||
case SPV_ENV_OPENCL_EMBEDDED_2_2:
|
||||
*pInstTable = &kTable_1_2;
|
||||
return SPV_SUCCESS;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user