Summary #471

Open
github-bot wants to merge 20 commits from github-bot/gh-471 into a-publier AGit
Owner

@⁠agonisingbasher on GitHub · 2026-11-27 04:16 UTC · original
agonisingbasher:codex/rx6600xt-implementation → a-publier · +3007 −248 · 31 files · 20 commits · open

This pull request replaces #342, which was closed after the previous source fork was accidentally deleted. The original implementation and commit history have been preserved, and the merge conflicts have been resolved.

This brings the Radeon RX 6600 XT fork's renderer, launcher and diagnostic work to a-publier, incorporating the upstream changes through commit 4eb6cfd.

Port single-stream geometry shader support, cover the translation paths with tests, hash embedded DXBC over the declared container bytes, and reduce copying and work on shader and pipeline cache hits.

Add the RX 6600 XT PowerShell launcher and graphics panel, a native Series S 1080p profile, a 720p output option, staged performance controls, and settings for render scale, fog, indirect lighting, contact shadows, and performance indicators.

Add frame capture and timing, lighting and streaming diagnostics, and opt-in DirectStorage concurrency controls for HDDs.

Prefetch persistent texture blobs on two workers in the HDD profile. Prioritize requested blobs, share the 4 GiB memory budget, and keep pending descriptor slots in the retry queue until their resources are ready.

Include regression tests for geometry translation, deferred texture lookup, prefetch fallback and descriptor readiness, plus the HDD observations in docs/findings.md.

Validation

The following results were obtained before the upstream merge:

Windows and Rust 1.98.1. All three changed PowerShell scripts parsed successfully. The repository asset policy and git diff --check passed.

cargo test --locked -p victory-gpu --lib: 394 passed, 35 ignored, and one failure in views_are_made_beside_the_heap_and_copied_in. The same assertion failed in a separate clean checkout of d81c5e0. The new pending-descriptor regression test passed.

cargo test --locked -p victory-shader --lib: 311 passed, 4 ignored, and zero failures.

The HDD cache measurement completed 2,653 blobs (1,296 MiB) in 14.875 s on the first pass and 0.894 s on the second.

Independent testing

Thanks to @⁠MamaLeVrai for independently testing the previous implementation on an RX 6950 XT (RDNA 2).

victory-gpu: 394 passed, 1 failed, 35 ignored.

victory-shader: 311 passed, 0 failed, 4 ignored.

victory-hle: 160 passed.

victory-pipeline: 8 passed.

The reported descriptor test failure was also present on the upstream baseline and was addressed in #288.

Previous test report: #342

Current status

Original implementation preserved.

Upstream merge conflicts resolved.

20 commits and 31 changed files.

Post-merge CI and gameplay frame-time A/B validation are still pending.

Previous pull request: #342.

AI-assisted development. No game files or assets included.

