tests: verify formatted buffer loads in slot 57 mesh draws #2568
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2576"
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 RavenCurseBurg on 2026-11-25T21:35:17Z.
Part of #2413, T3. The accepted slot 57 mesh shape already lowers a single-component
buffer_load_format_xthrough the shared MUBUF path. This adds a source-built readback for that path and its descriptor dependency. Claim and scope.The fixture inserts a gfx1013 formatted load after the raw vertex-colour load. The load replaces red, so the other three channels are independent controls. The host test checks the published buffer SRV and its
descword3source, then checks that overwriting descriptor word 3 in the guest program produces the expected refusal.The new WARP and hardware CTests read the constant locations from the published manifest. They draw the same compiled mesh/pixel pair with the same 512 bytes of input. Changing only descriptor word 3 selects R32_FLOAT X, RGBA8_UNORM X, or RGBA8_UNORM Z. The CPU reference obtains the expected channel directly from the fixture bytes and rasterizes all 1,024 pixels. The existing raw-draw CTest keeps its own time budget. Same-guest-list loading and indirect forwarding are tracked under R1.
Verification
ee748000build, then ran both draw modes on an NVIDIA RTX 4060 (32.0.15.9579) and WARP (10.0.26100.9711) with DXC 1.9.2609. All three formatted descriptors matched all 1,024 pixels on each adapter. Using the wrong format or channel reference changed exactly 259 pixels in each case. Intel UHD 770 (32.0.101.5973) reported an unsupported mesh shader tier and returned skip code 77 for both modes. The local D3D12 debug layer was unavailable.git diff --checkpassed.AI-assisted with Codex (GPT-6.2 Astra, xhigh).