Skip to content

WebGPU: fix sentinel handling for depthSlice #21077

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

Merged
merged 1 commit into from
Jan 13, 2024

Conversation

kainino0x
Copy link
Collaborator

@kainino0x kainino0x commented Jan 13, 2024

depthSlice is actually u32, but like other fields with sentinel values we can just load it as i32 because values over 0x7FFFFFFF are going to be errors anyway.

This fixes browser.test_webgpu_basic_rendering.

I suggested the wrong code in #21057 (comment) . My bad.

cc @beaufortfrancois

@kainino0x kainino0x requested a review from sbc100 January 13, 2024 03:15
@kainino0x kainino0x enabled auto-merge (squash) January 13, 2024 03:15
@kainino0x kainino0x merged commit 900aee0 into emscripten-core:main Jan 13, 2024
@kainino0x kainino0x deleted the fix-depthSlice branch January 16, 2024 21:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants