Link translated indexed mesh and pixel shaders and verify the complete draw #538
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/544"
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 descent81 on 2026-11-22T10:20:22Z.
The indexed mesh fixture already verifies vertex fetches and primitive exports against a CPU reference. Its pixel stage returns a fixed green. This test runs the translated indexed mesh stage together with a translated scalar-buffer color program in one D3D12 pipeline.
Left to right: baseline, color upload changed, one vertex moved, and red/blue packing deliberately exchanged. Captured from RTX 4060 readback and enlarged 4×. The fourth panel uses the baseline upload and geometry.
Linkage failure found by the integration test
On the parent code both WARP and RTX 4060 rejected pipeline creation. D3D12 debug message 666 reported a missing TEXCOORD0. The constant-buffer pixel program declared that input even though its instructions never interpolated an attribute or sampled a texture. The mesh stage correctly exports positions. The pixel translator now omits that parameter when it has neither sampled bindings nor interpolation.
Observable checks
Local verification
Built on Windows from base
92e80ed. All six CTest entries for mesh entry, indexed mesh and the linked pipeline passed across RTX 4060 and WARP. The full LLVM pixel binary fixture suite also passed. The screenshot capture hook was local to the measurement build and was removed before the final build and six-test rerun.This exercises source-built AMD instruction fixtures, a specialized indexed mesh and a constant-buffer pixel export. It demonstrates stage linkage and readback for that profile.
Imported from R0Y00/Xbox2Windows. Originally posted by RonLogic on 2026-11-22T11:51:42Z.
Independent reproduction requested in #218. I built the submitted head
15fb5c7cca32ac570f2eb0bd515b87b87c3acbe4on Windows 11 build 26300.9974 with x64 MSVC 19.52.37029.0. The RTX 4070 (32.0.16.2124) and WARP (10.0.26100.9818) both ran with the D3D12 debug layer enabled. All fourmesh_pixel_pipeline_*andmesh_indexed_draw_*tests passed. The moved-vertex reference matched all 1,024 pixels on both adapters. The red/blue register-swap control returned the expected draw mismatch on exactly the 276 covered pixels; the primitive trace still matched.Imported from R0Y00/Xbox2Windows. Originally posted by rwZephyr on 2026-11-22T19:13:17Z.
Independent AMD verification of the merged
mesh_pixel_pipelinefixture. AI-assisted report. The tests ran locally on upstreammainatedc2e54e7e75fcd7c0f13e98b47ba119d9a08268.Windows 11 25H2 x64 build
26200.9974, MSVC19.44.35230, Windows SDK10.0.26100, DXC1.8.2502.8, Python3.12.10. The renderer confirmed RX 9070 XT (1002:7550, driver32.0.32029.2010) and WARP (1414:008c,10.0.26100.9818). Both reporteddebug_layer=unavailable.With the local toolchain loaded,
$intakePythonpointing to the Python environment, and debug CRT DLLs staged beside the renderer:CTest passed 2/2 with zero skips. Each backend matched all 1,024 pixels in each of six positive draws, including the moved-vertex reference. The fixture caught the expected red/blue register-swap failure at exactly 276 pixels and accepted the mesh export trace. No unexpected mismatches.