diff options
| author | ubiquitarianism <283527159+ubiquitarianism@users.noreply.github.com> | 2026-11-23 23:31:03 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-11-23 23:31:03 -0500 |
| commit | 1515e4379decd0906e44cb0a97a2ecee4088e7ba (patch) | |
| tree | 4f7ae32af088f3d6831618380b3e03df3817c56c /docs | |
| parent | ece4ba5b31ebc6f345c8e29eae1261f2f780057a (diff) | |
| parent | c4954581ae27e9db5baabaea091302ed54eb96ea (diff) | |
Merge pull request #349 from Mumogg/slot26-struct-return
d3d12_xs: device slot 26 takes the console's struct-return form, again (RT-SLOT26)
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/d3d12_vulkan.md | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/d3d12_vulkan.md b/docs/d3d12_vulkan.md index 5f711aefa..bbc0f12fd 100644 --- a/docs/d3d12_vulkan.md +++ b/docs/d3d12_vulkan.md | |||
| @@ -2259,6 +2259,12 @@ The trace will enumerate them. | |||
| 2259 | unknown types and node masks above 1 get an all-zero answer, logged. The test compares `DEFAULT`, `UPLOAD` and | 2259 | unknown types and node masks above 1 get an all-zero answer, logged. The test compares `DEFAULT`, `UPLOAD` and |
| 2260 | `READBACK` byte for byte with the host runtime's answer when the host adapter has the layer's architecture (RTX | 2260 | `READBACK` byte for byte with the host runtime's answer when the host adapter has the layer's architecture (RTX |
| 2261 | 4090: identical); `d3d12_heap_properties` compares the `L1` heaps with the layer's own adapter. | 2261 | 4090: identical); `d3d12_heap_properties` compares the `L1` heaps with the layer's own adapter. |
| 2262 | The retail executable calls it (device slot 26) with the buffer for the returned struct in RCX and the device in | ||
| 2263 | RDX, node mask in R8 and heap type in R9: three calls right after device creation, node mask 1 and types 1, 2 | ||
| 2264 | and 3 (measured under `gta6rt --run` with a register probe in the slot's thunk). A PC C++ method has the device | ||
| 2265 | in RCX and the buffer in RDX, so the Xbox-ABI proxy takes the console form when RDX holds the proxy | ||
| 2266 | (`d3d12_xs_device.cpp`; `xs_proxy_mock_test`, `device_proxy_test`). Slots 25 and 43 return structs too; the | ||
| 2267 | executable has not been seen calling them yet, so the proxy still forwards them in the PC form. | ||
| 2262 | - Residency and power (D3D-33) are no-ops that still check their arguments (`d3d12_vulkan_device.cpp`, tested in | 2268 | - Residency and power (D3D-33) are no-ops that still check their arguments (`d3d12_vulkan_device.cpp`, tested in |
| 2263 | `d3d12_vulkan_device_test`). Vulkan has no residency API: memory from `vkAllocateMemory` stays usable until | 2269 | `d3d12_vulkan_device_test`). Vulkan has no residency API: memory from `vkAllocateMemory` stays usable until |
| 2264 | `vkFreeMemory`, and paging under pressure is the kernel driver's job, so every pageable object is always resident. | 2270 | `vkFreeMemory`, and paging under pressure is the kernel driver's job, so every pageable object is always resident. |