RTX 5090 test: GetCopyableFootprints returns different row sizes and base offsets than native D3D12 #386
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory#386
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
@yuniskh on GitHub · 2026-11-24 02:51 UTC · original
While testing VIctory’s graphics on my RTX 5090, I found two texture layouts where the calculation in
crates/victory-gpu/src/resource.rsdisagrees with Windows Direct3D 12. I tested main atd2a4baeon Windows 11 build 26300.9974, NVIDIA driver 621.24.Across 576 queries, the original calculation differed from native D3D12 in 402 cases. The revised calculation matched all 576. These were layout queries. I didn’t submit an unaligned GPU copy.
To reproduce, download the complete folder, extract the graphics-test ZIP inside, and run
pwsh -NoProfile -File .\footprints\Verify-Footprints.ps1in 64-bit PowerShell 7 on Windows. The recorded output is infootprints/results.txt. The ZIP includes the proposed patch and Rust regression tests.The complete folder also contains the separate RTX 5090 and AMD Radeon pixel tests from PR #89. All 17 standalone programs passed locally. The patches applied to the tested main revision and PR #89 at
081afbd. I haven’t compiled the patched VIctory crate or tested GTA VI gameplay.Download the complete outputs folder · RTX 5090 and AMD Radeon results on PR #89
AI-assisted with Codex.
@DaviTostes on GitHub · 2026-11-24 03:00 UTC · original
Independently applied the proposed
VIctory-footprints.patchtomaind2a4baeand ran it here (Arch, Wine 11.22 + vkd3d-proton 3.1, AMD RX 9060 XT/RADV):crates/victory-gpu/src/resource.rs, +58/−20).victory-gpuunder Wine: 41 passed, 3 failed, 1 ignored. The three are the known environment failures (argument_clamp_builds,a_rejected_blob_gives_an_empty_library, #128), andresource::tests::upload_footprints_follow_the_pc_rulespasses with the patched expectations.GetCopyableFootprintsfor the two cases:offset = UINT64_MAX, pitch/width/height =UINT32_MAX) for those formats, so this half cannot be checked against a host implementation here. The patched calculation gives width 6 and a 12-byte row size, which is the native value you recorded.So the base-offset change is confirmed on a second host, and the 68/69 change matches the table but needs your Windows/pwsh result (or a Windows D3D12 host) for the host-side confirmation. No other test changes were needed.
No game data used.
@broccolize on GitHub · 2026-11-24 03:10 UTC · original
I’d like to take the native Windows verification for this issue and PR #409. I’ll check the packed DXGI formats and RGBA8 base offsets with synthetic textures, then run the Rust regression tests for the proposed fix.
@yuniskh on GitHub · 2026-11-24 03:12 UTC · original
Thanks for checking the base offset under Wine. For the native Windows comparison on the RTX 5090, the original bundle’s
footprints/results.txtrecords a footprint width of 6 texels and a row size of 12 bytes for the 5×3 mip in both DXGI 68 and 69.I ran a larger set of tests on the RTX 5090 (driver 621.24) and the integrated Radeon, using generated textures. Two results are relevant to the copy code:
All 48 packed-texture copy cases passed at 1440p and 4K. I also ran VIctory’s indirect-argument shader from
d2a4baethrough native D3D12. It passed 20 cases on each GPU. The separate blending test matched on the RTX 5090, but I still saw small differences on the Radeon under native D3D11.The ZIP includes the runners, raw logs, two follow-up candidate patches, and Rust regression tests. All four patches applied together to
d2a4bae. The patched Rust crate still needs a Windows build and test run. I haven’t tested GTA VI gameplay. Start withRESULTS.mdfor the commands and patch order.AI-assisted with Codex.
VIctory-private-4K-tests.zip
@Marvisak on GitHub · 2026-11-25 01:47 UTC · original
Automated triage for the maintainers.
Both defects are present in
main, incrates/victory-gpu/src/resource.rs:copyable_footprintsplaces the first subresource atbase.next_multiple_of(512)and reports the total asend - base, so a base of 1 gives offsets 512 and 2048 and a total of 2579 for the 10×6 RGBA8 two-mip case. The native values in the report (1 and 1537, total 2068) keep the base as given and align the later subresources relative to it.element()lists them as 2 bytes per texel with a 1-texel block (48..=59 | 68 | 69 | ... => (2, 1)), sosubresourcegives a 5-texel, 10-byte row for a 5×3 mip. These formats pack two texels per 32-bit word, and native D3D12 rounds the width up to 6 texels and 12 bytes.Open PR #409 addresses both (it currently carries
triage: needs rebase).Generated by Claude Code
@andrewpozdnakov7-jpg on GitHub · 2026-11-26 16:46 UTC · original
I reproduced the packed-format part of this report on
mainat63bcca4using WARP 1.0.22 and Agility SDK 1.620.2. For the 5×3 mip of the 10×6 texture, VIctory gave a footprint width of 5 and 10 bytes per row. Native D3D12 gives a width of 6 and 12 bytes per row.4f1632d is a follow-up on top of #3287. It uses a four-byte horizontal pair for DXGI formats 68 and 69 in the footprint query. For both formats and both 10×6 and 12×6 base textures, mip 1 now matches native: footprint 6×3, 3 rows, 12 bytes per row, 256-byte row pitch, 524 total bytes. The 12×6 case checks a mip whose width is already even.
20 resource tests and the full GPU suite passed (248 passed, 1 ignored). Clippy passed with default features and all features, as did the asset policy check. These were layout queries on synthetic textures.
The commit credits @ToxicmaggotRP for the original #409 work. If you take this into the existing PR, please retain the Git authorship and co-author trailer. If you squash it into another commit, please also add
Co-authored-by: andrewpozdnakov7-jpg <[email protected]>.