**@⁠agonisingbasher** on GitHub · 2026-11-27 04:16 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/pull/471) `agonisingbasher:codex/rx6600xt-implementation` → `a-publier` · +3007 −248 · 31 files · 20 commits · open This pull request replaces #342, which was closed after the previous source fork was accidentally deleted. The original implementation and commit history have been preserved, and the merge conflicts have been resolved. This brings the Radeon RX 6600 XT fork's renderer, launcher and diagnostic work to a-publier, incorporating the upstream changes through commit 4eb6cfd. Port single-stream geometry shader support, cover the translation paths with tests, hash embedded DXBC over the declared container bytes, and reduce copying and work on shader and pipeline cache hits. Add the RX 6600 XT PowerShell launcher and graphics panel, a native Series S 1080p profile, a 720p output option, staged performance controls, and settings for render scale, fog, indirect lighting, contact shadows, and performance indicators. Add frame capture and timing, lighting and streaming diagnostics, and opt-in DirectStorage concurrency controls for HDDs. Prefetch persistent texture blobs on two workers in the HDD profile. Prioritize requested blobs, share the 4 GiB memory budget, and keep pending descriptor slots in the retry queue until their resources are ready. Include regression tests for geometry translation, deferred texture lookup, prefetch fallback and descriptor readiness, plus the HDD observations in docs/findings.md. Validation The following results were obtained before the upstream merge: Windows and Rust 1.98.1. All three changed PowerShell scripts parsed successfully. The repository asset policy and git diff --check passed. cargo test --locked -p victory-gpu --lib: 394 passed, 35 ignored, and one failure in views_are_made_beside_the_heap_and_copied_in. The same assertion failed in a separate clean checkout of d81c5e0. The new pending-descriptor regression test passed. cargo test --locked -p victory-shader --lib: 311 passed, 4 ignored, and zero failures. The HDD cache measurement completed 2,653 blobs (1,296 MiB) in 14.875 s on the first pass and 0.894 s on the second. Independent testing Thanks to @⁠MamaLeVrai for independently testing the previous implementation on an RX 6950 XT (RDNA 2). victory-gpu: 394 passed, 1 failed, 35 ignored. victory-shader: 311 passed, 0 failed, 4 ignored. victory-hle: 160 passed. victory-pipeline: 8 passed. The reported descriptor test failure was also present on the upstream baseline and was addressed in #288. Previous test report: https://git.gtahub.st/github/Belobug--VIctory-Belobug-AMD/pulls/342 Current status Original implementation preserved. Upstream merge conflicts resolved. 20 commits and 31 changed files. Post-merge CI and gameplay frame-time A/B validation are still pending. Previous pull request: #342. AI-assisted development. No game files or assets included.
Geometry translation and reference tests adapted from Marvisak/VIctory#1315 (r4tedx, 0d45a59).

Keep graphics pipeline keys compatible, reuse DXIL slices and adapter capabilities, and add a Full HD RX 6600 XT launcher with pipeline warm-up, streaming diagnostics, and an optional ambient floor.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 04:17:22 +00:00
Author
Owner

@⁠MamaLeVrai on GitHub · 2026-11-27 05:38 UTC · original

Tested on an RX 6950 XT (RDNA 2), driver 32.0.21045.29003, Windows 11 build 26300, Rust 1.98.1, release. At 0b04a8f: victory-gpu 404 passed, 0 failed, 35 ignored; victory-shader 312 passed, 0 failed, 4 ignored; victory-hle 163 passed; victory-pipeline 8 passed.

AI-assisted (Claude Code); no game data.

**@⁠MamaLeVrai** on GitHub · 2026-11-27 05:38 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/pull/471#issuecomment-7210807739) Tested on an RX 6950 XT (RDNA 2), driver 32.0.21045.29003, Windows 11 build 26300, Rust 1.98.1, release. At `0b04a8f`: `victory-gpu` 404 passed, 0 failed, 35 ignored; `victory-shader` 312 passed, 0 failed, 4 ignored; `victory-hle` 163 passed; `victory-pipeline` 8 passed. AI-assisted (Claude Code); no game data.
Author
Owner

@⁠adrianmjim on GitHub · 2026-11-27 06:51 UTC · original

These are my results from #342, run before it was closed. This PR has the same head, 0b04a8f, so they apply here too.

Tested on an RX 7900 XT (RDNA 3), driver 32.0.32029.2010, Windows 11 26300, Rust 1.98.1, release. Head 6c708f7 against base cd8dfc0, and 6c708f7 merged onto 4eb6cfd. That merge has the same code as the current head 0b04a8f, apart from comment lines, so those results apply to 0b04a8f.

Whole shaders.rpf, translate --validate --list (default wave), head vs cd8dfc0:

  • All 195 refused GS programs (all GS_VoxelizeGeneric) are now emitted and validated. They give 4 distinct host shaders.
  • 0 programs lost. CS and MS output is byte-identical. The 71 MS refused by the validator (output size > 32768) are unchanged.
  • 13431 VS/PS outputs change bytes (all 2191 VS, 11240 of 12056 PS). All of them still validate.

