Skip to content
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

WSL2 GL device fails creation #6841

Open
Wumpf opened this issue Jan 2, 2025 · 1 comment
Open

WSL2 GL device fails creation #6841

Wumpf opened this issue Jan 2, 2025 · 1 comment
Labels
api: gles Issues with GLES or WebGL type: bug Something isn't working

Comments

@Wumpf
Copy link
Member

Wumpf commented Jan 2, 2025

Or more precisely: Any device supporting indirect dispatch but no dynamic array access in shaders can no longer be created ... which happens to describe the default GL driver on WSL2.

This happens because whenever indirect execution is there, we check whether we can validate it, even if validation is turned off and doing so requires the glsl DYNAMIC_ARRAY_SIZE feature.

-> We shouldn't do this check if validation is turned off (patch

let indirect_validation = if downlevel
)
-> Consider not advertising indirect dispatch availability if there's no dynamic array size. Ideally, this is conditional on validation, but that might be too much hassle

@Wumpf Wumpf added type: bug Something isn't working api: gles Issues with GLES or WebGL labels Jan 2, 2025
@Wumpf Wumpf changed the title WSL2 GL device fails creating WSL2 GL device fails creation Jan 2, 2025
@Wumpf
Copy link
Member Author

Wumpf commented Jan 7, 2025

That's limited to the default GL driver on WSL @ Ubuntu 22 & 20, but not on Ubuntu 24. The later comes with OpenGL 4.6. 20 has GL 4.2, 22 has the same issue but haven't checked gl version yet

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: gles Issues with GLES or WebGL type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant