shader: verify desktop SV_Position at shifted pixel centers #546
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/552"
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 RonLogic on 2026-11-22T11:32:24Z.
Refs #218. This is the independent D3D12 input-layout check requested in the milestone discussion. It reuses the full-screen triangle and RGBA32F readback in
offscreen_check. The pixel case trailer accepts a viewport rectangle for one reference color per target pixel. The shader takesTEXCOORD0followed bySV_Positionto match the vertex output. Red and green depend only on the position X and Y inputs.The 8×8 target uses a 5×3 viewport at (2, 1). An independent CPU reference checks 15 covered pixel centers and 49 clear pixels bit for bit. With X and Y swapped, the first mismatch is at (2, 1), where the shader returns red and green
(1.5, 2.5)against the expected(2.5, 1.5).Tested on Windows x64 at
342969eonaefed61. WARP (10.0.26100.9818) and RTX 4070 (32.0.16.2124) matched the reference and rejected the swapped shader. The passing draws reported zero D3D12 debug errors and warnings. All six CTest entries passed, and the Markdown link check passed.This measures desktop D3D12 coordinates. Native Scarlett VGPR assignments require their own evidence.
AI-assisted: yes.