Open dneto0 opened 6 years ago
This should pass validation when assembled for 1.0:
OpCapability Shader
OpCapability Linkage
OpExtension "SPV_KHR_storage_buffer_storage_class"
OpMemoryModel Logical GLSL450
%uint = OpTypeInt 32 0
%_ptr_StorageBuffer_uint = OpTypePointer StorageBuffer %uint
I have a fix for this pending
VersionCheck in validate_instruction.cpp checks minimum version for a SPIR-V opcode. But it ignores min-version constraints on operands.
For example, when assembled with --target-env spv1.0, the following should fail validation because StorageBuffer is not in SPIR-V 1.0 core. (StorageBuffer is enabled by SPV_KHR_storage_buffer_storage_class)