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

Open
opened 2026-11-26 06:57:20 +00:00 by github-bot · 1 comment
Owner

@⁠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 9c23e8d plus 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=2 loses the main characters' faces (#13) unless VICTORY_FETCH_CHECK=1 is set. With it, stage 2 and VICTORY_CARD_STEPS=2 hold 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:

settings draws a frame frame submitting thread waits for the card faces
RELAY=1 CARD_STEPS=0 (the #13 workaround) ~6,650 ~82 ms 27-31 ms present
RELAY=2 CARD_STEPS=2 ~7,000-7,200 66-69 ms 0.5 ms gone (eyes, teeth, hair only)
RELAY=2 CARD_STEPS=2 FETCH_CHECK=1 ~6,800 65-67 ms 0 ms present; textures and streaming right

With 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-gpu tests for x86_64-pc-windows-gnu and ran the ignored ones with wine <tests>.exe host::upcheck::tests::<name> --exact --ignored --test-threads=1:

  • a_result_caught_in_between_is_put_right with VICTORY_RELAY=2 VICTORY_RELAY_COPY=1 VICTORY_CARD_BUFFERS_MIN_MB=1: 11, 11 and 12 of 12 results wrong in title memory (at b0cfe2b; 12 of 12 at 9c23e8d); with VICTORY_FETCH_CHECK=1 it 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's RELAY=2 RELAY_COPY=1 without the check leaves the race open; on vkd3d-proton it shows in play. Could VICTORY_FETCH_CHECK=1 go into play.ps1, or be on by default when VICTORY_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=1 where it applies):

At b0cfe2b, each run alone, 3 times:

test extra switch result
a_result_caught_in_between_is_put_right VICTORY_FETCH_CHECK=1 3 of 3 pass
writes_through_picked_views_come_back VICTORY_PICKED_WRITES=2 VICTORY_PICKED_MB=1 3 of 3 pass
each_submission_reads_its_own_copy_on_the_card 3 of 3 pass
each_submission_reads_its_own_copy_in_pc_memory VICTORY_CARD_ALL=1 3 of 3 pass
copy_draw_copy_draw 3 of 3 pass
declared_writes_beside_the_titles_own_stay 3 of 3 pass
card_steps::...a_copy_behind_a_flight_reads_what_the_flight_wrote VICTORY_CARD_STEPS=2 passes
the_check_finds_an_undeclared_write_undone VICTORY_UPCOPY_CHECK=1 fails 3 of 3: undone on the card: false; the check found 0 words, (false, 0) against (true, 16)
copies_stand_where_the_list_has_them_on_the_card fails 3 of 3: round 74, s1 op6: read 0+0x35ac: at +0xc8 0x0, not 0x59
copies_stand_where_the_list_has_them_mixed fails 3 of 3: round 0, s1 op7: read 0+0x1680: at +0x30 0x0, not 0x31
copies_stand_where_the_list_has_them_in_pc_memory fails 3 of 3: round 28, s0 op3: read 0+0x303c: at +0x68 0x0, not 0xd

The 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. At 9c23e8d the failure stays the same with VKD3D_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.

**@⁠bordersky** on GitHub · 2026-11-26 06:56 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/issues/138) RX 7900 XT 20 GB, Arch Linux, Wine (GE-Proton10-34) + vkd3d-proton master, Mesa RADV, Ryzen 9 5900X. avatarmanz main at `9c23e8d` plus 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=2` loses the main characters' faces (#13) unless `VICTORY_FETCH_CHECK=1` is set. With it, stage 2 and `VICTORY_CARD_STEPS=2` hold 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: | settings | draws a frame | frame | submitting thread waits for the card | faces | |---|---|---|---|---| | `RELAY=1 CARD_STEPS=0` (the #13 workaround) | ~6,650 | ~82 ms | 27-31 ms | present | | `RELAY=2 CARD_STEPS=2` | ~7,000-7,200 | 66-69 ms | 0.5 ms | **gone** (eyes, teeth, hair only) | | `RELAY=2 CARD_STEPS=2 FETCH_CHECK=1` | ~6,800 | 65-67 ms | 0 ms | present; textures and streaming right | With 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-gpu` tests for `x86_64-pc-windows-gnu` and ran the ignored ones with `wine <tests>.exe host::upcheck::tests::<name> --exact --ignored --test-threads=1`: - `a_result_caught_in_between_is_put_right` with `VICTORY_RELAY=2 VICTORY_RELAY_COPY=1 VICTORY_CARD_BUFFERS_MIN_MB=1`: **11, 11 and 12 of 12 results wrong in title memory** (at `b0cfe2b`; 12 of 12 at `9c23e8d`); with `VICTORY_FETCH_CHECK=1` it 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`'s `RELAY=2 RELAY_COPY=1` without the check leaves the race open; on vkd3d-proton it shows in play. Could `VICTORY_FETCH_CHECK=1` go into `play.ps1`, or be on by default when `VICTORY_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=1` where it applies): At `b0cfe2b`, each run alone, 3 times: | test | extra switch | result | |---|---|---| | `a_result_caught_in_between_is_put_right` | `VICTORY_FETCH_CHECK=1` | 3 of 3 pass | | `writes_through_picked_views_come_back` | `VICTORY_PICKED_WRITES=2 VICTORY_PICKED_MB=1` | 3 of 3 pass | | `each_submission_reads_its_own_copy_on_the_card` | | 3 of 3 pass | | `each_submission_reads_its_own_copy_in_pc_memory` | `VICTORY_CARD_ALL=1` | 3 of 3 pass | | `copy_draw_copy_draw` | | 3 of 3 pass | | `declared_writes_beside_the_titles_own_stay` | | 3 of 3 pass | | `card_steps::...a_copy_behind_a_flight_reads_what_the_flight_wrote` | `VICTORY_CARD_STEPS=2` | passes | | `the_check_finds_an_undeclared_write_undone` | `VICTORY_UPCOPY_CHECK=1` | **fails 3 of 3**: `undone on the card: false; the check found 0 words`, `(false, 0)` against `(true, 16)` | | `copies_stand_where_the_list_has_them_on_the_card` | | **fails 3 of 3**: `round 74, s1 op6: read 0+0x35ac: at +0xc8 0x0, not 0x59` | | `copies_stand_where_the_list_has_them_mixed` | | **fails 3 of 3**: `round 0, s1 op7: read 0+0x1680: at +0x30 0x0, not 0x31` | | `copies_stand_where_the_list_has_them_in_pc_memory` | | **fails 3 of 3**: `round 28, s0 op3: read 0+0x303c: at +0x68 0x0, not 0xd` | The 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. At `9c23e8d` the failure stays the same with `VKD3D_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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 06:57:20 +00:00
Author
Owner

@⁠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=0 is the unchecked comparison. The frame line reports how many pieces were checked, caught, and corrected.

**@⁠gomeaw** on GitHub · 2026-11-26 07:34 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/issues/138#issuecomment-7185604128) #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=0` is the unchecked comparison. The frame line reports how many pieces were checked, caught, and corrected.
This discussion has been locked. Commenting is limited to contributors.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/avatarmanz--VIctory-7900XTX#138
No description provided.