gpu-test-results: RX 580 (Polaris, AMD legacy driver 31.0.21925.1001) - workspace at cd8dfc0 + #290; a descriptor copy test fails on every run #304

Closed
opened 2026-11-26 19:49:12 +00:00 by github-bot · 4 comments
Owner

@⁠WellyngtonSantos on GitHub · 2026-11-26 19:33 UTC · original

First pre-RDNA run: RX 580 (Polaris / GCN4), AMD legacy driver. Workspace test results, and one descriptor test that fails on every run

Machine: Intel i5-9400F, 16 GB RAM, AMD Radeon RX 580 2048SP (8 GB), driver 31.0.21925.1001 (AMD's legacy Polaris branch), Windows 11 26200. The device reports shader model 6.7, waves of 64 to 64 lanes, no mesh shaders, binding tier 3 (victory system, #268). The title was not run: we don't have it.

Built from cd8dfc0 plus #290 (06d6465) with the pinned 1.98.1 toolchain, cross-compiled with cargo xwin test --workspace --release --target x86_64-pc-windows-msvc --no-run. Each test binary was run from its crate's directory with --test-threads=1.

Results

binary passed failed ignored
victory_shader 302 0 4
victory_gpu 386 1 34
victory_hle 159 0 2
victory_loader 51 0 0
victory_formats 41 0 5
victory_pe 36 0 0
victory (app) 22 0 0
victory_core 13 0 0
xtask 9 0 0
victory_pipeline 7 0 0
victory_game, census, translate_host_wave, title_dlls, fidelityfx, replay, replay_big all pass 0 0
load_probe, no_dll_planting see note

Without #290, victory_shader has 4 failures on this card (the WaveSize(32) pipelines a 64-lane-only GPU can't make). #290 makes them skip.

Note: load_probe runs cargo to build a probe DLL, and no_dll_planting goes back to the build-time CARGO_MANIFEST_DIR from another drive. Neither works with a binary cross-compiled elsewhere, so their failures here say nothing about the card.

The failure: descriptor::host::tests::views_are_made_beside_the_heap_and_copied_in

5 runs of 5, alone and in the full run:

assertion `left == right` failed: copied as it was made
  left:  [128, 0, 1, 8, 23, 2, 0, 0,   128, 0, 1, 16, 23, 2, 0, 0,   48, 212, 164, 88, 23, 2, 0, 0,   128, 0, 0, 0, 0, 0, 0, 0]
  right: [224, 1, 132, 120, 23, 2, 0, 0,   224, 1, 136, 120, 23, 2, 0, 0,   48, 212, 164, 88, 23, 2, 0, 0,   128, 0, 0, 0, 0, 0, 0, 0]

The pattern is the same in every run:

  • Bytes 16-31 always match.
  • Bytes 0-15 always differ. In the staged slot (right) they are two 64-bit values 0x40000 apart that look like addresses in this process (0x217_7884_01e0, 0x217_7888_01e0). After the copy (left) they become two others (0x217_0801_0080, 0x217_1001_0080). None of them is a buffer's GPU address.

So on this driver a CPU-only descriptor of a raw buffer view seems to hold driver pointers rather than the buffer's GPU address, the AMD layout move_raw expects. CopyDescriptorsSimple turns it into another form when it lands in the shader-visible heap. The test assumes a copy keeps the bytes, which holds where descriptors are the AMD layout and not here.

The code itself looks safe on this driver. move_raw already checks that the first 8 bytes are the view's GPU address before it changes anything, and a_raw_view_is_moved_only_where_its_descriptor_says_where_it_is passes here. One consequence to keep in mind: on this driver move_raw never moves a twin, so every misaligned raw twin would count as "could not be moved" in TWINS.

A possible fix for the test: compare the bytes only when the staged descriptor starts with the buffer's GPU address (the layout move_raw relies on), and otherwise check only that the slot changed from the null view. I can open a PR for that if you want it, and rerun anything on this card.

Also available

A second machine without the title: i7-2600 (no AVX2) with a GTX 1050 Ti (Pascal, no mesh shaders) on Debian 13. victory system under Wine 10 there is in #268, and the missing AVX2 blocker is noted there. Both machines are free for anything that doesn't need the game files.

**@⁠WellyngtonSantos** on GitHub · 2026-11-26 19:33 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/issues/304) **First pre-RDNA run: RX 580 (Polaris / GCN4), AMD legacy driver. Workspace test results, and one descriptor test that fails on every run** Machine: Intel i5-9400F, 16 GB RAM, **AMD Radeon RX 580 2048SP (8 GB), driver 31.0.21925.1001** (AMD's legacy Polaris branch), Windows 11 26200. The device reports shader model 6.7, waves of 64 to 64 lanes, no mesh shaders, binding tier 3 (`victory system`, #268). The title was not run: we don't have it. Built from `cd8dfc0` plus #290 (`06d6465`) with the pinned 1.98.1 toolchain, cross-compiled with `cargo xwin test --workspace --release --target x86_64-pc-windows-msvc --no-run`. Each test binary was run from its crate's directory with `--test-threads=1`. ### Results | binary | passed | failed | ignored | |---|---|---|---| | victory_shader | 302 | 0 | 4 | | victory_gpu | 386 | **1** | 34 | | victory_hle | 159 | 0 | 2 | | victory_loader | 51 | 0 | 0 | | victory_formats | 41 | 0 | 5 | | victory_pe | 36 | 0 | 0 | | victory (app) | 22 | 0 | 0 | | victory_core | 13 | 0 | 0 | | xtask | 9 | 0 | 0 | | victory_pipeline | 7 | 0 | 0 | | victory_game, census, translate_host_wave, title_dlls, fidelityfx, replay, replay_big | all pass | 0 | 0 | | load_probe, no_dll_planting | see note | | | Without #290, `victory_shader` has 4 failures on this card (the `WaveSize(32)` pipelines a 64-lane-only GPU can't make). #290 makes them skip. *Note:* `load_probe` runs `cargo` to build a probe DLL, and `no_dll_planting` goes back to the build-time `CARGO_MANIFEST_DIR` from another drive. Neither works with a binary cross-compiled elsewhere, so their failures here say nothing about the card. ### The failure: `descriptor::host::tests::views_are_made_beside_the_heap_and_copied_in` 5 runs of 5, alone and in the full run: ``` assertion `left == right` failed: copied as it was made left: [128, 0, 1, 8, 23, 2, 0, 0, 128, 0, 1, 16, 23, 2, 0, 0, 48, 212, 164, 88, 23, 2, 0, 0, 128, 0, 0, 0, 0, 0, 0, 0] right: [224, 1, 132, 120, 23, 2, 0, 0, 224, 1, 136, 120, 23, 2, 0, 0, 48, 212, 164, 88, 23, 2, 0, 0, 128, 0, 0, 0, 0, 0, 0, 0] ``` The pattern is the same in every run: - **Bytes 16-31 always match.** - **Bytes 0-15 always differ.** In the staged slot (`right`) they are two 64-bit values 0x40000 apart that look like addresses in this process (`0x217_7884_01e0`, `0x217_7888_01e0`). After the copy (`left`) they become two others (`0x217_0801_0080`, `0x217_1001_0080`). None of them is a buffer's GPU address. So on this driver a CPU-only descriptor of a raw buffer view seems to hold driver pointers rather than the buffer's GPU address, the AMD layout `move_raw` expects. `CopyDescriptorsSimple` turns it into another form when it lands in the shader-visible heap. The test assumes a copy keeps the bytes, which holds where descriptors are the AMD layout and not here. The code itself looks safe on this driver. `move_raw` already checks that the first 8 bytes are the view's GPU address before it changes anything, and `a_raw_view_is_moved_only_where_its_descriptor_says_where_it_is` passes here. One consequence to keep in mind: on this driver `move_raw` never moves a twin, so every misaligned raw twin would count as "could not be moved" in `TWINS`. A possible fix for the test: compare the bytes only when the staged descriptor starts with the buffer's GPU address (the layout `move_raw` relies on), and otherwise check only that the slot changed from the null view. I can open a PR for that if you want it, and rerun anything on this card. ### Also available A second machine without the title: i7-2600 (no AVX2) with a GTX 1050 Ti (Pascal, no mesh shaders) on Debian 13. `victory system` under Wine 10 there is in #268, and the missing AVX2 blocker is noted there. Both machines are free for anything that doesn't need the game files.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 19:49:12 +00:00
Author
Owner

@⁠infektas1-star on GitHub · 2026-11-26 19:44 UTC · original

Are there any plans to implement a mode without mesh shaders?

**@⁠infektas1-star** on GitHub · 2026-11-26 19:44 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/issues/304#issuecomment-7201920409) Are there any plans to implement a mode without mesh shaders?
Author
Owner

@⁠WellyngtonSantos on GitHub · 2026-11-26 19:54 UTC · original

#288 (lerapeurdu62280-debug) fixes this test, and I checked it on this RX 580: it passes 3 of 3 and the whole victory_gpu is 387/0. The proposal at the end of this issue isn't needed.

**@⁠WellyngtonSantos** on GitHub · 2026-11-26 19:54 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/issues/304#issuecomment-7202086975) #288 (lerapeurdu62280-debug) fixes this test, and I checked it on this RX 580: it passes 3 of 3 and the whole `victory_gpu` is 387/0. The proposal at the end of this issue isn't needed.
Author
Owner

@⁠yesntOG on GitHub · 2026-11-27 01:31 UTC · original

Second RX 580 data point, on current main (cloned Nov 26) with a newer driver:

  • RX 580 8 GB, Adrenalin 25.8.1, Ryzen 7 5800X, 32 GB, Windows 11, debug build
  • cargo test --workspace --no-fail-fast -- --test-threads=4, no game files:
    1064 passed, 0 failed, 45 ignored, no crashes
  • So the descriptor-copy test and the WaveSize(32) tests pass here; I assume #288 / #290
    (or equivalent fixes) are in main now, but I haven't checked which commit.

One gotcha: my first run failed repository_passes_policy only because I'd saved
test-output.txt inside the repo; moved out, cargo xtask policy reports 271 files ok.

Re the question about a mode without mesh shaders: I wrote a vertex-shader fallback for the
same problem in XCL (xcl-dev/xcl#529, tested on this RX 580 and on a GTX 1050 Ti). If the
maintainer is open to it, I'd be glad to help with a version for VIctory's pipeline.

AI use: Claude (Claude Opus 5.5) helped run and summarize these; results are from my machine.

**@⁠yesntOG** on GitHub · 2026-11-27 01:31 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/issues/304#issuecomment-7207362729) Second RX 580 data point, on current `main` (cloned Nov 26) with a newer driver: - RX 580 8 GB, Adrenalin 25.8.1, Ryzen 7 5800X, 32 GB, Windows 11, debug build - `cargo test --workspace --no-fail-fast -- --test-threads=4`, no game files: **1064 passed, 0 failed, 45 ignored**, no crashes - So the descriptor-copy test and the WaveSize(32) tests pass here; I assume #288 / #290 (or equivalent fixes) are in main now, but I haven't checked which commit. One gotcha: my first run failed `repository_passes_policy` only because I'd saved test-output.txt inside the repo; moved out, `cargo xtask policy` reports 271 files ok. Re the question about a mode without mesh shaders: I wrote a vertex-shader fallback for the same problem in XCL (xcl-dev/xcl#529, tested on this RX 580 and on a GTX 1050 Ti). If the maintainer is open to it, I'd be glad to help with a version for VIctory's pipeline. AI use: Claude (Claude Opus 5.5) helped run and summarize these; results are from my machine.
Author
Owner

@⁠WellyngtonSantos on GitHub · 2026-11-27 13:08 UTC · original

Closing: #288 is merged and fixes the one failure in this report. @⁠yesntOG's second RX 580 run on current main, with a newer driver, has the whole workspace at 1064/0. Thanks both.

**@⁠WellyngtonSantos** on GitHub · 2026-11-27 13:08 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/issues/304#issuecomment-7219104228) Closing: #288 is merged and fixes the one failure in this report. @⁠yesntOG's second RX 580 run on current `main`, with a newer driver, has the whole workspace at 1064/0. Thanks both.
This discussion has been locked. Commenting is limited to contributors.
No description provided.