tests: run different pixel shaders on one device in offscreen_check #2517
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2525"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from R0Y00/Xbox2Windows. Originally posted by RavenCurseBurg on 2026-11-25T20:00:34Z.
Change
Refs #448. The existing pixel batch creates one D3D12 device per compiled shader. The new opt-in operation accepts ordered shader/reference pairs and runs all pairs on one device.
Each result carries its case index. On stderr the renderer names the case and shader before drawing, and the existing batch loop checks the debug queue and device state after each draw. The exit code is 1 if any draw mismatches or errors. An incomplete pair is rejected during CLI validation.
Verification
Tested commit
3ac087b05bddc78daa16783dfee318e41d841583. The new fixture compared four isolated draws with one mixed batch. Changing the shader for the second reference gavepass, mismatch, pass, pass. The matching pair-only run exited 0. With an absent middle shader, the statuses werepass, error, pass.The link check passed for 19 documents and 475 links.
git diff --checkpassed.Timing on existing draws
I replayed the eight compiled integer-predicate shader groups from
check_int_predicate_drawsagainst their original 33 references. Both paths produced 32 passes and the same expected mismatch on every run. The ordered shader/reference/expectation digest was identical on all three adapters. The table gives three warm serial repetitions with the order of the two paths alternated. It measures renderer time for these 33 draws and excludes compilation. Reproduction scriptThe production fixture migration can use this operation as the second part of #448. The four-CTest headroom comparison is tracked on the issue.
AI-assisted with Codex (session label
GPT-6.2 Astra xhigh).