Use the maintainer label event for the checked PR snapshot and verify it against live metadata. Keep the regular smoke requirement for later revisions and preserve the description and asset checks.
The gpu line took the first Win32_VideoController that is not the basic
display adapter. On a machine with an iGPU and a discrete GPU that is often
the iGPU: on an RTX 3080 + AMD RDNA2 iGPU machine the block said
"AMD Radeon(TM) Graphics" while XCL ran on the RTX 3080.
The line now comes from d3d12.adapter in the run's report.json (next to the
log; XCL removes the previous run's report at start), without the VRAM
suffix. The Win32 query stays as the fallback when the report or the field
is missing.
(cherry picked from commit c756051df6)
From a review of the check: it looked for crashes and device removals anywhere in the
description, so a PR fixing a crash on main failed on main's run, and nothing made the two
runs come from different commits. The checker is now scripts/pr_check.py: the PR's xcl-smoke
block must be its head commit with no uncommitted changes, the other a commit on main (the
compare API), both of the same title for the same time; crashes and device removals count in
the PR's run only, which must keep 80 % of main's frames and stay under 125 % of its peak
commit.
The workflow runs as pull_request_target with main's checker: a PR can no longer change what
checks it, and nothing of the PR is checked out or run (only its description and file list are
read through the API).
Game data: .gitignore keeps game packages, archives, executables, video, audio banks,
textures and dumps out, and the check refuses a PR adding one, a MicrosoftGame.config other
than the test title's, or any binary outside tests/data/ or over 1 MB.
CONTRIBUTING.md gets the merge requirements: both required checks green (CI, PR checks), the
whole suite run on a GPU with its counts, and for a runtime change (crates/xcl/src outside
tests) two xcl-smoke blocks from scripts/smoke.ps1 - built from main and from the PR's head
commit with no uncommitted changes - with no device removal or crash. The maintainer runs the
suite and a retail title again on every merged batch.
- scripts/smoke.ps1: runs a title for a fixed time (network off, XCL_ACTIVITY) and prints the
xcl-smoke block: commit, GPU, exit, frames shown, presents, device removals, crashes, peak
commit.
- .github/pull_request_template.md: Tested / Regression run / Not tested / AI use.
- .github/workflows/pr-check.yml: refuses a description without those sections, and a runtime
change without a smoke block made on the PR's head commit.
- AGENTS.md / CLAUDE.md (from #212): the same rules for agents; AI use is disclosed in the PR's
AI use section, a commit trailer is not required.
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.
- 3D thick modes (4KB_S, 64KB_S / S_T, 4KB_S_X, 64KB_S_X, 64KB_D_X): addrlib's S3 / S3_X /
S3_T / D3_X patterns (PATTERNS_3D, scripts/gen_tiling.py), blocks that tile x, y and z,
the mip chain per layer of block_d depth slices with the thick mip tail rule.
- Thin 3D modes and linear textures (rows padded to 256 bytes) as 2D per depth slice.
- texture::subresources / upload: one subresource per level with its depth slices.
- Retail TTPF: the header's dimension field; the 3 volume LUTs are thick (the model now fits
909 of 912 textures, neighbouring texels 5-17x closer than read as 2D slices); GPU test
uploads thick, BC1 3D, linear 3D and linear 2D textures bit for bit.
- Persistent local storage was passed to the PC runtime, which fails it for an unpackaged
process: now XCL's own.
- XSystemGetDeviceType is computed by the thunk library from HKLM\...\OEM ConsoleMode
(mapping read from the game's XCurl.dll): kernelx answers that registry key (0x64 Series X,
0x60 Series S); advapi32 imports go through kernelx.
- gdk_table.rs: the GDK runtime's 396 functions with class, interface and slot as the public
PC GDK's thunk library calls them. XCL's objects are built from it by function name: the
interface versions of a class share a vtable, unknown versions get the main one, and
unimplemented functions are reported by name. Agrees with the slots the game's own thunks
use (test) and fixes two guessed XPackage slots.
- New: XUser devices and the remaining XUser calls, XPackage (locale, chunks, install,
MountWithUi, EnumeratePackages), XSystem, analytics, runtime features, XDisplay, XGameEvent
(offline); XAppBroadcast / XAppCapture refused.
- Pipelines: releasing a stand-in releases its background-built pipeline and forgets the
address; PSO tests work with a cold DXIL cache.
- probe: the console builder records a whole BLAS build into a fake console list
(logging vtable, UMA upload memory); record buffer, changed fields and calls dumped
- HANDOFF: list object fields (+0x18/+0x28/+0x30, +0x344 + 4i root parameter headers),
record kinds (pipeline 28 B, root parameters, Dispatch 0x4002C400, 0x4003CC00),
console-only methods (#148 AllocateUploadMemory, #146 barrier); plan for an XCL
console command list
- scripts/re: shader extraction, root-argument layout check, record writer scan