-
Notifications
You must be signed in to change notification settings - Fork 630
spirv-val: Validate PhysicalStorageBuffer Stage Interface #6000
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
spirv-val: Validate PhysicalStorageBuffer Stage Interface #6000
Conversation
|
Will rebase when KhronosGroup/glslang#3878 in pulled in |
d9d2bf3 to
d2ebdde
Compare
|
@alan-baker sorry I am not able to get on the SPIRV WG calls, but not sure if this was discussed The only reason this was reverted before is because glslang had a single test using it, but not sure if you have opinions on why this should be allowed (since it has a proper VU in the Vulkan Spec even) |
|
I guess why it would be supported would be what's the difference between converting the pointer to 64-bit int passing it between stages and converting back vs just passing the pointer? |
The issue is it opens up a large can of worms for how |
I'm not sure what the problem for location is? Those pointers are basically 64-bit values. Vulkan can ban it, but it feels like working around implementation bugs. That may be the best choice though. |
So can the Vertex output a Pointer and the Fragment consume a uint64_t/vec2
I think it is less of a bug and just that it was never described in the spec when Buffer Device Address was added and there was one CTS test, so it really lacks coverage and goes back to my "if people want it, they should test it" but I don't see why we should encourage the use of untested features in Vulkan, ones that have been found already to cause issues elsewhere |
Theoretically yes, but...
Yes, pragmatically speaking, banning is probably best. |
The validation added in KhronosGroup#6000 seems specific to Vulkan environments. Ensure it only runs for Vulkan environments. Signed-off-by: Sven van Haastregt <[email protected]>
The validation added in #6000 seems specific to Vulkan environments. Ensure it only runs for Vulkan environments. Signed-off-by: Sven van Haastregt <[email protected]>
re-attempt at #5539 (which was reverted in #5575)
Going to first fix GLSL to not generate invalid SPIR-V