-
Notifications
You must be signed in to change notification settings - Fork 10.6k
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
Disable GL_KHR_cooperative_matrix Vulkan extension if not available. #11117
Conversation
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.
I tested it and it's fine on systems with versions new enough to support the extension.
The code looks good, I only have two minor comments. Once those are addressed I'll merge it. Thank you for the contribution!
LGTM. Yet another reason we should consider building glslc from a known good commit. |
Hi, I'm having some issues after this PR, not sure if it's a user error on my part. Scenario: My glslc and vulkan install supports coopmat1. However, I wish to produce a build that excludes coopmat as if I did not have it. Approach: I am manually setting Result: Builds fine. However at runtime during
Now if I define To reproduce this: Have a system that supports coopmat, install the latest Vulkan SDK on windows, then remove this line
|
No, the goal is just to ensure compatibility with Debian (or other Linux distros) where the package manager versions of glslc and the Vulkan headers are too old to support the I see wrong results when I force disable |
To put it slightly differently, |
update: checked with occam and this worked for me
allows me to build as if i don't have coopmat, no crash and output seems coherent, at non-coopmat speeds, output binary is 30% smaller. But he did mention its not a supported use case, instead I should use |
Allows to support Vulkan on platforms where the GL_KHR_cooperative_matrix extension is not available, such as Debian 12/bookworm.
Resolves #11052.