Skip to content

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

Closed
BlestTerror wants to merge 1 commit into
xcl-dev:mainfrom
BlestTerror:tests/draw-indexed-x-order
Closed

BlestTerror wants to merge 1 commit into
xcl-dev:mainfrom
BlestTerror:tests/draw-indexed-x-order

Conversation

@BlestTerror

Copy link
Copy Markdown
Contributor

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:

Not run on Windows here. Rebased on af20b4b.

🤖 Generated with 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
@BlestTerror

Copy link
Copy Markdown
Contributor Author

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

@ivall

ivall commented Nov 23, 2026

Copy link
Copy Markdown
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants