gpu: verify raw vertex-buffer reads through copied descriptors #2712
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2720"
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 R0Y00 on 2026-11-26T03:30:06Z.
Refs #2695.
This source-built fixture publishes full and short views of the same raw buffer, copies each into the active table slot through slot 24, and compares the destination's guest-visible descriptor bytes with the source. The vertex shader reads different words on opposite sides of byte 256. The 32-pixel readback distinguishes the full view, the stale 256-byte view, and restoration of the full view in successive bands. The short view leaves the in-range word intact and returns zero for the word at byte 288. It does not establish the original executable's descriptor writer.
On Windows Release, WARP and RTX 4060 Laptop (32.0.16.1656) passed the new draw and both adjacent fixture groups, 6/6 without skips. The desktop descriptor increments in this run were 64 and 32 bytes respectively. The existing stream harness disables the debug layer.
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-26T03:31:53Z.
Review: COMMENTED
Review of head
3bffb4cb(code + fixture test only, no executable claims).Checked:
draw_copied_vertex_buffer_srv: full and short raw views of one buffer, copied (op 24) into slot 0 from slots 1 and 2, destination bytes compared with source via memcmp. Return codes 54/55 give distinct failures.startup_stream_draw.cppandadd_testinCMakeLists.txtfollow the siblingstartup_address_buffer_srv_*pattern (WARP + hardware, SKIP 77, TIMEOUT 90).draw_texturegained an optionalvertex_hlslwithout changing existing callers.Commands run (Linux):
git diff --check origin/main...HEAD,python3 tests/docs_links_check.py,python3 tests/bidi_controls_check.py(all clean). The new check needs the Windows consumer binary, so the draw itself is covered by the Win2025 run that follows.AI-assisted; commands listed were executed locally.
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-26T03:38:48Z.
Win2025 WARP receipt for head
ee19cb84after updating with main.Verified on Windows Server 2025 (Build 26100, MSVC 14.44.35207 + D3D12 WARP) at commit
ee19cb84ad6def5f74eb91daedffb10fd8bb0712:--preset dev):cmake --build --preset dev --target startup_stream_consumer -- -j 2):133.72s(configure3.92s)ctest --preset dev -R '^startup_(copied_vertex_srv|address_buffer_srv|frame_copy)_warp$' --parallel 2 --no-tests=error --output-on-failure): 3/3 passed (2.39s:startup_address_buffer_srv_warp1.03s,startup_frame_copy_warp1.88s,startup_copied_vertex_srv_warp1.09s)/O2(--preset release):cmake --build --preset release --target startup_stream_consumer -- -j 2):239.38s(configure4.31s)ctest --preset release -R '^startup_(copied_vertex_srv|address_buffer_srv|frame_copy)_warp$' --parallel 2 --no-tests=error --output-on-failure): 3/3 passed (2.36s:startup_address_buffer_srv_warp1.00s,startup_frame_copy_warp2.04s,startup_copied_vertex_srv_warp1.10s)sccache: 22/49 hits; wall391.6sAI-assisted; commands listed were executed locally.