Commit Graph

3 Commits

Author SHA1 Message Date
3ef235a681 d3d12/vulkan: rebind released sparse pages to shared zero page on AMD proprietary 2026-11-29 10:40:34 -05:00
b2c9695962 Fix NVIDIA sparse arena, MSVC TLS callbacks, FTZ32 probe, teardown leaks, and cross-GPU tests 2026-11-28 16:34:52 -05:00
63bb5d1488 test: vk_heap_alias_test binds one home into a mirror chunk and into the arena, as a console heap read in place needs
25,865 of the corpus's 26,503 shaders keep only the low 32 bits of a descriptor-table pointer (docs/d3d12_vulkan.md,
"Descriptor-table high-dword truncation"), so a console heap whose pages live in the page mirror at heap_base + the
title's address (tens of TiB up) must also be readable at heap_base + an offset below 4 GiB: in the sparse arena.
The mechanism is a second sparse bind of the same home. On a real device, with no shader: one VkDeviceMemory bound
into two sparse aliased buffers shows the same bytes through both, for CPU writes into the home and GPU writes through
either buffer; the arena pages after the heap, with nothing bound, read zero (the null-slot guard needs no memory);
unbinding the mirror's view leaves the arena's. Skips (77) without sparse aliased buffers with strict residency.

Ryzen 9 7950X3D iGPU, RADV, Mesa 26.3.1: passes, 0 validation errors; llvmpipe skips (no strict residency).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 05:07:02 -05:00