diff options
| author | mrp1no <137657338+mrp1no@users.noreply.github.com> | 2026-11-22 19:04:31 +0100 |
|---|---|---|
| committer | mrp1no <137657338+mrp1no@users.noreply.github.com> | 2026-11-22 19:04:31 +0100 |
| commit | c226964ea07607bbce3c33a7df539b3a7bdb05f5 (patch) | |
| tree | 1074c12b193249d5a09b2b7c19e77b71652f68a7 /runtime/opus_decoder | |
| parent | 49475796c226c8511b9470bf97a4daf57b8af323 (diff) | |
d3d12: WriteToSubresource/ReadFromSubresource answer as the host runtime does
d3d12_subresource_copy_test runs the same 117 steps on the Vulkan-backed device
and on the host runtime: textures in write-back and write-combine custom heaps,
a volume, an array, BC1 blocks, a buffer, an upload-heap buffer, a default-heap
texture and a multisampled one; whole and boxed copies, boxes outside, empty,
inverted or cutting a block, subresources past the last, pitches too small or
0, and copies before Map. It records every HRESULT and a hash of the whole
destination of every read, once per copy path (host image copy and staging).
On main 17 steps differed (RTX 3060, driver 610.88); now none do. The host's
rules:
- a box is refused only when its right, bottom or back edge lies past the
mip's, or it cuts a compressed block; an empty or inverted box that passes
those checks is S_OK and copies nothing (the layer refused it);
- the row and depth pitches are not checked: rows or slices that overlap are
copied in order (the layer refused a pitch smaller than a row or slice).
Not compared, and reported as such: null data (the host faults; the layer
still answers E_INVALIDARG), which bytes win when a read's rows overlap (the
driver's copy order, tiled on NVIDIA), and a default-heap texture, which the
host refuses and the layer copies on purpose, as docs/d3d12_vulkan.md says.
d3d12_vulkan_device_test's cpu_copies expected the old refusals for an empty
box and overlapping slices, and now expects S_OK.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/opus_decoder')
0 files changed, 0 insertions, 0 deletions