-
Notifications
You must be signed in to change notification settings - Fork 859
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
Add support for GL_EXT_texture_offset_non_const #3782
Add support for GL_EXT_texture_offset_non_const #3782
Conversation
d198780
to
6fb8abf
Compare
I noticed the constness of the offset argument was not being checked with sparse texture functions, so I've added a commit on top with some additional code and tests. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should these test cases be generating SPIR-V? I feel like that might be useful here, since ultimately this is an extension for use with Vulkan and SPIR-V.
Yes, it makes total sense. I wasn't aware of the distinction between the different test groups as I'm not familiar with glslang's code base. Thanks for the tip! |
67acc4f
to
2dcce0b
Compare
I see the CI failures are related to the shaders failing validation and suggesting something like this: --- Test/baseResults/validation_fails.txt 2024-11-05 14:19:47.844071917 +0000
+++ - 2024-11-05 14:25:25.835244652 +0000
@@ -68,4 +68,6 @@
Test/baseResults/spv.separate.frag.out
Test/baseResults/spv.sparseTextureClamp.frag.out
Test/baseResults/spv.sparseTexture.frag.out
+Test/baseResults/spv.sparsetextureoffset_non_const.vert.out
+Test/baseResults/spv.textureoffset_non_const.vert.out
Test/baseResults/vk.relaxed.errorcheck.vert.out Which may be solved once the SPIR-V Tools issue is solved. So what should I do in the mean time? Update the file in this MR? |
We can wait until the SPIRV-Tools change is merged and the you can update the |
Alright, feel free to merge if you want in the mean time. The CTS tests using this are still under review so I'm not in a hurry. |
What's going on here? |
@zmike I've been waiting for the SPIRV-Tools change to land before I merge this, but at this point maybe it's not worth it to wait. |
2cb8dd3
to
717ca59
Compare
Now that the SPIRV-Tools pull request has landed, I've updated the reference commit and made sure no validation fails for the added tests. No idea what needs to be done for the "Linux Backcompat" check to pass, though. |
The backcompat failure is because spirv-tools bumped their minimum required cmake version. |
Now that #3845 has been merged, could you rebase? That should fix the CI failure. |
There are a few checks that were missing for sparse variants of these functions.
Also update tests for texture*Offset functions with non-const offsets to use the new validator option, without expecting a failure.
717ca59
to
c9485f2
Compare
Closes #3765