VIctory GPU loses earlier texture writes when two command lists are recorded in reverse order #1889
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?
Imported from Marvisak/VIctory. Originally posted by yuniskh on 2026-11-25T00:12:26Z.
Hey VIctory testers, can someone try this on a second GPU? On my RTX 5090, I can make three pixels disappear just by changing which command list I record first. The GPU still executes the same two copies in the same order.
d2a4baebuild described in the ZIP. Copy two overlapping 2×2 regions, A and B, into a 4×4 RGBA8 texture.The native D3D12 control got 16/16 both ways on the same machine. Moving the initial texture upload decision to queue submission brought VIctory back to 16/16 as well. The patched GPU suite passed 55/55, plus 30 focused reruns. I tested on Windows 11 with NVIDIA driver 621.24.
If you try it, could you share your GPU, driver, and the pixel count before and after the patch? The test uses generated textures, so anyone can run it without GTA VI. I don’t have the game files to check whether this affects gameplay.
Download the test, candidate fix, native control, and logs · Original RTX 5090 report
I used Astra 6.2 to help collect and check the logs.
Imported from Marvisak/VIctory. Originally posted by arthurprudenteres on 2026-11-25T00:28:11Z.
I'd like to take the current-main follow-up for #1891. I will check on an RTX 5060 Ti and WARP whether GPU contents still depend on recording order, and add a focused regression for the case that reproduces on main. I will stay within the GPU texture upload/copy and submission code. I will compare against the RTX 5090 report and avoid opening a second PR for the same candidate if you already plan to submit it.
Imported from Marvisak/VIctory. Originally posted by arthurprudenteres on 2026-11-25T00:36:41Z.
I am releasing my current-main claim while the lab changes its development baseline. The GPU test crate compiled at
4118f33, but I did not run the recording-order fixture on the RTX 5060 Ti or WARP. I have no new pixel measurements or PR for this issue. The RTX 5090 report remains the available before-and-after evidence.Imported from Marvisak/VIctory. Originally posted by andrewpozdnakov7-jpg on 2026-11-25T01:04:22Z.
I reproduced the recording-order dependency on WARP at upstream
42363ab6cdwith a related synthetic case. One list snapshots a 4×4 RGBA8 texture and the other overwrites it. The two matching record/submit orders produced 16/16 correct pixels. Both opposite orders produced 0/16. The same test failed onfbec4e2and got 16/16 for all four combinations on #230 at067ece6b11.Regression commit · Full verification and current rebase conflicts
Imported from Marvisak/VIctory. Originally posted by Marcos-Barranquero on 2026-11-25T01:07:16Z.
Second GPU, as asked: RTX 4070 Ti SUPER (Ada), driver 32.0.16.1692 (616.92), Windows 11.
With the regression from @andrewpozdnakov7-jpg's 52cc201 (
list::tests::texture_copy_reads_follow_submission_order,cargo test -p victory-gpu --features diagnostics --lib):main42363abplus that test: fails 5 out of 5 runs, with the same table as on WARP. The two matching record/submit orders are 16/16; both opposite orders are 0/16.067ece6plus the test: passes 5 out of 5. The wholevictory-gpulib suite on that tree: 58 passed, 0 failed, 1 ignored.So the recording-order dependency is not specific to WARP or Blackwell, and #230 fixes it on Ada too. #230 still needs a rebase onto
main(the conflicts are listed in its thread).For anyone comparing: on
mainherevictory-gpualso failsdescriptor::host::tests::dynamic_slots_are_held_until_released(NVIDIA's 1,000,000 view cap, #1835) andmemory::tests::lists_share_a_table_and_copies_keep_their_views. Both are existing tests onmain, independent of the one added here.No game files: synthetic textures only.
AI-assisted (Claude Code).
Imported from Marvisak/VIctory. Originally posted by Calvix2k on 2026-11-25T02:21:40Z.
Third vendor, as asked — the recording-order dependency is not NVIDIA-specific. RX 7800 XT (RDNA3), driver 32.0.32029.2010, Windows 10 19045, upstream
main940d32fplus @andrewpozdnakov7-jpg'slist::tests::texture_copy_reads_follow_submission_orderapplied verbatim (cargo test -p victory-gpu --features diagnostics --lib texture_copy_reads_follow_submission_order):0xFF3C3C3C0xFF5A5A5AExpected on all four: 16/16. That is the same shape Marcos-Barranquero saw on Ada: the record/submit orders that match are 16/16, both opposite orders are 0/16. So it reproduces on WARP, Blackwell, Ada and now RDNA3 — it is in the GPU layer's upload decision, not in a driver.
I am testing #230 (the prelude copy recording fix) on this GPU next and will report the pixel counts here. Synthetic textures only, no game data.
Imported from Marvisak/VIctory. Originally posted by Calvix2k on 2026-11-25T02:22:48Z.
Follow-up with the fix tested: wbkepler's #230 head
067ece6passes this exact test on the same RX 7800 XT (1 passed, all four orders 16/16, on affe310ebase), whilemain 940d32ffails 2 of 4 arms. So the regression is fixed by the prelude-recording change on RDNA3 too, not just on the NVIDIA cards and WARP. Details in #230.Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T12:51:51Z.
Automated triage for the maintainers.
Confirmed in
main(940d32f). The texture's initial upload is decided when a list is recorded, not when it is submitted.uploadincrates/victory-gpu/src/texture.rsrecords the staging copy in the first list that uses the texture, unlesshost_writtenis already set. The copy paths incrates/victory-gpu/src/list.rssethost_writtenwhile recording. So when B is recorded before A but submitted after it, the initial upload can sit in the wrong list and overwrite the earlier copy. The regressionlist::tests::texture_copy_reads_follow_submission_orderreproduces this on WARP, an RTX 4070 Ti SUPER and an RX 7800 XT (Windows 10): 0/16 pixels for both mismatched orders.Open pull requests: #1934 (resolves initial uploads and
host_writtenat submission; it names this issue) and #230 (prelude copy recording; passes the regression on Ada and RDNA3, needs a rebase). The ZIP attached to the issue was not opened by this triage. Putting the change and its test in a PR, as these do, is the way to get it reviewed.Generated by Claude Code
upstream-sync referenced this issue2026-11-25 15:04:27 +00:00