Cause of the VS/PS churn:

  • In emit/lower.rs load_vertex_input, index (undef i32, or i32 n for a GS vertex) is now created before the args array (i32 id, i32 0, i8 col). Before, it was created last.
  • Module constants are interned in first-creation order (bitcode.rs constant()) and written in that order. Where undef i32 is first created by a loadInput, it now takes an earlier constant slot, and the ids of constants created after it shift.
  • The constants and instructions are the same, so the output is unchanged in meaning.
  • Side effects: with a fresh translation cache every VS/PS hash moves, so driver caches start cold once. TRANSLATOR_VERSION is 2 on both 4eb6cfd and 0b04a8f, so a translation cache written by a-publier keeps serving the old bytes for these shaders.
  • Building index inside the array again, as the last element, makes all non-GS output byte-identical to cd8dfc0 across the archive. The GS output is unchanged by that.
-        let index = match vertex {
-            Some(n) => self.s.m.i32(u32::from(n)),
-            None => self.s.m.undef(self.s.t.i32),
-        };
         let args = [
             self.s.m.i32(id as u32),
             self.s.m.i32(0),
             self.s.m.i8(col),
-            index,
+            match vertex {
+                Some(n) => self.s.m.i32(u32::from(n)),
+                None => self.s.m.undef(self.s.t.i32),
+            },
         ];

translate --pipelines on the 7900 XT, whole archive:

  • cd8dfc0: 14247 VS+PS pipelines.
  • 6c708f7 and the 4eb6cfd merge: 14442 VS+GS+PS pipelines. That includes all 195 GS and all 13431 changed VS/PS.
  • CS 2682 and MS 8765 pipelines are unchanged.
  • No pipeline refusals, no compiler crash, no TDR.
  • The merge differs from head only by #324's 312 outputs.

WARP, --pipelines limited to the 195 GS plus 308 of the changed VS/PS: 503/503 pipelines.

Tests on the 7900 XT, --test-threads=1:

  • geometry_vertices_match_reference_draw and geometry_parameters_match_reference_draw pass on both the 7900 XT and WARP. The translated GS image equals the reference (44/256 pixels), with no skip.
  • 6c708f7: victory-shader 311 passed, 4 ignored. victory-gpu 395 passed, 0 failed, 35 ignored.
  • Merge onto 4eb6cfd: victory-shader 312 passed, 4 ignored. victory-gpu 404 passed, 0 failed, 35 ignored.
  • views_are_made_beside_the_heap_and_copied_in passes on RDNA 3 at 6c708f7, which does not have #288. So far the failure is only reported on RDNA 2.

#433 (a-publier) also translates the 195 GS_VoxelizeGeneric programs, with its own translator code (io.rs, resource.rs, structure.rs; no geometry.rs) and a similar host pipeline change. It conflicts with this PR in pipeline/host.rs, emit/host.rs, emit/lower.rs and emit/mod.rs. By reading only, its load_input_at also builds the vertex-index constant before the args array, the order behind the VS/PS byte changes above; not checked by translation.

Not tested: in game, the texture-store prefetch, the launcher and panel, the F9 capture, debug builds, and WARP on the whole archive.

**@⁠adrianmjim** on GitHub · 2026-11-27 06:51 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/pull/471#issuecomment-7211911155) These are my results from #342, run before it was closed. This PR has the same head, `0b04a8f`, so they apply here too. Tested on an RX 7900 XT (RDNA 3), driver 32.0.32029.2010, Windows 11 26300, Rust 1.98.1, release. Head `6c708f7` against base `cd8dfc0`, and `6c708f7` merged onto `4eb6cfd`. That merge has the same code as the current head `0b04a8f`, apart from comment lines, so those results apply to `0b04a8f`. Whole `shaders.rpf`, `translate --validate --list` (default wave), head vs `cd8dfc0`: - All 195 refused GS programs (all `GS_VoxelizeGeneric`) are now emitted and validated. They give 4 distinct host shaders. - 0 programs lost. CS and MS output is byte-identical. The 71 MS refused by the validator (output size > 32768) are unchanged. - 13431 VS/PS outputs change bytes (all 2191 VS, 11240 of 12056 PS). All of them still validate. Cause of the VS/PS churn: - In `emit/lower.rs` `load_vertex_input`, `index` (`undef i32`, or `i32 n` for a GS vertex) is now created before the `args` array (`i32 id`, `i32 0`, `i8 col`). Before, it was created last. - Module constants are interned in first-creation order (`bitcode.rs` `constant()`) and written in that order. Where `undef i32` is first created by a loadInput, it now takes an earlier constant slot, and the ids of constants created after it shift. - The constants and instructions are the same, so the output is unchanged in meaning. - Side effects: with a fresh translation cache every VS/PS hash moves, so driver caches start cold once. `TRANSLATOR_VERSION` is 2 on both `4eb6cfd` and `0b04a8f`, so a translation cache written by a-publier keeps serving the old bytes for these shaders. - Building `index` inside the array again, as the last element, makes all non-GS output byte-identical to `cd8dfc0` across the archive. The GS output is unchanged by that. ```diff - let index = match vertex { - Some(n) => self.s.m.i32(u32::from(n)), - None => self.s.m.undef(self.s.t.i32), - }; let args = [ self.s.m.i32(id as u32), self.s.m.i32(0), self.s.m.i8(col), - index, + match vertex { + Some(n) => self.s.m.i32(u32::from(n)), + None => self.s.m.undef(self.s.t.i32), + }, ]; ``` `translate --pipelines` on the 7900 XT, whole archive: - `cd8dfc0`: 14247 VS+PS pipelines. - `6c708f7` and the `4eb6cfd` merge: 14442 VS+GS+PS pipelines. That includes all 195 GS and all 13431 changed VS/PS. - CS 2682 and MS 8765 pipelines are unchanged. - No pipeline refusals, no compiler crash, no TDR. - The merge differs from head only by #324's 312 outputs. WARP, `--pipelines` limited to the 195 GS plus 308 of the changed VS/PS: 503/503 pipelines. Tests on the 7900 XT, `--test-threads=1`: - `geometry_vertices_match_reference_draw` and `geometry_parameters_match_reference_draw` pass on both the 7900 XT and WARP. The translated GS image equals the reference (44/256 pixels), with no skip. - `6c708f7`: victory-shader 311 passed, 4 ignored. victory-gpu 395 passed, 0 failed, 35 ignored. - Merge onto `4eb6cfd`: victory-shader 312 passed, 4 ignored. victory-gpu 404 passed, 0 failed, 35 ignored. - `views_are_made_beside_the_heap_and_copied_in` passes on RDNA 3 at `6c708f7`, which does not have #288. So far the failure is only reported on RDNA 2. #433 (a-publier) also translates the 195 `GS_VoxelizeGeneric` programs, with its own translator code (`io.rs`, `resource.rs`, `structure.rs`; no `geometry.rs`) and a similar host pipeline change. It conflicts with this PR in `pipeline/host.rs`, `emit/host.rs`, `emit/lower.rs` and `emit/mod.rs`. By reading only, its `load_input_at` also builds the vertex-index constant before the `args` array, the order behind the VS/PS byte changes above; not checked by translation. Not tested: in game, the texture-store prefetch, the launcher and panel, the F9 capture, debug builds, and WARP on the whole archive.
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/471/head:github-bot/gh-471'
git switch 'github-bot/gh-471'

Merge

Merge the changes and update on Forgejo.
git switch 'a-publier'
git merge --no-ff 'github-bot/gh-471'
git switch 'github-bot/gh-471'
git rebase 'a-publier'
git switch 'a-publier'
git merge --ff-only 'github-bot/gh-471'
git switch 'github-bot/gh-471'
git rebase 'a-publier'
git switch 'a-publier'
git merge --no-ff 'github-bot/gh-471'
git switch 'a-publier'
git merge --squash 'github-bot/gh-471'
git switch 'a-publier'
git merge --ff-only 'github-bot/gh-471'
git switch 'a-publier'
git merge 'github-bot/gh-471'
git push origin 'a-publier'
This discussion has been locked. Commenting is limited to contributors.
No description provided.