Fix check for shader extensions on SM5.0, don't compare space

This commit is contained in:
baldurk committed 2021-03-02 10:27:07 +00:00
1 parent 741b2c1671
commit d8bdf819bf
1 file changed
+10 -4
@@ -545,12 +545,18 @@ bool Program::UsesExtensionUAV(uint32_t slot, uint32_t space, const byte *bytes,
tokenStream++;
}
uint32_t opspace = ~0U;
if(sm51)
opspace = tokenStream[0];
{
uint32_t opspace = tokenStream[0];
if(space == opspace && slot == opreg)
return true;
if(space == opspace && slot == opreg)
return true;
}
else
{
if(slot == opreg)
return true;
}
}
}