Merge pull request #1836 from amdrexu/bugfix

OpIsHelperInvocationEXT should declare relevant SPV extension and capability
This commit is contained in:
John Kessenich 2019-07-15 07:23:16 -06:00 committed by GitHub
commit 361931c6f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7619,8 +7619,9 @@ spv::Id TGlslangToSpvTraverser::createNoArgOperation(glslang::TOperator op, spv:
case glslang::EOpIsHelperInvocation:
{
std::vector<spv::Id> args; // Dummy arguments
spv::Id id = builder.createOp(spv::OpIsHelperInvocationEXT, typeId, args);
return id;
builder.addExtension(spv::E_SPV_EXT_demote_to_helper_invocation);
builder.addCapability(spv::CapabilityDemoteToHelperInvocationEXT);
return builder.createOp(spv::OpIsHelperInvocationEXT, typeId, args);
}
case glslang::EOpReadClockSubgroupKHR: {