-
Notifications
You must be signed in to change notification settings - Fork 319
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
Compat: sample locations don"t match the spec in OpenGL #4804
Comments
We could say that locations may be non-standard in compat, and maybe even expose the sample location info on the adapter? |
I don"t know for sure but I suspect standard sample locations are not that critical, and compat should just loosen the guarantee. |
The workground seems trivial and I think they are critical. Either that, or we should remove
from compat |
Ok so no change needed? |
In that case the workaround sounds great to me.
We can work around the order of samples, but it"s also possible that the exact positions will be slightly different (i.e. devices where Vulkan would report |
Resolved in meeting that we will workaround, and the number of devices with non standard sample locations is probably vanishingly small (e.g. on vulkan) so we will only revisit loosening the spec if we actually find such devices. |
GPU Web WG 2024-11-20 Atlantic-time
|
Running this test, which sets each sample of a 4 count multisample texture to a different color and then uses
textureLoad(multisampledTexture, vec2u(0), sample_index)
to read each of the samples to a storage buffer in Chrome on Linux AMD OpenGL gets different results than the other APIsnormal results
GL results
I ran into this issue writing the
textureLoad
WGSL testsWe think maybe swizzling the index in
textureLoad
on the GL backend is enough to fix this? If not, another solution is to disallowtextureLoad
ontexture_multisample_2d<???>
textures in compat. other ideas?The text was updated successfully, but these errors were encountered: