list_x test: index buffers at addresses of the test's own #224

Closed
github-bot wants to merge 1 commit from gh-pr/224/head into gh-pr/224/base
Owner

@⁠BlestTerror on GitHub · 2026-11-23 21:18 UTC · original
BlestTerror:tests/draw-indexed-x-order → main · +17 −6 · 1 files · 1 commits · closed without merging

draw_indexed_x_routes_through_bind_and_restores_index_buffer bound index buffers at fixed addresses (0x1_0000_1000…). After gpu_sparse_vram_descriptors_buffers_and_xmem in the same process, memory is mapped there (its sparse VRAM windows), so gpu_va sees a readable address outside unified memory, the draw binds a copy of the indices, and the test's first BufferLocation assertion sees the copy's address. The test passes alone and fails in a full serial run (reported by @⁠Kalmarv in #213; the culprit found by bisecting the 319 tests before it). Nothing Wine-specific: the same order should fail on Windows.

The test now reserves 64 KiB of inaccessible address space (VirtualAlloc(MEM_RESERVE, PAGE_NOACCESS)), uses addresses inside it, and releases it at the end.

Wine 11.20, RTX 4060, cross-built x86_64-pc-windows-msvc:

  • the test alone: passes;
  • gpu_sparse_vram_descriptors_buffers_and_xmem then this test: fails on main, passes here (rechecked on af20b4b);
  • full --lib --test-threads=1 (on 6da33fa): 579 passed, 3 failed, the three Wine host differences #213 handles.

Not run on Windows here. Rebased on af20b4b.

🤖 Generated with Claude Code

**@⁠BlestTerror** on GitHub · 2026-11-23 21:18 UTC · [original](https://github.com/xcl-dev/xcl/pull/224) `BlestTerror:tests/draw-indexed-x-order` → `main` · +17 −6 · 1 files · 1 commits · closed without merging `draw_indexed_x_routes_through_bind_and_restores_index_buffer` bound index buffers at fixed addresses (`0x1_0000_1000`…). After `gpu_sparse_vram_descriptors_buffers_and_xmem` in the same process, memory is mapped there (its sparse VRAM windows), so `gpu_va` sees a readable address outside unified memory, the draw binds a copy of the indices, and the test's first `BufferLocation` assertion sees the copy's address. The test passes alone and fails in a full serial run (reported by @⁠Kalmarv in #213; the culprit found by bisecting the 319 tests before it). Nothing Wine-specific: the same order should fail on Windows. The test now reserves 64 KiB of inaccessible address space (`VirtualAlloc(MEM_RESERVE, PAGE_NOACCESS)`), uses addresses inside it, and releases it at the end. Wine 11.20, RTX 4060, cross-built `x86_64-pc-windows-msvc`: - the test alone: passes; - `gpu_sparse_vram_descriptors_buffers_and_xmem` then this test: fails on `main`, passes here (rechecked on `af20b4b`); - full `--lib --test-threads=1` (on `6da33fa`): 579 passed, 3 failed, the three Wine host differences #213 handles. Not run on Windows here. Rebased on `af20b4b`. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
draw_indexed_x_routes_through_bind_and_restores_index_buffer bound index
buffers at fixed addresses (0x1_0000_1000 ...). After
gpu_sparse_vram_descriptors_buffers_and_xmem in the same process, memory is
mapped there (its sparse VRAM windows), so the draw binds a copy of the indices
and the test fails in a full serial run while it passes alone. The test now
reserves 64 KiB of inaccessible address space and uses addresses inside it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_011Qu7u1UaLUhn6MfAcvkdjG
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:16:29 +00:00
github-bot closed this pull request 2026-11-26 04:16:29 +00:00
Author
Owner

@⁠BlestTerror on GitHub · 2026-11-23 21:21 UTC · original

Duplicate of #222 (opened a few minutes earlier, same fix). Closing in its favour.

**@⁠BlestTerror** on GitHub · 2026-11-23 21:21 UTC · [original](https://github.com/xcl-dev/xcl/pull/224#issuecomment-7114348552) Duplicate of #222 (opened a few minutes earlier, same fix). Closing in its favour.
Author
Owner

@⁠ivall on GitHub · 2026-11-23 21:24 UTC · original

Closing as a duplicate of #222 (merged), the same fix of the same test. Thanks!

**@⁠ivall** on GitHub · 2026-11-23 21:24 UTC · [original](https://github.com/xcl-dev/xcl/pull/224#issuecomment-7114420530) Closing as a duplicate of #222 (merged), the same fix of the same test. Thanks!

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.