Linux (vkd3d-proton, RX 7900 XT): RELAY=2 keeps the faces with VICTORY_FETCH_CHECK=1, ~66 ms a frame against ~82 with the #13 workaround #138
Labels
No labels
accessibility
already-solved
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
merged
needs-decision
needs-game-run
needs-rebase
not-merged
nvidia
obsolete
question
security
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/avatarmanz--VIctory-7900XTX#138
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?
@bordersky on GitHub · 2026-11-26 06:56 UTC · original
RX 7900 XT 20 GB, Arch Linux, Wine (GE-Proton10-34) + vkd3d-proton master, Mesa RADV, Ryzen 9 5900X. avatarmanz main at
9c23e8dplus the #59 Wine fallback, release build,play.ps1's settings,VICTORY_LAND_ECHO=0,VICTORY_CARD_BUFFERS_MIN_MB=1 VICTORY_CARD_BUFFERS_MB=4096, no ray tracing.Under vkd3d-proton,
VICTORY_RELAY=2loses the main characters' faces (#13) unlessVICTORY_FETCH_CHECK=1is set. With it, stage 2 andVICTORY_CARD_STEPS=2hold the picture, and the frame is ~66 ms against ~82 ms with the stage 1 workaround.Same build, the first indoor scene of a new game (no checkpoint loaded), shader cache warm:
RELAY=1 CARD_STEPS=0(the #13 workaround)RELAY=2 CARD_STEPS=2RELAY=2 CARD_STEPS=2 FETCH_CHECK=1With the check on, the frame-rate line counts what it catches: of ~1,140 fetched pieces a frame, 1.3 to 2.3 were not what their flight ended with, and the same number were found whole when fetched again. Caught pieces like those, a buffer cleared and then filled again, fit the skinned vertices of heads. The check costs nothing measurable here.
The fork's own device test shows the same thing under Wine. I built the
victory-gputests forx86_64-pc-windows-gnuand ran the ignored ones withwine <tests>.exe host::upcheck::tests::<name> --exact --ignored --test-threads=1:a_result_caught_in_between_is_put_rightwithVICTORY_RELAY=2 VICTORY_RELAY_COPY=1 VICTORY_CARD_BUFFERS_MIN_MB=1: 11, 11 and 12 of 12 results wrong in title memory (atb0cfe2b; 12 of 12 at9c23e8d); withVICTORY_FETCH_CHECK=1it passes 3 of 3. #115 found 6 of 12 on an RTX 5060 under Windows, so the race is not Wine's, but here nearly every round hits it.So
play.ps1'sRELAY=2 RELAY_COPY=1without the check leaves the race open; on vkd3d-proton it shows in play. CouldVICTORY_FETCH_CHECK=1go intoplay.ps1, or be on by default whenVICTORY_RELAY_COPY=1?The other ignored tests on this setup, with the switches #115 lists (
VICTORY_CARD_BUFFERS_MIN_MB=1,VICTORY_PICKED_WRITES=2,VICTORY_CARD_ALL=1where it applies):At
b0cfe2b, each run alone, 3 times:a_result_caught_in_between_is_put_rightVICTORY_FETCH_CHECK=1writes_through_picked_views_come_backVICTORY_PICKED_WRITES=2 VICTORY_PICKED_MB=1each_submission_reads_its_own_copy_on_the_cardeach_submission_reads_its_own_copy_in_pc_memoryVICTORY_CARD_ALL=1copy_draw_copy_drawdeclared_writes_beside_the_titles_own_staycard_steps::...a_copy_behind_a_flight_reads_what_the_flight_wroteVICTORY_CARD_STEPS=2the_check_finds_an_undeclared_write_undoneVICTORY_UPCOPY_CHECK=1undone on the card: false; the check found 0 words,(false, 0)against(true, 16)copies_stand_where_the_list_has_them_on_the_cardround 74, s1 op6: read 0+0x35ac: at +0xc8 0x0, not 0x59copies_stand_where_the_list_has_them_mixedround 0, s1 op7: read 0+0x1680: at +0x30 0x0, not 0x31copies_stand_where_the_list_has_them_in_pc_memoryround 28, s0 op3: read 0+0x303c: at +0x68 0x0, not 0xdThe three
copies_stand_where_the_list_has_them_*fail at the same round every time (the seed is fixed), always as a read in the same submission just after a shader-style write to buffer 0, which returns the bytes from before the write. #115 has them passing on NVIDIA. At9c23e8dthe failure stays the same withVKD3D_CONFIG=single_queue,RADV_DEBUG=syncshaders,VICTORY_RELAY=1,VICTORY_RELAY_COPY=0, and with buffer 0 made write-watched memory instead of a section view, so it does not look like a missing GPU barrier. I have not found the cause, and nothing in play shows it yet.Not settled here: resuming from a checkpoint lost the main characters' faces with stage 1 (#67); I have not tried a checkpoint with the check on yet.
@gomeaw on GitHub · 2026-11-26 07:34 UTC · original
#148 enables the existing fetch check when the relay actually uses its copy queue. Windows WARP reproduced wrong title bytes in 12 of 12 rounds with the check disabled and corrected all 12 with the new default, using this fork's regression. That covers the same race as the RTX 5060 result in #115 and the Wine result here.
The relay and copy-queue settings stay available for an A/B. With the same build and scene,
VICTORY_FETCH_CHECK=0is the unchecked comparison. The frame line reports how many pieces were checked, caught, and corrected.