mirror of
https://github.com/openharmony/third_party_spirv-tools.git
synced 2026-07-21 03:35:25 -04:00
Refactored validation_state, added new types
- validation_state.cpp uses functions from opcode.h instead of in-place switches which need to be updated. - added new spirv 1.1 type declaration opcodes to a 'is op type declaration' switch in opcode.cpp.
This commit is contained in:
committed by
David Neto
parent
da4ae05638
commit
4ef3b3e0b9
@@ -255,6 +255,8 @@ int32_t spvOpcodeGeneratesType(SpvOp op) {
|
||||
case SpvOpTypeReserveId:
|
||||
case SpvOpTypeQueue:
|
||||
case SpvOpTypePipe:
|
||||
case SpvOpTypePipeStorage:
|
||||
case SpvOpTypeNamedBarrier:
|
||||
return true;
|
||||
default:
|
||||
// In particular, OpTypeForwardPointer does not generate a type,
|
||||
|
||||
Reference in New Issue
Block a user