Unverified Commit 361931c6 by John Kessenich Committed by GitHub

Merge pull request #1836 from amdrexu/bugfix

OpIsHelperInvocationEXT should declare relevant SPV extension and capability
parents 1a6e8534 bb7307b4
...@@ -7619,8 +7619,9 @@ spv::Id TGlslangToSpvTraverser::createNoArgOperation(glslang::TOperator op, spv: ...@@ -7619,8 +7619,9 @@ spv::Id TGlslangToSpvTraverser::createNoArgOperation(glslang::TOperator op, spv:
case glslang::EOpIsHelperInvocation: case glslang::EOpIsHelperInvocation:
{ {
std::vector<spv::Id> args; // Dummy arguments std::vector<spv::Id> args; // Dummy arguments
spv::Id id = builder.createOp(spv::OpIsHelperInvocationEXT, typeId, args); builder.addExtension(spv::E_SPV_EXT_demote_to_helper_invocation);
return id; builder.addCapability(spv::CapabilityDemoteToHelperInvocationEXT);
return builder.createOp(spv::OpIsHelperInvocationEXT, typeId, args);
} }
case glslang::EOpReadClockSubgroupKHR: { case glslang::EOpReadClockSubgroupKHR: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment