diff options
| author | haayden <58538499+haayden@users.noreply.github.com> | 2026-11-23 13:55:13 -0600 |
|---|---|---|
| committer | haayden <58538499+haayden@users.noreply.github.com> | 2026-11-23 13:55:13 -0600 |
| commit | 14d54d0d76662e12b80ff260af852d5c9c29d83d (patch) | |
| tree | ca20c963546bf85caddb3cf78b5f42592aedd979 /runtime/xma_decoder/tests/ffi_cpp_smoke.cpp | |
| parent | 867d922f09b86583859796a174df89555fb32da8 (diff) | |
d3d12: a placed buffer keeps its heap's arena range after the heap is released
A placed buffer is a range of its heap's arena memory, but only the heap
held that range: releasing the application's last ID3D12Heap pointer
freed it while placed buffers in it were still alive, so the next heap
or committed buffer got the same GPU address and the arena zeroed and
overwrote the live buffer. On D3D12 a placed resource holds a reference
on its heap, so releasing the heap first is legal.
The placed buffer now holds the heap's range (the shared allocation
whose deleter returns it to the arena). New d3d12_placed_heap_lifetime
test: red on main (the new heap's buffer lands on 0x10000, the live
buffer's address), green with the fix.
AI-assisted (Claude Code)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/xma_decoder/tests/ffi_cpp_smoke.cpp')
0 files changed, 0 insertions, 0 deletions