upleb.uk

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

summaryrefslogtreecommitdiff
path: root/runtime/test/vk_queue_constructor_oom_test.cpp
diff options
context:
space:
mode:
authorERROR890 <71877675+ERROR890@users.noreply.github.com>2026-11-27 02:15:36 +0700
committerERROR890 <71877675+ERROR890@users.noreply.github.com>2026-11-27 02:15:36 +0700
commit3ae707cedee1242e52018620758261276a117309 (patch)
tree5f09872009d26fe4378cbbfcd0558434dc70c706 /runtime/test/vk_queue_constructor_oom_test.cpp
parente57bc63bc5f867010f494dda93c795e52e3de6d0 (diff)
d3d12_xs: capture a pipeline stream that carries a VIEW_INSTANCING subobject
The stream parser that decides creation models `D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_VIEW_INSTANCING`: it refuses a non-zero `ViewInstanceCount` and accepts the subobject with a count of 0. The capture walker that keeps a stream for derivation (`layout_of` in `shims/d3d12_xs_pso_stream.cpp`) did not model it, so that same stream created a PSO and was never captured. The PSO then carried no `PsoStreamRecord`, and every `CreateDerivedPipelineState` on it failed with E_FAIL ("base PSO has no kept stream"), which is a silent loss of the derived states the title asks for. Model the subobject's size and alignment in the capture walker. Only the count == 0 shape reaches it (a non-zero count is refused before a PSO is created), so the payload's `pViewInstanceLocations` is never read: the walk needs the entry's own size and alignment to step over it, nothing more. `pso_stream_test` gains `test_view_instancing_is_captured`: a synthetic stream built the same way as the existing cases, plus a zero-count `VIEW_INSTANCING` entry, must be captured, keep the entry's payload offset, and still derive a tag-1 record. It fails on `main` ("a stream with a zero-count VIEW_INSTANCING subobject is captured") and passes with this change.
Diffstat (limited to 'runtime/test/vk_queue_constructor_oom_test.cpp')
0 files changed, 0 insertions, 0 deletions