tests: the shared pixel_aot vertex shader breaks three translated pixel pipelines #3695
Labels
No labels
accessibility
awaiting author
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
priority: P0
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/R0Y00--Xbox2Windows#3695
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
@KelboLive on GitHub · 2026-12-01 02:36 UTC · original
tests: the shared
pixel_aot_vs.hlslvertex output breaks three translated pixel pipelinesSummary
Three tests fail on
mainwith debug layer message 660, and the cause is not the shader lowering that #3625adds — it is a fixture vertex shader that gained an output attribute and is compiled into
offscreen_check,where every translated pixel pipeline sees it.
Deterministic:
startup_image_load_mip_warpfails 3/3 at the current head.Cause
#3625 (
4eb7e70d8) changed the shared fixture vertex shader:tests/pixel_aot_vs.hlslis compiled intooffscreen_check(viapixel_aot_render.cpp/pixel_compare_render.cpp).Adding a packed output between
TEXCOORD0andSV_PositionmovesSV_Positionto different hardwareregisters, while the pixel shaders other fixtures build do not declare the new input — hence message 660.
Evidence
The previous hardware sweep at
bee9c64was 990/990; the current sweep at12a0e309fhas these three.Bisect on the warp variant (0.7 s), rebuild at each step:
0e8aabf1c(before #3625)4eb7e70d8(#3625)12a0e309f(current main)Controlled experiment at
4eb7e70d8: restore the two files #3625 changed (tests/pixel_aot_vs.hlsl,tools/pixel_aot.py) to their0e8aabf1ccontent, rebuild, and all three pass. So the vertex-shaderchange is the variable, not the renamed lowerings.
Note the rebuild is required: the shader is compiled in at build time, which is why an earlier attempt at the
same experiment looked like it made no difference.
Suggested fix
Keep the flat attribute out of the shared shader. Either:
pixel_aot_interp_movbuilds with, asPIXEL_MIP_LINEARalready does forthe MinLod variant, or
The new
pixel_aot_interp_mov_{warp,hardware}tests need the attribute, so the fix has to keep those passingwhile restoring the previous output layout for everything else.
Why it was not caught before merge
prpreset.main's own full runs have been cancelled for hours (see #3509), so the first full suite after the mergewas this sweep.
Not covered here
Two other tests failed in the same sweep and look unrelated:
startup_compute_gather_l_hardwareandbc7_draw_hardware(the second reportsdebug_errors=0, so it is a readback mismatch rather than a pipelinefailure). They need separate triage.
Refs #3625, #3509.
@KelboLive on GitHub · 2026-12-01 02:46 UTC · original
c7_draw_hardware belongs here too — I had filed it as "untriaged", but its failure is the same message:
So the shared vertex shader breaks four tests, not three. The readback lines that come before it (
max_absolute_error=0,debug_errors=0) are what made it look like a separate readback mismatch.That leaves only
startup_compute_gather_l_hardwareunexplained from the sweep; it is a value mismatch (word=0 expected=3f1020e2 actual=3f201062), reproduces on warp, and I am bisecting it separately.@KelboLive on GitHub · 2026-12-01 03:18 UTC · original
Measured a candidate fix, and it narrows the answer usefully.
Reordering the new output so
SV_Positionkeeps its register:Result at
daddf6155+ that change, after a rebuild:startup_image_load_mip_warppixel_position_centers_hardwarestartup_image_gather_lz_warpbc7_draw_hardwarepixel_aot_interp_mov_warppixel_aot_interp_mov_hardwareSo the two consumers genuinely need different vertex layouts: whatever fixes the four moves
flatoff the register the interpolation-move shader expects, and the symmetry does not close.That makes a single shared shader the wrong shape for this. The fix is a variant — the attribute behind a define the way
PIXEL_MIP_LINEARalready provides a MinLod variant, or a separate vertex shader for the interpolation-move fixture — so the four unaffected fixtures keep the previous layout. I have left the tree unmodified; the experiment was reverted.