mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-21 22:33:08 +01:00
Updated spirv-tools.
This commit is contained in:
3
3rdparty/spirv-tools/source/text.cpp
vendored
3
3rdparty/spirv-tools/source/text.cpp
vendored
@@ -227,8 +227,7 @@ spv_result_t spvTextEncodeOperand(const spvtools::AssemblyGrammar& grammar,
|
||||
|
||||
// Set the extended instruction type.
|
||||
// The import set id is the 3rd operand of OpExtInst.
|
||||
if (spv::Op(pInst->opcode) == spv::Op::OpExtInst &&
|
||||
pInst->words.size() == 4) {
|
||||
if (spvIsExtendedInstruction(pInst->opcode) && pInst->words.size() == 4) {
|
||||
auto ext_inst_type = context->getExtInstTypeForId(pInst->words[3]);
|
||||
if (ext_inst_type == SPV_EXT_INST_TYPE_NONE) {
|
||||
return context->diagnostic()
|
||||
|
||||
Reference in New Issue
Block a user