shader: verify lit mesh fallback at Shader Model 6.0 #863
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/869"
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 Jess-Doit on 2026-11-23T14:54:36Z.
Change
Run the indexed lit-mesh fixture through the existing Shader Model 6.0 compute and vertex fallback. The fixture uses the same translated mesh and pixel programs and exact CPU image reference as #749. It checks the raw PARAM0 normal exports in indexed order, then checks the interpolated lighting drawn with the light from pixel CBV b0.
Verification
Tested commit
301bfae1affd5fb98d8f5854bca51398647a119ain Debug and Release on Windows 10 22H2 build 19045.6456 with DXC 1.9.2602.17.In every fallback run, three lights and the flat-normal and unclamped variants matched all 1,024 RGBA pixels. The three stale image references returned 1 with
Draw reference mismatchand exactly 276, 276 and 132 mismatches for the inverted light, flat normal and missing clamp, respectively. All eight draws matched all 128 export bytes and reported zero D3D12 warnings and errors.The focused matrix included adjacent indexed, attribute, descriptor, texture and depth-pair fixtures and the capability self-test. It returned 54 passes, 32 expected native mesh capability skips and zero failures.
Set
$agilityand$warpto the local SDK and WARP DLL directories. The bidirectional-control and whitespace checks passed. The existing LLVM binary round-trip still needs the Ubuntu CI job. The local Windows LLVM DLLs lacked theLLVMInitializeAMDGPUTargetInfoexport needed by that check.Evidence and follow-up
The fixtures are built from the repository's MIT-licensed sources. The fallback retains the native fixture's ambient offset so small rasterizer differences cannot move the expected half-float export across a rounding boundary. See the mesh experiments for the focused command.
AI-assisted implementation and verification.
Checklist