9 Commits

Author SHA1 Message Date
ivall 2514938f06 Merge PR #143 2026-11-23 22:06:34 +01:00
Thomas d66f4c7dae Allow redirected Cargo progress in Windows PowerShell 5.1 2026-11-23 14:29:24 -05:00
Tiago Leal 20a35f0fd7 CI: the test title's run left out (no Gaming Services, no GPU on the runner); test.ps1 passes its arguments to the tests 2026-11-23 15:01:10 +00:00
Foniass ff9430efbd GPU tests that cannot run on the adapter say so: SKIPPED <test>: <reason> on stderr, the count at the end of scripts/test.ps1, XCL_REQUIRE_GPU=wave64|mesh to fail instead (#42)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 23:30:55 +01:00
ivall 18cb400400 XG metadata planes; the console shader compiler as a recompiler test generator
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.
2026-11-21 22:20:01 +01:00
ivall 3c546ef78e 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.
2026-11-21 21:13:47 +01:00
ivall 3365f6ed27 Opus: the AWC block size when the voice format has no nBlockAlign; checked on the game's audio
- 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.
2026-11-21 17:36:41 +01:00
ivall 1c8fae9ec0 Tests: no process-wide switch in a parallel test, registry cleanup and advapi32 routing checked
- 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.
2026-11-21 17:06:15 +01:00
ivall 8fa7fa0fa3 Initial XCL source and TTPF viewer 2026-11-20 21:03:53 +01:00