Repository navigation
Conversation
`prepare_placed_srv_desc` and `prepare_placed_uav_desc` key `placed_srvs` / `placed_uavs` by (address, 0x38-byte console resource description) and clear only 0x34.. of it. Bytes 0x04..0x08 are the padding between `Dimension` and `Alignment`; the retail title leaves stack bytes there, so the same view at the same address made a second PC texture (and its views) whenever that padding differed. Both now clear it too. Measured on the retail title (RX 7900 XT, RADV, Wine, amd-dev b5c0275 with the Wine stack), one 200 s run each: `placed_srvs` held 60,925 entries at 190 s without the change and 41,965 with it (-31 %); the same share as main's `resource_at` (xcl-dev#2743, fixed there by xcl-dev#2762). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Regression run of Setup: RTX 3060 12 GB (NVIDIA 581.80), i9-14900KF, Windows 11 26200, release builds of this PR's base base: this PR: 99 % of the base's frames, 83 % of its peak commit. One run each; the last-6-s rates and the commit vary between runs on this title, so they say nothing about this change by themselves. Not tested: the suite on this head; whether the title creates placed views with padding in its first 60 s; AMD. AI use: Claude Code (Claude Opus 5.5) ran these runs on this machine and wrote this report. |
|
Independent amd-win test report for head Hardware / env: AMD Radeon RX 7800 XT, driver 32.0.31035.1003; Ryzen 7 5700X3D; Windows 11 Pro 10.0.26200; rustc 1.100.0; debug build. Targeted (head)
Full Failures on head, each rerun alone with
All six alone-failures also fail alone on base, so none come from this PR. The last two fail only inside the full run, on head and on base. That is cross-test interference on this adapter (or fallout from the crash), not a result of the PR. Review: one file, +20 lines. The padding at Not tested: NVIDIA, wave32-only GPUs, any retail title, a full-suite run that completes (the lib run aborts on this adapter, on base too). AI use: Claude Code (Claude Sonnet 5.5), coordinated by Claude Code (Claude Opus 5.5). |
|
Linux (Wine) dual-lane run at head
Suite: The PR's own change: The branch-level finding (not caused by this PR): full-suite runs die before completion on BOTH lanes, at BOTH this PR head and bare
Solo repro on each machine ( What we see leading up to it: the stand-in pipeline for shader Cross-branch contrast: the identically-named test exists and passes on Not tested: whether the same death occurs on native Windows AI use: Hermes agent (local Qwen-class) ran the tests and drafted this; I checked it before posting. |
|
@SlopTart thanks for the two-lane run. Same here: on AI use: Claude Code (Claude Opus 5.5) wrote this reply. |
format_alias::prepare_placed_srv_descandprepare_placed_uav_desckeyplaced_srvs/placed_uavsby (address, the 0x38-byte console resource description) and clear only0x34..of it. Bytes0x04..0x08are the padding betweenDimensionandAlignment; the retail title leaves stack bytes there, so the same view at the same address made a second PC texture, with its own views, whenever that padding differed. Both now clear it too.This is the
amd-devside of #2743;main'sresource_athas the same key and is fixed by #2762 (joeypercia). Spotting the padding came from the VIctory project's notes (GPL-3.0, read only; no code taken).What is in it
crates/xcl/src/hle/d3d12x/format_alias.rs: clear0x04..0x08in both prepares; testplaced_descs_ignore_the_padding_after_dimension(fails without the change: the key keeps the padding bytes).Tested
placed_descs_ignore_the_padding_after_dimensionandplaced_uav_and_srv_descs_are_sanitized: pass; the new test fails with the two lines taken out.xcllib suite under Wine,--test-threads=4, skippingpso_async::used_testsandlist_x::tests::a_dispatch_with_a_pipeline_still_building(they abort the binary onamd-dev, amd-dev 6a0bb5b: 13 tests fail on an RX 9070 XT, and the lib test binary aborts after 1,024 of 1,564 tests #2632): the binary still stops at the same test on this head and onamd-devb5c0275, after 1,046 ok / 84 failed here and 1,047 ok / 81 failed there. The failures are the same tests on both, plus 3 GPU tests on this run (gpu_qsad_and_mqsad,gpu_split_wave64_cross_half_operations,gpu_split_wave64_lane_local_masks) that pass run alone; the new test passes.amd-devb5c0275+ the Wine stack this machine needs (D3D12.X: run sparse::readback_after_execute asynchronously per queue #1732 with D3D12.X: preserve native vtables and wrap fences for vkd3d-proton under Wine (#175) #867/Memory: avoid amdgpu userptr stalls under Wine (#175) #871/Memory: lazily map sparse VRAM tiles for Wine graphics heaps (#175) #877, XG: fix CopyFromSubresource 7-argument ABI and guard destination span #684, Recompiler: direct DXIL gives every loop head and block one back edge #1860, a readback-list guard from The retail title 1.0.2.1 (RTX 5070): reaches the end of the first-run setup, then deterministic 0xC0000005 write at 0x0 in game_scarlett_master.exe+0x23cf683 #846) + a local counter of the table, warm caches, 200 s, one run each:placed_srvsentries at 150 sFewer objects; no memory difference measurable in a 200 s run (each entry is a few KB of host memory here).
Regression run
scripts/smoke.ps1, 60 s,XCL_NETWORK=0, A every 4 s from 20 s. No device removal or crash on either side; 99 % of the base's frames. The base is08db802(onmainand inamd-dev's history), notamd-dev's head. (Under Wine,amd-devwithout the Wine stack stops at ~2.5 s, so a pair from my machine would cover nothing.)Not tested
amd-dev's head, more than one run a side, the open world.AI use