-
Notifications
You must be signed in to change notification settings - Fork 715
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
[SPIR-V] Prevent spriv from generating with gl_BaseInstance #3361
Comments
Seems the same as #3106 |
SPIR-V codegen is generating gl_BaseInstance to address #2946 |
We might need to add a command line option for this (e.g. |
This does look like the same problem to me as well, and the proposed solution sounds like it would fix the issue on my end! :) Thanks for looking into it! |
As an alternative, or in addition to a command line switch, could the |
@awesomekyle I opened a new bug for your request: #3479. |
I have a tool that, among other things, takes HLSL -> SPIR-V -> GLSL ES. GLSL ES can't handle gl_BaseInstance, but I'm also not using this functionality at all, and don't plan on taking advantage of it in the future. My HLSL does use
SV_InstanceID
, but no offsetting of any kind. Is there a way to prevent DXC from generating this in the SPIR-V output?It looks like this comes from
SPV_KHR_shader_draw_parameters
. Looking at the spec, I think I'd be happy to just turn this extension off if I could. Is that possible?I suppose I'll also add that I didn't have this issue when I was using the March 2020 release of DXC. (edit: apparently not quite the March release, I built from source on commit 29759a8 at the end of June)
The text was updated successfully, but these errors were encountered: