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:
authorRain156 <77776581+Rain156@users.noreply.github.com>2026-11-24 21:17:25 +0800
committerRain156 <77776581+Rain156@users.noreply.github.com>2026-11-24 21:17:25 +0800
commit3c7927ea266c8dcb798de3462e9d4f4af2cdfc82 (patch)
tree3afa7977e790954d62182cbc58bf7b9ec262d03e /docs/d3d12_vulkan.md
parent65b8569bbce801f5d083fd5c91cd8bc13f825ece (diff)
parent4ed6229e731bbcea95ec29b0a8f4f11cade1c439 (diff)
Integrate #526 for the Windows first-run UI
Diffstat (limited to 'docs/d3d12_vulkan.md')
-rw-r--r--docs/d3d12_vulkan.md30
1 files changed, 28 insertions, 2 deletions
diff --git a/docs/d3d12_vulkan.md b/docs/d3d12_vulkan.md
index c98cf93d7..5b0b75f8c 100644
--- a/docs/d3d12_vulkan.md
+++ b/docs/d3d12_vulkan.md
@@ -2260,6 +2260,29 @@ The trace will enumerate them.
2260 Intel Raptor Lake-S (101.7092) and RTX 5060 Laptop (621.24) hosts wrap, two 2^63 buffers to 0, and WARP on that 2260 Intel Raptor Lake-S (101.7092) and RTX 5060 Laptop (621.24) hosts wrap, two 2^63 buffers to 0, and WARP on that
2261 PC still saturates. A wrapped total could make a caller allocate less than one of its resources, so the layer 2261 PC still saturates. A wrapped total could make a caller allocate less than one of its resources, so the layer
2262 keeps saturating, and the test accepts a host that wraps. 2262 keeps saturating, and the test accepts a host that wraps.
2263 Behind the Xbox-ABI proxy (device slots 25 and 56) a 2D render target of a listed colour format with one sample is
2264 padded to whole console tiles: the size is the sum over its mips (MipLevels 0 is the full chain, an odd extent
2265 rounds up), each mip rounded up to the RDNA2 SW_64KB_D tile shape (`runtime/src/gfx10_tiling.h`: 256 x 128 pixels
2266 for 2-byte elements, 128 x 128 for 4-byte, 128 x 64 for 8-byte, 64 x 64 for 16-byte), with the first mip that fits
2267 in half a tile's width and a whole tile's height, and the mips after it, sharing one tail tile, times the array
2268 size. A 1920 x 1080 RGBA8 target is 135 tiles, 8,847,360 bytes, where the PC answer is 8,323,072. The proxy lays
2269 the descriptions out as the PC device does (each at its own alignment, the total rounded up to the largest
2270 alignment, sums saturating) with each render target at the larger of its console size and its PC size; a 4 MiB
2271 aligned multisampled neighbour therefore keeps its place (a 1 x 1 four-sample target and a 1080p target need 16 MiB,
2272 not 12.5). Slot 56 reports the same offsets. The PC layout stands when no description grows
2273 (`d3d12_xs_alloc_size.h`; `xs_proxy_mock_test`). **Assumption**: the
2274 retail title's own sizes are not measured (#6982, stop 17), so that its allocation is these shapes and no DCC or
2275 CMask memory is open until they are.
2276 The descriptions the title passes to slot 25 carry console values (layout word `0x101`/`0x1`, flag bits above the PC
2277 ones). The proxy gives the PC device a copy with the PC flags only and ROW_MAJOR (buffer) or UNKNOWN (texture); the
2278 title's array is never written (`d3d12_xs_desc_clean.h`, the same cleaning as slot 76; #6982 section 3.7).
2279 A committed resource made through slots 76 and 127 also allocates that size through the title's
2280 `__XMemAllocationHooks__`, as the console runtime's `XMemAlloc` for the resource does, and frees it when the
2281 resource is destroyed (a lease kept with `SetPrivateDataInterface`; the bytes are not used). The retail title
2282 budgets its first full-screen render targets with such a hook: it bump-allocates the allocations whose XALLOC
2283 page-size field is 2 out of a range it reserved and asserts that less than 2 MiB is left (RT-5 stop 17). The
2284 lease's attribute word (allocator ID 0x80, page-size field 2, object type 0) is an **assumption**; the measured
2285 hook reads only the page-size field.
2263- `GetAdapterLuid` (implemented): `VkPhysicalDeviceIDProperties::deviceLUID`, which on Windows is the DXGI 2286- `GetAdapterLuid` (implemented): `VkPhysicalDeviceIDProperties::deviceLUID`, which on Windows is the DXGI
2264 adapter's LUID; `d3d12_fence_timing_test` finds it with `IDXGIFactory4::EnumAdapterByLuid` (RTX 4090, driver 2287 adapter's LUID; `d3d12_fence_timing_test` finds it with `IDXGIFactory4::EnumAdapterByLuid` (RTX 4090, driver
2265 621.14). A driver that reports `deviceLUIDValid = VK_FALSE` gets a zero LUID, logged. 2288 621.14). A driver that reports `deviceLUIDValid = VK_FALSE` gets a zero LUID, logged.
@@ -2276,8 +2299,9 @@ The trace will enumerate them.
2276 RDX, node mask in R8 and heap type in R9: three calls right after device creation, node mask 1 and types 1, 2 2299 RDX, node mask in R8 and heap type in R9: three calls right after device creation, node mask 1 and types 1, 2
2277 and 3 (measured under `gta6rt --run` with a register probe in the slot's thunk). A PC C++ method has the device 2300 and 3 (measured under `gta6rt --run` with a register probe in the slot's thunk). A PC C++ method has the device
2278 in RCX and the buffer in RDX, so the Xbox-ABI proxy takes the console form when RDX holds the proxy 2301 in RCX and the buffer in RDX, so the Xbox-ABI proxy takes the console form when RDX holds the proxy
2279 (`d3d12_xs_device.cpp`; `xs_proxy_mock_test`, `device_proxy_test`). Slots 25 and 43 return structs too; the 2302 (`d3d12_xs_device.cpp`; `xs_proxy_mock_test`, `device_proxy_test`). Slot 43 returns a struct too and the
2280 executable has not been seen calling them yet, so the proxy still forwards them in the PC form. 2303 proxy still forwards it in the PC form: no call of slot 43 has been seen. Slots 25 and 56 take the same form by the
2304 same rule (reported later in the boot, #6982; not measured), as #6973 first did for slot 25.
2281- Residency and power (D3D-33) are no-ops that still check their arguments (`d3d12_vulkan_device.cpp`, tested in 2305- Residency and power (D3D-33) are no-ops that still check their arguments (`d3d12_vulkan_device.cpp`, tested in
2282 `d3d12_vulkan_device_test`). Vulkan has no residency API: memory from `vkAllocateMemory` stays usable until 2306 `d3d12_vulkan_device_test`). Vulkan has no residency API: memory from `vkAllocateMemory` stays usable until
2283 `vkFreeMemory`, and paging under pressure is the kernel driver's job, so every pageable object is always resident. 2307 `vkFreeMemory`, and paging under pressure is the kernel driver's job, so every pageable object is always resident.
@@ -3519,6 +3543,8 @@ to be recovered from call sites (or the NDA GDK headers, if a developer has acce
3519| DCC / texture compatibility | Public release note for `D3D12XBOX_RESOURCE_FLAG_FORCE_TEXTURE_COMPATIBILITY` | Let Vulkan choose compression; fail if the game aliases/reads raw compressed data. | 3543| DCC / texture compatibility | Public release note for `D3D12XBOX_RESOURCE_FLAG_FORCE_TEXTURE_COMPATIBILITY` | Let Vulkan choose compression; fail if the game aliases/reads raw compressed data. |
3520| PresentX / present planes / frame events | Public GDK samples (MIT/zlib), §4.5 | Likely the only present path of a GDKX title. Presenter + vblank-timed frame events; 1-2 planes composed into the Vulkan swapchain (placement, filter, alpha overlay, HDR10 conversions). Call shapes known; slots/layouts **Open**. | 3544| PresentX / present planes / frame events | Public GDK samples (MIT/zlib), §4.5 | Likely the only present path of a GDKX title. Presenter + vblank-timed frame events; 1-2 planes composed into the Vulkan swapchain (placement, filter, alpha overlay, HDR10 conversions). Call shapes known; slots/layouts **Open**. |
3521| Device slots 48/73/78/79/80 | Public HLE `Freminet`/`ScarlettX` (third-party, not Microsoft documentation) | `d3d12_xs_device.cpp` routes `CreateCommandQueueX` (48), `CreateCommandListX` (73), `SetFrameIntervalX` (78), `ScheduleFrameEventX` (79) and `WaitFrameEventX` (80) before it indexes the PC vtable. Queue and list creation use the existing create paths. The frame-event calls are a per-device token counter: `WaitFrameEventX` returns at once with a fresh non-zero token, because there is no vblank source before a presenter exists. The five indices can be moved with `LEONIDA_XS_QUEUE_X_SLOT`, `LEONIDA_XS_LIST_X_SLOT`, `LEONIDA_XS_FRAME_INTERVAL_SLOT`, `LEONIDA_XS_SCHEDULE_EVENT_SLOT` and `LEONIDA_XS_WAIT_EVENT_SLOT` (3..127; a value that names a slot the proxy already handles keeps that slot's handler); a trace that disagrees wins. | 3545| Device slots 48/73/78/79/80 | Public HLE `Freminet`/`ScarlettX` (third-party, not Microsoft documentation) | `d3d12_xs_device.cpp` routes `CreateCommandQueueX` (48), `CreateCommandListX` (73), `SetFrameIntervalX` (78), `ScheduleFrameEventX` (79) and `WaitFrameEventX` (80) before it indexes the PC vtable. Queue and list creation use the existing create paths. The frame-event calls are a per-device token counter: `WaitFrameEventX` returns at once with a fresh non-zero token, because there is no vblank source before a presenter exists. The five indices can be moved with `LEONIDA_XS_QUEUE_X_SLOT`, `LEONIDA_XS_LIST_X_SLOT`, `LEONIDA_XS_FRAME_INTERVAL_SLOT`, `LEONIDA_XS_SCHEDULE_EVENT_SLOT` and `LEONIDA_XS_WAIT_EVENT_SLOT` (3..127; a value that names a slot the proxy already handles keeps that slot's handler); a trace that disagrees wins. |
3546| 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**. |
3547| 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**. |
3522| VRS | Public `D3D12_SHADING_RATE` / `D3D12_AXIS_SHADING_RATE` | `VK_KHR_fragment_shading_rate`; `RSSetShadingRate`/image-based rate map to `vkCmdSetFragmentShadingRateKHR`. | 3548| VRS | Public `D3D12_SHADING_RATE` / `D3D12_AXIS_SHADING_RATE` | `VK_KHR_fragment_shading_rate`; `RSSetShadingRate`/image-based rate map to `vkCmdSetFragmentShadingRateKHR`. |
3523| 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. | 3549| 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. |
3524| 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. | 3550| 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. |