Repository navigation
[TEST-W64G-TIER-C-INVARIANTS] Check known graphics outputs before skipping or saving a reference - #1191
Open
titoreinaldo wants to merge 1 commit into
Open
[TEST-W64G-TIER-C-INVARIANTS] Check known graphics outputs before skipping or saving a reference#1191titoreinaldo wants to merge 1 commit into
titoreinaldo wants to merge 1 commit into
Conversation
Check partition-invariant words against the fixture expectation even when both widths or the saved reference share the same wrong value. Reject an invalid single-width draw before it can replace a reference. Reproduced with synthetic fragment readbacks on Windows on an RTX 3070 and Intel Arc Graphics. Codex-assisted.
|
Recommendation: [MERGE] Reasoning: The w64 graphics runner checks the known per-draw output words (e.g. the lane-id x coordinate) of the Tier C fixtures before skipping or saving a reference, so a wrong draw can no longer match a wrong reference. Small test-harness change with tests. It overlaps #1060 in the runner, so the second to land may need a rebase. CI (label, change-scope, no-game-data and the Runtime jobs) is still queued awaiting maintainer workflow approval, so nothing has run in CI yet; GitHub reports no merge conflict with Impact level: 3/10 |
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.
Claimed in the coordination issue as: TEST-W64G-TIER-C-INVARIANTS (claim in #14)
Depends on: #1060 (overlap in the runner and reference tests). This branch is based directly on
6293c1c4. #1060 selects the draw to compare with a saved reference. This change checks the known output values of each draw.What and why
The hand-written Tier C fixtures define some output words for every subgroup width. For example, the third word of
ps_w64_c_lane_idmust be the pixel’s x coordinate. The runner could accept a draw and reference that agreed on a wrong coordinate. It could also skip a bad single-width draw or save it as a new reference.Check the fixture-defined words before the reference comparison, skip, or export. Words marked
Nonemay still vary by subgroup width. CPU replay covers a matching bad reference, a wrong default draw, single-width results and preservation of an existing good reference.Tested
On Windows 11 Pro 26H2 build 26300.9974, I rebuilt
vk_harnessand translated the 29 graphics fixtures and two support shaders. All 31 passedspirv-val(LLVM 23.1.6, SPIRV-Tools 2026.4). I selected each physical adapter separately and confirmed its name in the harness output.In a scratch copy of
ps_w64_c_lane_id.asm, I changed the third exported word fromv2(x) tov8(zero). On both adapters the original runner skipped it without a reference and returnedokwith a reference containing the same wrong x. This patch exits 1 in both cases. The unmodified shader had all 4,096 x values correct. I constructed the cross-width reference from the four readback words per pixel, adding 32 to the lane ID for pixels withx >= 32. Neither adapter runs native wave64.python -I tests/test_w64_graphics_reference.py -v— 6 passed. The added checks reproduce the bug on the base commit.python -I scripts/run_semantic_tests.py -j 8 tests/semantic— 6,168 tests across 470 files, zero failed files (753 seconds).python -I scripts/check_no_game_data.py runtime/test/shaders/w64_graphics.py tests/test_w64_graphics_reference.pyandgit diff --checkpassed.Hardware commands (PowerShell)
$workis a scratch fixture directory.$buildcontains the locally builtvk_harness.exe.For the negative control, rebuild the scratch shader, run the checker with
ps_w64_c_lane_idas its last argument, and repeat withW64G_REFpointing to the constructed reference.GPUs tested: NVIDIA GeForce RTX 3070 eGPU and Intel Arc Graphics, as listed above.
AI-assisted: yes, OpenAI Codex.
Checklist
mainand merges cleanly with the tested base.