Console texture layout library (xg_xs.dll); the console's pipe configuration

XGCreateTextureComputer with the console's interface and structures
(XG_RESOURCE_LAYOUT 0x1B40) on XCL's GFX10 model, checked against the
console's own library (tests/xg_oracle.rs, XCL_SAMPLE_XG = a local copy,
not in the repo): 29 700 descs give the same layout bytes or are refused
by both, texel offsets of every mode and element size match, 162
subresources tile to the same bytes.

Fixed in the tiling model on the way (the retail TTPF check still fits
909 of 912): levels are padded from mip 0 halved rounding up, Z modes of
1 / 2-byte elements have a 64 x 128 tail, and the XOR modes take pipe bits
from coordinates above the block and from the array slice.

The console's pipe configuration, unknown until now: 32 pipes / 8 packers
(Series X), 8 / 4 for the library's hardware version 4 (taken to be
Series S); it follows the reported device type.
This commit is contained in:
ivall
2026-11-21 21:13:47 +01:00
parent a379e6858c
commit 3c546ef78e
7 changed files with 965 additions and 35 deletions
+1 -1
View File
@@ -2,7 +2,7 @@
$ErrorActionPreference = 'Stop'
Set-Location (Join-Path $PSScriptRoot '..')
# tests on game data pass without running anything when their variable is not set
$missing = 'XCL_SAMPLE_RPF', 'XCL_SAMPLE_DLLS', 'XCL_SAMPLE_TTPF', 'XCL_SAMPLE_BK2', 'XCL_SAMPLE_BVH4', 'XCL_SAMPLE_AWC' | Where-Object { -not (Test-Path "env:$_") }
$missing = 'XCL_SAMPLE_RPF', 'XCL_SAMPLE_DLLS', 'XCL_SAMPLE_TTPF', 'XCL_SAMPLE_BK2', 'XCL_SAMPLE_BVH4', 'XCL_SAMPLE_AWC', 'XCL_SAMPLE_XG' | Where-Object { -not (Test-Path "env:$_") }
if ($missing) { Write-Host "not set, their tests are skipped: $($missing -join ', ')" }
cargo build --workspace
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }