upleb.uk

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

summaryrefslogtreecommitdiff
path: root/docs/d3d12_vulkan.md
diff options
context:
space:
mode:
authorJan Trencansky <jan.trencansky@protonmail.com>2026-11-24 18:10:14 -0500
committerJan Trencansky <jan.trencansky@protonmail.com>2026-11-24 18:10:14 -0500
commitd7e2944757a8f3df6c53a45013994bdabfdaaa5d (patch)
tree1b371456b569a1abbe251a966c55991520dc60bb /docs/d3d12_vulkan.md
parent3ca10dfe1f90824bb52efe653677cd821f3ac138 (diff)
parentd9f0a98e1b591fc337cb5eb4634267ed90808b1d (diff)
Merge main into RT-SLOT74 (#385)
Three files conflicted; in each, both sides had added something and both are kept. runtime/shims/d3d12_xs_device.cpp: this branch moved the Xbox device slot routes into route_xbox_device_slot(), which slot 74's handler asks first, while main added a sixth route to the inline chain: GetFrameStatisticsX (routes.frame_statistics, slot 81), answered by the presentation handler or with S_FALSE and a zero count. The helper is kept and that route is moved into it unchanged, between wait_event and queue_x as on main. runtime/test/xs_proxy_mock_test.cpp: run_env_slots keeps this branch's on_slot74 parameter next to main's EnvPresenter struct, and main() runs check_slot74() and then check_presentation_wiring(). docs/d3d12_vulkan.md: both table rows, in slot order (74, then 81). Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Diffstat (limited to 'docs/d3d12_vulkan.md')
-rw-r--r--docs/d3d12_vulkan.md97
1 files changed, 71 insertions, 26 deletions
diff --git a/docs/d3d12_vulkan.md b/docs/d3d12_vulkan.md
index 9f285c515..b50ce4a09 100644
--- a/docs/d3d12_vulkan.md
+++ b/docs/d3d12_vulkan.md
@@ -371,9 +371,8 @@ What is implemented (all of it testable without the game):
371 SDK's `d3d12.h` by `tools/gen_d3d12_stubs.py`. The stub reports its name once, so the vtables follow the SDK 371 SDK's `d3d12.h` by `tools/gen_d3d12_stubs.py`. The stub reports its name once, so the vtables follow the SDK
372 order exactly and nothing derived from the SDK is checked in. Unknown IIDs are logged and refused. Resources 372 order exactly and nothing derived from the SDK is checked in. Unknown IIDs are logged and refused. Resources
373 are identified by their `ID3D12Resource` pointer, and RTV/DSV CPU handles point at a `TargetView`. 373 are identified by their `ID3D12Resource` pointer, and RTV/DSV CPU handles point at a `TargetView`.
374 `OMSetFrontAndBackStencilRef` records its two `UINT`s on the list (and `Reset` clears them), but nothing applies 374 `OMSetFrontAndBackStencilRef` records its two `UINT`s on the list (and `Reset` clears them); each draw sets them
375 them yet: Vulkan can set the faces with `vkCmdSetStencilReference` and a face mask, but only a pipeline that 375 with `vkCmdSetStencilReference` and a face mask.
376 consumes the dynamic state can, and this layer has no pipeline or draw path.
377- **Device** (`runtime/shims/d3d12_vulkan_device.cpp`): an `ID3D12Device11` (PC ABI, 80 slots) that the Xbox-ABI 376- **Device** (`runtime/shims/d3d12_vulkan_device.cpp`): an `ID3D12Device11` (PC ABI, 80 slots) that the Xbox-ABI
378 proxy (`d3d12_xs_device.cpp`) forwards to, so slot 14's heap-handle conversion and slot 76's resource creation 377 proxy (`d3d12_xs_device.cpp`) forwards to, so slot 14's heap-handle conversion and slot 76's resource creation
379 work unchanged. It creates the objects above, plus: 378 work unchanged. It creates the objects above, plus:
@@ -831,7 +830,10 @@ The compute path, end to end:
831 state, since nothing would set it (`VUID-vkCmdDraw-pStrides-04913`). 830 state, since nothing would set it (`VUID-vkCmdDraw-pStrides-04913`).
832 `d3d12_state_sweep_test` checks the mapping against the host on the same adapter: 482 full-screen draws over 831 `d3d12_state_sweep_test` checks the mapping against the host on the same adapter: 482 full-screen draws over
833 every blend factor pair, blend operation, write mask, comparison function and stencil operation, with the stencil 832 every blend factor pair, blend operation, write mask, comparison function and stencil operation, with the stencil
834 plane read back, are byte-identical on an RTX 5080 and a Radeon iGPU. 833 plane read back, are byte-identical on an RTX 5080 and a Radeon iGPU. Sixteen more build the PSO from a stream
834 with `DEPTH_STENCIL2` and different masks per face, front- and back-facing, with one reference or two
835 (`OMSetFrontAndBackStencilRef`): 498 in all, byte-identical on an RTX 5070 Ti (driver 617.42), and 6 of the 16
836 differ when the back face is given the front face's masks.
835 - **Logic ops** come from `RenderTarget[0]`, as in D3D12, and apply to every target (Vulkan has one per 837 - **Logic ops** come from `RenderTarget[0]`, as in D3D12, and apply to every target (Vulkan has one per
836 pipeline; it skips float formats). **`DepthClipEnable = FALSE`** is depth clamping: D3D12 clamps output depth 838 pipeline; it skips float formats). **`DepthClipEnable = FALSE`** is depth clamping: D3D12 clamps output depth
837 to the viewport's range anyway. 839 to the viewport's range anyway.
@@ -2029,6 +2031,15 @@ without recorded inputs. In that case the runtime accepts any input layout when
2029 2031
2030### 3.6 Shader identity, PSOs and feature selection 2032### 3.6 Shader identity, PSOs and feature selection
2031 2033
2034The Xbox native graphics pipeline descriptor identifies stages by the digest in a DXBC HASH part (see
2035`docs/fspx.md`, kind 7). The shaders stage writes `<work>/shaders/spirv/native_hashes.txt` from the user's
2036carved DXBC containers and translation index. After the version header, each line contains the 16-byte digest
2037in lowercase hex, the translated stage and a container path relative to the index, separated by tabs.
2038Containers sharing a digest must agree on stage and FSSM hash. A collision fails the stage and preserves the
2039previous catalog. Rerunning the shaders stage checks its source fingerprint, including the catalog writer.
2040To add or refresh just the catalog in an existing translation, run
2041`python -I tools/native_pso_hashes.py "<work>/shaders/dxbc" "<work>/shaders/spirv"`.
2042
2032A D3D12 PSO carries DXBC containers, not SPIR-V. The layer identifies a shader by hashing the **FSSM payload** (the 2043A D3D12 PSO carries DXBC containers, not SPIR-V. The layer identifies a shader by hashing the **FSSM payload** (the
2033native RDNA2 program inside the container) and looking it up in a build-time table keyed by `(stage, hash)`. The 2044native RDNA2 program inside the container) and looking it up in a build-time table keyed by `(stage, hash)`. The
2034build emits that hash for every translation; the runtime extracts the FSSM chunk from the DXBC container the same 2045build emits that hash for every translation; the runtime extracts the FSSM chunk from the DXBC container the same
@@ -2067,9 +2078,12 @@ Pipeline creation:
2067 shader, root signature content or state, a changed byte, a truncated blob or a pointer with size 0 give 2078 shader, root signature content or state, a changed byte, a truncated blob or a pointer with size 0 give
2068 `E_INVALIDARG`; a null pointer with a size is ignored; another adapter gives `D3D12_ERROR_ADAPTER_NOT_FOUND` and 2079 `E_INVALIDARG`; a null pointer with a size is ignored; another adapter gives `D3D12_ERROR_ADAPTER_NOT_FOUND` and
2069 another driver `D3D12_ERROR_DRIVER_VERSION_MISMATCH`. `ID3D12PipelineLibrary` is an in-memory map plus the Vulkan 2080 another driver `D3D12_ERROR_DRIVER_VERSION_MISMATCH`. `ID3D12PipelineLibrary` is an in-memory map plus the Vulkan
2070 cache. Its arguments answer as the host's (`d3d12_pipeline_library_host_test`, 74 values from 46 calls that need no 2081 cache. `d3d12_pipeline_library_host_test` compares public argument checks with the host. It runs each host
2071 PSO, each run on the host in a process of its own, since a call it faults on leaves its runtime broken and the next 2082 call in a separate process because a fault can leave the device unusable. It reports serialized sizes and the
2072 one failing fast; RTX 3060, driver 610.88): 2083 result of flipping a trailing byte for each device's own format. `d3d12_pipeline_library_test` checks that the
2084 layer rejects a nonzero reserved field in its `LPL1` header. On Windows 11 build 26100 (RTX 5070 Ti,
2085 driver 610.74), all 72 public-argument comparisons matched. The previous 74-value run (RTX 3060, driver
2086 610.88) included the two results from the trailing-byte case.
2073 - `CreatePipelineLibrary`: a foreign, truncated or corrupt blob, the other device's blob, or a null pointer with a 2087 - `CreatePipelineLibrary`: a foreign, truncated or corrupt blob, the other device's blob, or a null pointer with a
2074 size is `E_INVALIDARG`, and `*ppPipelineLibrary` is left as it was. One of the layer's own blobs from another 2088 size is `E_INVALIDARG`, and `*ppPipelineLibrary` is left as it was. One of the layer's own blobs from another
2075 format version is `D3D12_ERROR_DRIVER_VERSION_MISMATCH`, the documented code for a cache from another driver. 2089 format version is `D3D12_ERROR_DRIVER_VERSION_MISMATCH`, the documented code for a cache from another driver.
@@ -2098,8 +2112,10 @@ The trace will enumerate them.
2098 a VS stream builds the same PSO as the classic call. 2112 a VS stream builds the same PSO as the classic call.
2099 - `E_INVALIDARG`, as on the PC runtime: a type given twice, an unknown type, a truncated stream, MS with VS, 2113 - `E_INVALIDARG`, as on the PC runtime: a type given twice, an unknown type, a truncated stream, MS with VS,
2100 tessellation or GS, CS with a graphics stage, or no stage at all. 2114 tessellation or GS, CS with a graphics stage, or no stage at all.
2101 - `E_NOTIMPL` with a log, for what is not built yet: an AS, a depth-bounds test, separate front and back stencil 2115 - `E_NOTIMPL` with a log, for what is not built yet: an AS, a depth-bounds test, view instancing.
2102 masks, view instancing. 2116 - `DEPTH_STENCIL2`'s per-face read and write masks go to each face's `VkStencilOpState` (the front face's in the
2117 description, the back face's beside it), so `OPTIONS14.IndependentFrontAndBackStencilRefMaskSupported` is TRUE:
2118 with `OMSetFrontAndBackStencilRef`'s per-face references, both of that cap's parts.
2103 - `RASTERIZER1`/`2`'s float depth bias is truncated to the integer the PSO path takes, with a log. 2119 - `RASTERIZER1`/`2`'s float depth bias is truncated to the integer the PSO path takes, with a log.
2104- **Mesh PSO:** the MS (`ms` index entry by FSSM hash) and PS on the mesh stage. It has no vertex input or input 2120- **Mesh PSO:** the MS (`ms` index entry by FSSM hash) and PS on the mesh stage. It has no vertex input or input
2105 assembly; the input layout, topology type and strip cut are ignored, as D3D12 ignores them for mesh PSOs. Topology 2121 assembly; the input layout, topology type and strip cut are ignored, as D3D12 ignores them for mesh PSOs. Topology
@@ -2661,6 +2677,11 @@ The trace will enumerate them.
2661 stores `0x7fff` vs WARP `0x8000` (all on `main` before this change; same 1-ulp class as SRGB, not addressed here). 2677 stores `0x7fff` vs WARP `0x8000` (all on `main` before this change; same 1-ulp class as SRGB, not addressed here).
2662 `D32_FLOAT` and `D32_FLOAT_S8X24_UINT` match WARP. 2678 `D32_FLOAT` and `D32_FLOAT_S8X24_UINT` match WARP.
2663 This does not add typed-view reinterpretation of typeless resources. 2679 This does not add typed-view reinterpretation of typeless resources.
2680- **Depth clears.** Microsoft documents a `[0, 1]` clamp. On Windows 11 build 26100, both WARP and native D3D12 on
2681 an RTX 5070 Ti (610.74) preserved finite out-of-range `D32_FLOAT` values and quiet NaN in full and rectangle
2682 clears. Replay preserves those values when the Vulkan device has enabled `VK_EXT_depth_range_unrestricted`.
2683 With the extension disabled, replay clamps finite values to `[0, 1]` and uses zero for NaN. The UNORM depth
2684 format conversions still apply. [D3D12 reference](https://learn.microsoft.com/en-us/windows/win32/api/d3d12/nf-d3d12-id3d12graphicscommandlist-cleardepthstencilview)
2664- `D3D12XBOX_RESOURCE_FLAG_FORCE_TEXTURE_COMPATIBILITY` (public release note) and DCC: ignore the flag, let the 2685- `D3D12XBOX_RESOURCE_FLAG_FORCE_TEXTURE_COMPATIBILITY` (public release note) and DCC: ignore the flag, let the
2665 Vulkan driver choose compression, and fail loudly if the game aliases a buffer over a compressed image or reads 2686 Vulkan driver choose compression, and fail loudly if the game aliases a buffer over a compressed image or reads
2666 raw DCC metadata. 2687 raw DCC metadata.
@@ -2704,7 +2725,11 @@ mapped stages/accesses, and if no single layout serves all uses, use `GENERAL` a
2704- Enhanced barriers (`D3D12_BARRIER_SYNC_*`, `D3D12_BARRIER_ACCESS_*`, `D3D12_BARRIER_LAYOUT_*`) map directly to 2725- Enhanced barriers (`D3D12_BARRIER_SYNC_*`, `D3D12_BARRIER_ACCESS_*`, `D3D12_BARRIER_LAYOUT_*`) map directly to
2705 `VkPipelineStageFlags2`, `VkAccessFlags2` and `VkImageLayout` (`vulkan_sync`, `vulkan_barrier_access`, 2726 `VkPipelineStageFlags2`, `VkAccessFlags2` and `VkImageLayout` (`vulkan_sync`, `vulkan_barrier_access`,
2706 `vulkan_layout`). Queue-specific layouts map like their generic forms; ray tracing, video and split scopes use 2727 `vulkan_layout`). Queue-specific layouts map like their generic forms; ray tracing, video and split scopes use
2707 `ALL_COMMANDS`; `LayoutBefore = UNDEFINED` or the discard flag becomes `oldLayout = UNDEFINED`. 2728 `ALL_COMMANDS`; `LayoutBefore = UNDEFINED` or the discard flag becomes `oldLayout = UNDEFINED`. `SYNC_COPY` is
2729 `COPY | CLEAR`, not `COPY` alone: `WriteBufferImmediate` is recorded as `vkCmdUpdateBuffer` and
2730 `ResolveQueryData`'s never-written queries as `vkCmdFillBuffer`, which synchronization2 runs in the `CLEAR` stage
2731 (D3D-838; `vk_command_replay_test` part K is a read-after-write hazard under synchronization validation without
2732 it).
2708- `DiscardResource` (D3D-26): each discarded image subresource gets a barrier from `oldLayout = UNDEFINED` to the 2733- `DiscardResource` (D3D-26): each discarded image subresource gets a barrier from `oldLayout = UNDEFINED` to the
2709 layout the tracker already has for it, so the driver may drop the contents while later commands see no layout 2734 layout the tracker already has for it, so the driver may drop the contents while later commands see no layout
2710 change. The other cases are no-ops, which "contents undefined" allows: buffers, discards with rectangles (only 2735 change. The other cases are no-ops, which "contents undefined" allows: buffers, discards with rectangles (only
@@ -3013,6 +3038,14 @@ queue they came on (one `VkQueue` behind all of them).
3013 keeps the app's sync interval. 3038 keeps the app's sync interval.
3014 `GetFrameStatisticsX` keeps the last 64 frames and reports the event, present and display times (not render; 3039 `GetFrameStatisticsX` keeps the last 64 frames and reports the event, present and display times (not render;
3015 `PercentScanned` only for a frame shown at once by `ImmediateThresholdPercent`, else 0); `S_FALSE` with count 0 for what it does not have. 3040 `PercentScanned` only for a frame shown at once by `ImmediateThresholdPercent`, else 0); `S_FALSE` with count 0 for what it does not have.
3041 *Pacing drift reporting (BL-6):* `FramePacer` keeps fixed-capacity ring buffers (`frame_pacing_window = 1024`) of
3042 present-to-present frame intervals and origin-to-present latencies (clearing the last-present anchor across
3043 `SuspendX`/`ResumeX` so suspended pauses are excluded), computing nearest-rank `p50`/`p95`/`p99` and the mean drift
3044 against the active target interval (`FramePacer::pacing_summary()`). On teardown after at least one present,
3045 `XboxPresentation` logs a single `[rt] present: pacing summary ...` line on stderr, which `tools/boot_trace.py`
3046 surfaces beside the D3D12 call counts. Confirmed on a fake clock by `frame_pacer_test` (known 100-frame distribution,
3047 positive and negative drift, ring-buffer wrap-around, suspend/resume exclusion, uncapped mode) and by
3048 `tests/test_boot_trace.py`.
3016- *`PresentX`*: 0 planes presents a black frame (no token needed). 1 plane blits plane 0's first resource (a 3049- *`PresentX`*: 0 planes presents a black frame (no token needed). 1 plane blits plane 0's first resource (a
3017 single-sample 2D colour texture in `PRESENT`) to the swapchain image, limited to `pSrcViewRects[0]` when set 3050 single-sample 2D colour texture in `PRESENT`) to the swapchain image, limited to `pSrcViewRects[0]` when set
3018 (bilinear, so the rectangle's outer texels blend with their neighbours). The blit converts between formats; an sRGB 3051 (bilinear, so the rectangle's outer texels blend with their neighbours). The blit converts between formats; an sRGB
@@ -3313,23 +3346,34 @@ Implemented (`QueryHeap` in `runtime/shims/d3d12_vulkan_device.cpp`, the query c
3313 recording. The resolve fallback is unchanged: only resolves needing dispatches are refused there. 3346 recording. The resolve fallback is unchanged: only resolves needing dispatches are refused there.
3314- **Mesh draws during a pipeline-statistics query** (D3D-291). D3D12 allows `DispatchMesh` inside a statistics query 3347- **Mesh draws during a pipeline-statistics query** (D3D-291). D3D12 allows `DispatchMesh` inside a statistics query
3315 and reads its input-assembly, vertex, geometry and tessellation fields as 0. Vulkan forbids `vkCmdDrawMeshTasksEXT` 3348 and reads its input-assembly, vertex, geometry and tessellation fields as 0. Vulkan forbids `vkCmdDrawMeshTasksEXT`
3316 while a query with those counters is active (`VUID-vkCmdDrawMeshTasksEXT-pipelineStatistics-07076`), and the heap's 3349 while a query with the input-assembly, vertex, geometry, tessellation or clipping counters is active
3317 pool has all eleven. So a statistics query that holds a mesh draw is split as above, and a split before a draw stays 3350 (`VUID-vkCmdDrawMeshTasksEXT-pipelineStatistics-07076`), and the heap's pool has all eleven. So a statistics query
3318 outside its rendering scope. A segment's first draw decides its pool: the submission's full pool, or a second pool 3351 that holds a mesh draw is split as above, and a split before a draw stays outside its rendering scope. A segment's first draw decides its pool: the submission's full pool, or a second pool
3319 with only clipping invocations and primitives, fragment and compute invocations. A later draw of the other kind ends 3352 with only the fragment and compute invocations, the two the VUID leaves allowed. A later draw of the other kind ends
3320 the segment and begins one of its own kind; dispatches and segments without draws use the full pool, and 3353 the segment and begins one of its own kind; dispatches and segments without draws use the full pool, and
3321 `ExecuteIndirect` draws count as vertex draws. The sum copies a mesh segment's four counters into fields 5 to 8 of 3354 `ExecuteIndirect` draws count as vertex draws. The sum copies a mesh segment's two counters into fields 7 and 8 of
3322 its record, and `statistics_sum.comp` adds them as `CInvocations`, `CPrimitives`, `PSInvocations` and 3355 its record, and `statistics_sum.comp` adds them as `PSInvocations` and `CSInvocations`, so the other fields get
3323 `CSInvocations`, so the other fields get nothing from it. A query that holds only mesh draws is one mesh segment, 3356 nothing from it. D3D12 counts the clipping invocations and primitives of a mesh pipeline, but Vulkan has no counter
3324 resolved through the same sum. Without the compute helper there is no segment pool and such a list is refused 3357 for them during a mesh draw, so `CInvocations` and `CPrimitives` read 0 for a mesh segment. A query that holds only
3325 (`unsupported`) rather than run unsplit; so is one on the single-list `replay()` (D3D-399), whose 3358 mesh draws is one mesh segment, resolved through the same sum. Without the compute helper there is no segment pool
3326 `create_segment_pool` gives no mesh pool. Overlapping statistics queries (D3D-252) split the same way inside their 3359 and such a list is refused (`unsupported`) rather than run unsplit; so is one on the single-list `replay()` (D3D-399),
3327 shared segments: a draw of the other kind than the open segment's opens a new one, so every query that segment 3360 whose `create_segment_pool` gives no mesh pool. Overlapping statistics queries (D3D-252) split the same way inside
3328 belongs to sums both kinds. `replay_query_predication_test` (cases 15 and 16) checks the split points, the segment 3361 their shared segments: a draw of the other kind than the open segment's opens a new one, so every query that segment
3329 kinds and the resolve plan on the CPU. `d3d12_mesh_test` resolves a query around a vertex, two mesh and a vertex 3362 belongs to sums both kinds. `replay_query_predication_test` (cases 15 to 17) checks the split points, the segment
3330 draw, one around a mesh draw and one around the two vertex draws: the vertex fields count only the two triangles, 3363 kinds, the resolve plan and the counters the mesh pool may enable on the CPU. `d3d12_mesh_test` resolves a query
3331 and the mixed query has more clipping and pixel-shader invocations than the vertex-only one. On the RX 9060 XT 3364 around a vertex, two mesh and a vertex draw, one around a mesh draw and one around the two vertex draws: the vertex
3332 (RADV), the clipping counts add up exactly (2 + 10 = 12). 3365 fields count only the two triangles, the mixed query has the same clipping count as the vertex-only one and more
3366 pixel-shader invocations, and the mesh-only query has no clipping count without the mesh-primitives query below.
3367- **The clipping invocations of a mesh segment** (D3D-MESH-CLIPPING-COUNTER). D3D-291 leaves `CInvocations` and
3368 `CPrimitives` of a mesh segment at 0, because Vulkan has no clipping counter during a mesh draw. Where the device
3369 has the `meshShaderQueries` feature of `VK_EXT_mesh_shader`, the number of primitives the mesh shader emitted
3370 comes from a `VK_QUERY_TYPE_MESH_PRIMITIVES_GENERATED_EXT` query instead: a third pool of the submission, begun
3371 and ended with each mesh segment, next to the two the statistics split needs. Its count is copied to field 5 of the
3372 segment's record and `statistics_sum.comp` adds it as `CInvocations`; `CPrimitives` stays 0, because Vulkan has
3373 no clipped-primitive counter and D3D12's `CPrimitives` is the clipper's output (0 when a triangle is dropped, 2
3374 when it is split). The count is not D3D12's number: Vulkan counts a primitive the mesh shader culled with
3375 `gl_CullPrimitiveEXT`, which D3D12 does not count, so a mesh segment's `CInvocations` can be higher than D3D12's.
3376 Without the feature the field reads 0, as in D3D-291.
3333- **Timestamps.** `GetTimestampFrequency` is `1e9 / timestampPeriod` (1 GHz on the test GPU). Every D3D12 queue 3377- **Timestamps.** `GetTimestampFrequency` is `1e9 / timestampPeriod` (1 GHz on the test GPU). Every D3D12 queue
3334 shares one `VkQueue` for now (question 12), so they share one frequency. 3378 shares one `VkQueue` for now (question 12), so they share one frequency.
3335- **Timestamp resolves on MoltenVK.** On Apple GPUs, MoltenVK delays every `vkCmdWriteTimestamp` to the end of 3379- **Timestamp resolves on MoltenVK.** On Apple GPUs, MoltenVK delays every `vkCmdWriteTimestamp` to the end of
@@ -3534,6 +3578,7 @@ to be recovered from call sites (or the NDA GDK headers, if a developer has acce
3534| Indirect argument type 105 | The retail title's startup creates five one-argument command signatures (device slot 41) with no root signature; one has type 105 and a 12-byte stride. Its two `ExecuteIndirect` sites, read statically, set the compute state first, as the `DISPATCH` sites do, and pass one command from the same argument buffer, on a second command list | `d3d12_xs_device.cpp` creates it as `DISPATCH` (`D3D12_DISPATCH_ARGUMENTS`). What the console does differently for it is **Open**. | 3578| Indirect argument type 105 | The retail title's startup creates five one-argument command signatures (device slot 41) with no root signature; one has type 105 and a 12-byte stride. Its two `ExecuteIndirect` sites, read statically, set the compute state first, as the `DISPATCH` sites do, and pass one command from the same argument buffer, on a second command list | `d3d12_xs_device.cpp` creates it as `DISPATCH` (`D3D12_DISPATCH_ARGUMENTS`). What the console does differently for it is **Open**. |
3535| Device slot 61 | The retail title's boot under `gta6rt --run` (stop 20 of the RT-5 measurements in #6910): called as `(desc, dest handle)` once per sampler | `d3d12_xs_device.cpp` routes it to the PC `CreateSampler` (slot 22) with the description's PC `D3D12_SAMPLER_DESC` prefix, for a caller in an image the guest loader mapped; the PC slot 61 is `CreateMetaCommand`, which any other caller (a host test driving the device through the proxy) still gets. The layout of the description beyond the PC fields is **Open**. | 3579| Device slot 61 | The retail title's boot under `gta6rt --run` (stop 20 of the RT-5 measurements in #6910): called as `(desc, dest handle)` once per sampler | `d3d12_xs_device.cpp` routes it to the PC `CreateSampler` (slot 22) with the description's PC `D3D12_SAMPLER_DESC` prefix, for a caller in an image the guest loader mapped; the PC slot 61 is `CreateMetaCommand`, which any other caller (a host test driving the device through the proxy) still gets. The layout of the description beyond the PC fields is **Open**. |
3536| Device slot 74 | The retail title's boot under `gta6rt --run`: called as `(pointer, u32, pointer)` | **Stand-in.** `d3d12_xs_device.cpp` answers `S_OK` and does nothing, for a caller in an image the guest loader mapped; the PC slot 74 is `ShaderCacheControl`, which the call does not fit and which any other caller still gets. What the console method is, and what it should do, is **Open**. | 3580| Device slot 74 | The retail title's boot under `gta6rt --run`: called as `(pointer, u32, pointer)` | **Stand-in.** `d3d12_xs_device.cpp` answers `S_OK` and does nothing, for a caller in an image the guest loader mapped; the PC slot 74 is `ShaderCacheControl`, which the call does not fit and which any other caller still gets. What the console method is, and what it should do, is **Open**. |
3581| Device slot 81, queue `PresentX`/`SuspendX`/`ResumeX` | XCL (GPL-2.0-only, third-party): `GetFrameStatisticsX` at device slot 81, `PresentX` at queue slot 30 (older runtime layout) or 32 (newer); `SuspendX`/`ResumeX` slots unmeasured | `set_presentation_handler` forwards 78-81 and the queue routes to a presenter (`attach_xbox_presentation`; `gta6rt` creates no `XboxPresentation` yet). Without one, slot 81 answers `S_FALSE` with a zero count (no statistics yet) and the queue slots stay refused. Moved with `LEONIDA_XS_FRAME_STATISTICS_SLOT` (3..127) and `LEONIDA_XS_PRESENT_X_SLOT` (default 30); `SuspendX` and `ResumeX` are routed only when `LEONIDA_XS_SUSPEND_X_SLOT` / `LEONIDA_XS_RESUME_X_SLOT` are set (queue slots 19..127; two routes on one slot are refused with a log). |
3537| VRS | Public `D3D12_SHADING_RATE` / `D3D12_AXIS_SHADING_RATE` | `VK_KHR_fragment_shading_rate`; `RSSetShadingRate`/image-based rate map to `vkCmdSetFragmentShadingRateKHR`. | 3582| VRS | Public `D3D12_SHADING_RATE` / `D3D12_AXIS_SHADING_RATE` | `VK_KHR_fragment_shading_rate`; `RSSetShadingRate`/image-based rate map to `vkCmdSetFragmentShadingRateKHR`. |
3538| Mesh shader tier | Public `D3D12_MESH_SHADER_TIER` | `VK_EXT_mesh_shader`; the 9,282 translated mesh shaders make this a hard requirement for any content that uses them. | 3583| Mesh shader tier | Public `D3D12_MESH_SHADER_TIER` | `VK_EXT_mesh_shader`; the 9,282 translated mesh shaders make this a hard requirement for any content that uses them. |
3539| Wave MMA | Public `D3D12_WAVE_MMA_TIER` | Not used: no shader sets `WAVE_MMA` in SFI0 and none contains `v_mfma`/`v_wmma` (all 26,503, `tools/feature_scan.py`). Answer the tier query truthfully; no cooperative-matrix mapping is needed. | 3584| Wave MMA | Public `D3D12_WAVE_MMA_TIER` | Not used: no shader sets `WAVE_MMA` in SFI0 and none contains `v_mfma`/`v_wmma` (all 26,503, `tools/feature_scan.py`). Answer the tier query truthfully; no cooperative-matrix mapping is needed. |