upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/src/xma2_decoder.cpp
diff options
context:
space:
mode:
authorthedarkcr0w <vladcrow02@gmail.com>2026-11-23 19:13:12 +0100
committerTreXito <81475944+TreXito@users.noreply.github.com>2026-11-23 21:40:52 +0000
commitda6270710142bfc1190f204fc87ed6eae13225dc (patch)
treef6b30dc129a1644f464e77f7e69c94e63b9179da /runtime/src/xma2_decoder.cpp
parent33d76521d42cdf11703fc076ab29d055f9aa5951 (diff)
d3d12_xs: a buffer placed at an address through device slot 133 is the resource of a slot 70 view of that address
Device slot 70 makes a shader-resource view from a description and a console address, with no resource object. It asked only the device behind the proxy for a buffer at that address, and that device knows the buffer by the title's address only when it could put the buffer on the title's own pages. When it could not (the import is refused, or the device is a PC one), the slot 133 buffer has an address of its own, nothing was found, and the title's descriptor got the null view. The proxy now remembers every buffer a slot 133 call made by the range the title placed it at, whichever way it was made (the placed-at-VA handler, PC CreateCommittedResource3 or CreateCommittedResource), and slot 70 asks there first, then the device's provider. An entry holds no reference. An object attached to the resource as private data removes the entry when the resource dies, and a device proxy's entries go with it. The newest buffer over an address answers, so a range the title places again is the new buffer's. xs_proxy_mock_test: check_slot70_placed_buffer covers both creation paths and the handler path, the element range, the cut at the buffer's end, the addresses around two buffers, a texture, the provider fallback and its order, a range placed twice, a released buffer and a released device. The check of the placed-at-VA handler in check_levels hands out a mock resource instead of a made-up pointer, since the proxy now asks the object for ID3D12Resource. Depends on: #7066 (slot 70), #7218 or #7075 (slot 133), #6953 (the table reaches slot 133), and #7235 for the mock's SetPrivateDataInterface. (cherry picked from commit 7387445983daa6d52367cd7a78ef0a6069b7035e)
Diffstat (limited to 'runtime/src/xma2_decoder.cpp')
0 files changed, 0 insertions, 0 deletions