D3D12.X: a placed view's padding does not make a second texture #2764
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!2764
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2764"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@GreemSC on GitHub · 2026-11-26 10:59 UTC · original
GreemSC:amd-dev-placed-key-padding→amd-dev· +20 −0 · 1 files · 1 commits · draftformat_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, #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 (#1732 with #867/#871/#877, #684, #1860, a readback-list guard from #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
amd-devwithout the Wine stack stops at ~2.5 s, so a smoke pair from this machine covers nothing. Keeping this a draft until there is a Windows pair (amd-devb5c0275and this head).Not tested
AI use
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.