diff options
Diffstat (limited to 'docs/d3d12_vulkan.md')
| -rw-r--r-- | docs/d3d12_vulkan.md | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/docs/d3d12_vulkan.md b/docs/d3d12_vulkan.md index b8c519a21..0e8e947aa 100644 --- a/docs/d3d12_vulkan.md +++ b/docs/d3d12_vulkan.md | |||
| @@ -2247,12 +2247,17 @@ The trace will enumerate them. | |||
| 2247 | Intel Raptor Lake-S (101.7092) and RTX 5060 Laptop (621.24) hosts wrap, two 2^63 buffers to 0, and WARP on that | 2247 | Intel Raptor Lake-S (101.7092) and RTX 5060 Laptop (621.24) hosts wrap, two 2^63 buffers to 0, and WARP on that |
| 2248 | PC still saturates. A wrapped total could make a caller allocate less than one of its resources, so the layer | 2248 | PC still saturates. A wrapped total could make a caller allocate less than one of its resources, so the layer |
| 2249 | keeps saturating, and the test accepts a host that wraps. | 2249 | keeps saturating, and the test accepts a host that wraps. |
| 2250 | Behind the Xbox-ABI proxy (device slot 25) a 2D render target of a listed colour format with one sample is padded to | 2250 | Behind the Xbox-ABI proxy (device slots 25 and 56) a 2D render target of a listed colour format with one sample is |
| 2251 | whole console tiles: the size is the sum over its mips, each mip rounded up to the RDNA2 SW_64KB_D tile shape | 2251 | padded to whole console tiles: the size is the sum over its mips (MipLevels 0 is the full chain, an odd extent |
| 2252 | (`runtime/src/gfx10_tiling.h`: 128 x 128 pixels for 4-byte elements, 128 x 64 for 8-byte ones), with the mips that | 2252 | rounds up), each mip rounded up to the RDNA2 SW_64KB_D tile shape (`runtime/src/gfx10_tiling.h`: 256 x 128 pixels |
| 2253 | fit in one tile sharing one tail tile, times the array size. A 1920 x 1080 RGBA8 target is 135 tiles, 8,847,360 bytes, | 2253 | 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 |
| 2254 | where the PC answer is 8,323,072. The proxy adds the difference per description to the PC total when the console | 2254 | in half a tile's width and a whole tile's height, and the mips after it, sharing one tail tile, times the array |
| 2255 | size is larger and never lowers a size (`d3d12_xs_alloc_size.h`; `xs_proxy_mock_test`). **Assumption**: the | 2255 | 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 |
| 2256 | the descriptions out as the PC device does (each at its own alignment, the total rounded up to the largest | ||
| 2257 | alignment, sums saturating) with each render target at the larger of its console size and its PC size; a 4 MiB | ||
| 2258 | aligned multisampled neighbour therefore keeps its place (a 1 x 1 four-sample target and a 1080p target need 16 MiB, | ||
| 2259 | not 12.5). Slot 56 reports the same offsets. The PC layout stands when no description grows | ||
| 2260 | (`d3d12_xs_alloc_size.h`; `xs_proxy_mock_test`). **Assumption**: the | ||
| 2256 | retail title's own sizes are not measured (#6982, stop 17), so that its allocation is these shapes and no DCC or | 2261 | retail title's own sizes are not measured (#6982, stop 17), so that its allocation is these shapes and no DCC or |
| 2257 | CMask memory is open until they are. | 2262 | CMask memory is open until they are. |
| 2258 | The descriptions the title passes to slot 25 carry console values (layout word `0x101`/`0x1`, flag bits above the PC | 2263 | The descriptions the title passes to slot 25 carry console values (layout word `0x101`/`0x1`, flag bits above the PC |
| @@ -2274,8 +2279,9 @@ The trace will enumerate them. | |||
| 2274 | RDX, node mask in R8 and heap type in R9: three calls right after device creation, node mask 1 and types 1, 2 | 2279 | RDX, node mask in R8 and heap type in R9: three calls right after device creation, node mask 1 and types 1, 2 |
| 2275 | and 3 (measured under `gta6rt --run` with a register probe in the slot's thunk). A PC C++ method has the device | 2280 | and 3 (measured under `gta6rt --run` with a register probe in the slot's thunk). A PC C++ method has the device |
| 2276 | in RCX and the buffer in RDX, so the Xbox-ABI proxy takes the console form when RDX holds the proxy | 2281 | in RCX and the buffer in RDX, so the Xbox-ABI proxy takes the console form when RDX holds the proxy |
| 2277 | (`d3d12_xs_device.cpp`; `xs_proxy_mock_test`, `device_proxy_test`). Slots 25 and 43 return structs too; the | 2282 | (`d3d12_xs_device.cpp`; `xs_proxy_mock_test`, `device_proxy_test`). Slot 43 returns a struct too and the |
| 2278 | executable has not been seen calling them yet, so the proxy still forwards them in the PC form. | 2283 | 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 |
| 2284 | same rule (reported later in the boot, #6982; not measured), as #6973 first did for slot 25. | ||
| 2279 | - Residency and power (D3D-33) are no-ops that still check their arguments (`d3d12_vulkan_device.cpp`, tested in | 2285 | - Residency and power (D3D-33) are no-ops that still check their arguments (`d3d12_vulkan_device.cpp`, tested in |
| 2280 | `d3d12_vulkan_device_test`). Vulkan has no residency API: memory from `vkAllocateMemory` stays usable until | 2286 | `d3d12_vulkan_device_test`). Vulkan has no residency API: memory from `vkAllocateMemory` stays usable until |
| 2281 | `vkFreeMemory`, and paging under pressure is the kernel driver's job, so every pageable object is always resident. | 2287 | `vkFreeMemory`, and paging under pressure is the kernel driver's job, so every pageable object is always resident. |