-
Notifications
You must be signed in to change notification settings - Fork 722
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DXC Validation Error: TGSM pointers must originate from an unambiguous TGSM global variable #3429
Comments
Sorry for the delay. We can't do much without the code. Can you send the shader to [email protected] or to me directly? |
Sent |
It is possible that this has been fixed recently. Moving to Dormant for now. @Nielsbishere, can you let us know if this is still an issue for you? |
@damyanp Oops, apparently Greg sent a reply to my mail about 3 years ago and I didn't reply :( He managed to simplify the repro to the following: groupshared float thingies[6];
groupshared uint thingCounter;
[numthreads(8, 1, 1)]
void main() {
if(thingies[thingCounter] >= 0.0) {
for(int ix = thingCounter; ix >= 0; --ix) {
if(thingies[ix] <= 0.0) {
thingies[ix] = 3.0;
break;
}
thingies[ix] = 4.0;
}
++thingCounter;
}
} After a quick check it is still reproducible on the version on shader-playground and when fetching the latest from nuget (1.8.2403.2).
|
@damyanp that verifies that it is an issue right? Or is it to hint that I should link the code like that. Can do that next time. |
It was meant more as a convenience for us when we look at this next. But if you want to link like that in the future then that'd be great as well :) |
In commit cf044cc (from 23 days ago) I get the following error when enabling optimization;
This happens because I have the WaveIsFirstLane write to a groupshared float2 array. I can't publish the code, but I will send a DM on Discord.
When disabling optimization it works, so it seems like some optimization might change the generated DXIL.
The text was updated successfully, but these errors were encountered: