diff options
| author | bailu12300 <bailu12300@users.noreply.github.com> | 2026-11-24 03:55:56 +0800 |
|---|---|---|
| committer | bailu12300 <bailu12300@users.noreply.github.com> | 2026-11-24 03:55:56 +0800 |
| commit | e1ec785b2ddda4a00f7996951d4cc344fc9e7574 (patch) | |
| tree | 15a2ecb309a4e8b2db140ef4227a99b3554dcdc5 /runtime/src/bcpack.cpp | |
| parent | 9cf192d92667103b9c7507a8631603d121962c08 (diff) | |
d3d12: ExecuteIndirect bounds the span max_count * stride, and checks the offset at max_count 0
d3d12_execute_indirect_validation reports five host-parity mismatches on the RTX 5060 and on
WARP: the layer accepts an argument buffer range the host refuses. Both live hosts bound the
bytes the signature can walk, max_count * stride, so a record that fits at the end of the
buffer while its stride runs past it is refused (offset 240 with stride 20 in a 256-byte
buffer), and both check the offset itself when max_count is 0, which the layer skipped
entirely.
The layer validated with (max_count - 1) * stride + record_size and only when max_count was
non-zero. It now uses the same span as the host and validates every call, in d3d12_com.cpp
(recording, so Close fails as the host's does) and in vulkan_replay.h (replay, which had its
own copy of the old arithmetic).
The test's positive GPU path recorded the same out-of-range calls the parity table marks as
refused, so it moves to an exact-fit range (244 + 12 == 256) and a max_count 0 no-op at the
buffer's end (offset 256), and the five parity rows take the verdict both hosts give here.
Diffstat (limited to 'runtime/src/bcpack.cpp')
0 files changed, 0 insertions, 0 deletions