Commit f766faba by John Kessenich

GLSL: Only require constant for subgroupBroadcast when SPV < 1.5.

parent 8317e6c6
...@@ -2155,9 +2155,11 @@ void TParseContext::builtInOpCheck(const TSourceLoc& loc, const TFunction& fnCan ...@@ -2155,9 +2155,11 @@ void TParseContext::builtInOpCheck(const TSourceLoc& loc, const TFunction& fnCan
break; break;
case EOpSubgroupBroadcast: case EOpSubgroupBroadcast:
// <id> must be an integral constant expression. if (spvVersion.spv < EShTargetSpv_1_5) {
if ((*argp)[1]->getAsConstantUnion() == nullptr) // <id> must be an integral constant expression.
error(loc, "argument must be compile-time constant", "id", ""); if ((*argp)[1]->getAsConstantUnion() == nullptr)
error(loc, "argument must be compile-time constant", "id", "");
}
break; break;
case EOpBarrier: case EOpBarrier:
......
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