Repository navigation
Add frag_depth qualifier tests with position input - #4741
Merged
beaufortfrancois merged 2 commits intoDec 2, 2026
Merged
Conversation
Adds operation tests in webgpu:api,operation,rendering,depth covering @Builtin(frag_depth, less) and @Builtin(frag_depth, greater) combined with @Builtin(position) input, including pixel-frequency vs sample-frequency inputs and verifying pixel-center @Builtin(position) evaluation under 4x MSAA on partially covered pixels.
|
Results for build job (at 8082ae2): +webgpu:api,operation,rendering,depth:fragment_depth_qualifiers_with_position:* - 24 cases, 24 subcases (~1/case)
+webgpu:api,operation,rendering,depth:fragment_depth_qualifiers_position_multisample:* - 12 cases, 12 subcases (~1/case)
-TOTAL: 290287 cases, 2383042 subcases
+TOTAL: 290323 cases, 2383078 subcases |
dj2
approved these changes
Dec 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds operation tests in
src/webgpu/api/operation/rendering/depth.spec.tscovering@builtin(frag_depth, less)and@builtin(frag_depth, greater)combined with@builtin(position)input (companion tests for https://dawn-review.googlesource.com/c/dawn/+/366975):fragment_depth_qualifiers_with_position: Testslessandgreaterdepth modes with@builtin(position)input acrosssampleCount(1,4) andextraInput(none,sample_index,unused_sample_index,sample_interpolation,unused_sample_interpolation,centroid_interpolation) using a depth-only render pipeline, verifying the written depth (0.25/0.75) via adepthCompare: 'equal'pass.fragment_depth_qualifiers_position_multisample: Renders a partially covering triangle under 4x MSAA (excluding pixel center(0.5, 0.5)) across the samemodeandextraInputcombinations and verifies@builtin(position).xyremains evaluated at pixel center(0.5, 0.5)while writing the expected depth to the 2 covered samples.Issue: gpuweb/gpuweb#5342
Requirements for PR author:
.unimplemented()./** documented */and new helper files are found inhelper_index.txt.fragment_depth_qualifiers_with_position, 12/12 pass forfragment_depth_qualifiers_position_multisample.)compatibility=1:noneandcentroid_interpolationpass; used and unusedsample_indexandsample_interpolationskip.)Requirements for reviewer sign-off:
When landing this PR, be sure to make any necessary issue status updates.