Fix for issue #3020

Make OpEmitTMeshasksEXT a terminal instructions
This commit is contained in:
Pankaj Mistry
2022-09-08 18:55:53 -07:00
parent 7757cbebe4
commit 71f5f219ad
5 changed files with 158 additions and 158 deletions

View File

@@ -8559,6 +8559,8 @@ spv::Id TGlslangToSpvTraverser::createMiscOperation(glslang::TOperator op, spv::
if(taskPayloadID)
operands.push_back(taskPayloadID);
builder.createNoResultOp(spv::OpEmitMeshTasksEXT, operands);
// Make it a terminating instruction in the current block
builder.createAndSetNoPredecessorBlock("post-OpEmitMeshTasksEXT");
return 0;
case glslang::EOpSetMeshOutputsEXT:
builder.createNoResultOp(spv::OpSetMeshOutputsEXT, operands);