tests: isolate flat vertex attribute to interp-mov fixture #3698
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3698"
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 Ammmae0x on 2026-12-01T03:03:48Z.
Fixes #3693
#3623 added
nointerpolation float4 flat : TEXCOORD1;unconditionally to the shared tests/pixel_aot_vs.hlsl, shifting SV_Position and breaking D3D12 PSO linkage (D3D12 660 / 0x80070057) on startup_image_load_mip_, pixel_position_centers_hardware, startup_image_gather_lz_ and bc7_draw_hardware.This change guards the flat attribute behind PIXEL_FLAT_ATTR, builds a separate pixel_aot_vs_flat vertex shader, and routes only the v_interp_mov_f32 draw through it; every other pipeline keeps the default two-field vertex output.
What landed:
Verification (Linux):
Windows Verification (
1949fe015ca76a33409d0daa80855e2f4a3583ff)AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by KelboLive on 2026-12-01T03:46:53Z.
Verified at
1949fe015on this host (RTX 4070 Ti SUPER, driver 32.0.16.2101, Windows 10.0.26200) and on WARP, after a full rebuild:The four
660failures are gone in both backends and the interpolation-move fixtures still pass, so the variant split does what the issue needed.For the record, since #3693 suggested it: reordering the fields in the shared struct (
flatafterposition) also clears the four failures, but thenpixel_aot_interp_mov_{warp,hardware}fail with 660 onTEXCOORD. A single shared layout cannot serve both consumers, which is why this shape — a guarded variant — is the right one rather than a reorder.Imported from R0Y00/Xbox2Windows. Originally posted by Makto94 on 2026-12-01T13:03:17Z.
Independent run of the PR head against main
a061032fc, plus the PR merged locally onto a fresh maine1161e43a(no conflicts; merge822c2131d, not pushed).Environment: NVIDIA GeForce RTX 3070 Ti (vendor=10de device=2482), driver 32.0.16.2101 (621.01); WARP 10.0.26100.9818; Windows 11 Pro 10.0.26300.9974; debug layer enabled (
debug_layer=enabledin the test output); dxc from Windows SDK 10.0.26100.0.ctest --preset dev,-j1. Full build on main, then an incremental (ninja) rebuild of the PR head in the same tree.Under test:
a061032fc(before)1949fe015(merge base with main1a9ccbc4e, tested as is, not rebased)e1161e43a(local merge822c2131d, incremental rebuild)Commands:
ctest --preset dev --no-tests=error -R 'startup_compute_gather_l' --repeat until-fail:30 -j1 -V(the regex also matches
startup_compute_gather_lz*)ctest --preset dev --no-tests=error -R '^(startup_image_load_mip|pixel_aot_interp_mov|pixel_position_centers|startup_image_gather_lz|bc7_draw|pixel_aot_vs_flat)' --repeat until-fail:N -j1(N=30 on main, N=5 on the PR head and on the merge)Command 1:
a061032fc1949fe015e1161e43aFirst error on main (warp; hardware stops at the same assertion):
D3D12 660: CreateGraphicsPipelineState: Vertex Shader - Pixel Shader linkage error ... Semantic 'SV_Position' is defined for mismatched hardware registersandTranslated pixel pipeline failed (HRESULT 0x80070057), raised fromdispatch_ps(startup_compute_gather_l_check.py:337). Theword=0 expected=3f1020e2 actual=...lines printed before it come from the negative controls of the same check (the last one before the traceback,actual=3f201062, is theignored_max_lodmutant); they also appear in passing runs.startup_compute_gather_l(no suffix) passes on main too.Command 2, main (this run used
--repeat until-fail:30): 8 of 12 failed on repetition 1 with the same 660:startup_image_load_mip_{warp,hardware}, pixel_position_centers_{warp,hardware}, startup_image_gather_lz_{warp,hardware}, bc7_draw_{warp,hardware}.
Passed 30/30: startup_image_gather_lz, startup_image_load_mip_controls, pixel_aot_interp_mov_{warp,hardware}.
Command 2, PR head (
--repeat until-fail:5): 12/12 tests passed, 5/5 repetitions each, including pixel_aot_interp_mov_{warp,hardware}.Command 2, PR merged onto
e1161e43a(--repeat until-fail:5): 12/12 tests passed, 5/5 repetitions each.pixel_aot_vs_flatmatched no CTest entry in this build (the 12 tests above are the whole selection). Skips (77): none observed.Main
e1161e43awithout the PR was not run; the failing column is maina061032fc. Betweena061032fcande1161e43athe only commit touching a file of this PR is6a808745c(three lines inCMakeLists.txt).tests/pixel_aot_vs_flat_check.pywas not run.These results cover only the tests above, on one NVIDIA GPU and on WARP.