XG: render targets get a CMASK plane, depth buffers HTILE + depth + stencil,
depth-stencil formats two planes, as the console library lays them out
(checked on 1 872 render target / depth descs).
tests/console_shaders.rs (XCL_SAMPLE_DXC = the console's dxcompiler_xs.dll):
HLSL kernels compiled by the console compiler, run through XCL's translation
on the PC GPU next to the PC compile of the same source - the same memory.
It found two bugs, fixed:
- root arguments: the console passes them in user SGPRs s4..s15 while they
fit, only the rest in the table at s[0:1] (console list dispatches);
- the high 32x32 multiply as a 64-bit product made DXC emit
umul.with.overflow (invalid DXIL); now from 16-bit parts.
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.
- extract_packets: a format without a usable nBlockAlign gets the AWC 2048 B blocks, so a
buffer of several AWC blocks still splits into its packets.
- decodes_a_game_sound (XCL_SAMPLE_AWC, XCL_OPUS_WAV writes a WAV): a 1.6 s effect and a
56.6 s sound of the game decode completely.
- HANDOFF: Opus decoding section; README / test.ps1: XCL_SAMPLE_AWC.
- The structured / block-chain HLSL comparison set XCL_RECOMP_NO_STRUCTURED for the whole
process while other recompiler tests ran in parallel: now Options::structured.
- gpu_pso_e2e: releasing the mesh stand-in removes exactly one TWO_PASS entry (the tests there
run one at a time).
- resolver: advapi32!RegOpenKeyW resolves to kernelx, RegSetValueExW to the real advapi32.
- scripts/test.ps1 lists the sample-data variables not set (their tests pass without running);
README says so.