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

Closed
BlestTerror wants to merge 1 commit from upstream-pr/224 into main
BlestTerror commented 2026-11-23 21:18:51 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by BlestTerror on 2026-11-23T21:18:51Z.


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

<!-- greyfinch-sync:ivall/xcl:issue:6569039939 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/224). Originally posted by [BlestTerror](https://github.com/BlestTerror) on 2026-11-23T21:18:51Z. --- `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)
upstream-sync closed this pull request 2026-11-24 06:57:43 +00:00
BlestTerror commented 2026-11-24 07:04:24 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by BlestTerror on 2026-11-23T21:21:20Z.


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

<!-- greyfinch-sync:ivall/xcl:comment:7114348552 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/224#issuecomment-7114348552). Originally posted by [BlestTerror](https://github.com/BlestTerror) on 2026-11-23T21:21:20Z. --- Duplicate of #222 (opened a few minutes earlier, same fix). Closing in its favour.
ivall commented 2026-11-24 07:04:25 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by ivall on 2026-11-23T21:24:31Z.


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

<!-- greyfinch-sync:ivall/xcl:comment:7114420530 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/224#issuecomment-7114420530). Originally posted by [ivall](https://github.com/ivall) on 2026-11-23T21:24:31Z. --- Closing as a duplicate of #222 (merged), the same fix of the same test. Thanks!

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
xcl-dev/xcl!221
No description provided.