GPU: descriptor dwords read as data — the record count and the format #2363

Open
github-bot wants to merge 1 commit from github-bot/gh-2363 into main AGit
Owner

@⁠Calvix2k on GitHub · 2026-11-25 11:55 UTC · original
Calvix2k:codex/shader-descriptor-dwords → main · +64 −24 · 3 files · 1 commits · open

A title may load a descriptor from its heap and read its dwords as numbers: the base address (to hand to s_load, as the BVH's pointer), the record count (bounds checks), the format and type (to pick a path). view_addresses served only the address — dwords 0-1 — and a read past them stopped the program with a descriptor read only as data, which is how six pixel shaders of this title were dropped.

Measured over the shader pack

victory translate --list over shaders.rpf (26,503 containers), same build otherwise:

before after
programs failing on a descriptor read as data 37 0
vertex and pixel programs translated 14,205 / 14,247 14,240 / 14,247
compute programs translated 2,622 / 2,679 2,622 / 2,679

With the record count alone the 36 still failing moved on to the format, which is the next dword they read; both are needed, and with both served nothing in the pack fails on this reason any more.

How

Both dwords come from the title's own descriptor — desc[2] and desc[3] — not from the host view, so a shader that decodes them (a record count, a console format enum) sees exactly what the console would have given it. The table is four dwords per heap index instead of two (16 bytes a slot on the host, write_address); view_addresses reads words 0-3 and keeps 4-7 refused by name (a descriptor's dword 4 read as data), so nothing falls back to a silent zero. Dword 1 still carries the address bits only: the stride lives in the view-stride table (VIEW_STRIDES), where the lowered code already reads it.

Verification

  • The translate numbers above.
  • cargo test -p victory-shader --lib: 247 passed, 0 failed, 3 ignored (Windows 10 19045 / RX 7800 XT, SM 6.6 via the Agility runtime for the test binaries); the memory test's view_addresses fixture follows the new width. clippy -D warnings clean.
  • Not yet on the title: the six pixel shaders (8660e982, 7d0f14ce, e5b2121a, c8df7216, 2fd01fca, 6b6db9f1) should now translate, but that needs a run-in-game check, which I will report here.
**@⁠Calvix2k** on GitHub · 2026-11-25 11:55 UTC · [original](https://github.com/Marvisak/VIctory/pull/2363) `Calvix2k:codex/shader-descriptor-dwords` → `main` · +64 −24 · 3 files · 1 commits · open A title may load a descriptor from its heap and read its dwords as numbers: the base address (to hand to `s_load`, as the BVH's pointer), the record count (bounds checks), the format and type (to pick a path). `view_addresses` served only the address — dwords 0-1 — and a read past them stopped the program with `a descriptor read only as data`, which is how six pixel shaders of this title were dropped. ### Measured over the shader pack `victory translate --list` over `shaders.rpf` (26,503 containers), same build otherwise: | | before | after | |---|---|---| | programs failing on a descriptor read as data | **37** | **0** | | vertex and pixel programs translated | 14,205 / 14,247 | **14,240 / 14,247** | | compute programs translated | 2,622 / 2,679 | 2,622 / 2,679 | With the record count alone the 36 still failing moved on to the *format*, which is the next dword they read; both are needed, and with both served nothing in the pack fails on this reason any more. ### How Both dwords come from the **title's own descriptor** — `desc[2]` and `desc[3]` — not from the host view, so a shader that decodes them (a record count, a console format enum) sees exactly what the console would have given it. The table is four dwords per heap index instead of two (16 bytes a slot on the host, `write_address`); `view_addresses` reads words 0-3 and keeps 4-7 refused **by name** (`a descriptor's dword 4 read as data`), so nothing falls back to a silent zero. Dword 1 still carries the address bits only: the stride lives in the view-stride table (`VIEW_STRIDES`), where the lowered code already reads it. ### Verification - The translate numbers above. - `cargo test -p victory-shader --lib`: 247 passed, 0 failed, 3 ignored (Windows 10 19045 / RX 7800 XT, SM 6.6 via the Agility runtime for the test binaries); the memory test's `view_addresses` fixture follows the new width. clippy `-D warnings` clean. - Not yet on the title: the six pixel shaders (`8660e982`, `7d0f14ce`, `e5b2121a`, `c8df7216`, `2fd01fca`, `6b6db9f1`) should now translate, but that needs a run-in-game check, which I will report here.
A title may load a descriptor from its heap and read its dwords as numbers:
the base address (to hand to `s_load`, as the BVH's pointer), the record
count (bounds checks), the format and type (to pick a path). The host had
only the address: `view_addresses` served dwords 0-1 and a read past them
stopped the program with "a descriptor read only as data".

Across this title's shader pack (`shaders.rpf`, 26,503 containers) that one
message was 37 programs, all compute. Supplying the record count moved 36
of them on to the format, which is the next dword they read; with both
served, none is left - and 35 programs that failed on it now translate
(14,205 to 14,240 vertex and pixel programs).

Both dwords come from the **title's own descriptor** (`desc[2]`, `desc[3]`),
not from the host view, so a shader that decodes them sees what the console
would have given it. The table is four dwords per heap index instead of two
(host: 16 bytes a slot, `write_address`), and `view_addresses` reads words
0-3, keeping 4-7 refused by name ("a descriptor's dword 4 read as data") so
nothing falls back to a silent zero. Dword 1 still carries the address bits
only: the stride is in the view-stride table (`VIEW_STRIDES`), where the
lowered code reads it.

The table is shared with textures, whose size fields `main` now puts in the
same four dwords (`texture_words`); this keeps that branch and fills a
buffer's dwords 2-3 instead of its zeros.
`title_memory_is_read_and_written_at_computed_addresses` now also loads a
buffer descriptor's dwords 2-3 and checks they come back as the title's
record count and format.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:03:33 +00:00
Author
Owner

@⁠welisonzika14-jpg on GitHub · 2026-11-25 12:25 UTC · original

First run on NVIDIA hardware here, as far as I can see. RTX 5070 (Blackwell, driver 621.24), Ryzen 7 5700X, Windows 11, Rust 1.98.1 MSVC, no game files. Head 16a3994 merged onto main 940d32f, cargo test -p victory-gpu -p victory-shader --lib --no-fail-fast.

The PR adds no test that runs here, so this only shows it breaks nothing. The rest is the same as main on this card: the 5 known NVIDIA failures from #1744 (2 view heap cap tests in victory-gpu, 3 in victory-shader), nothing new.

One run, unit tests only, title not run.

Written with AI help (Claude/Kiro); the numbers are from runs on my machine.

**@⁠welisonzika14-jpg** on GitHub · 2026-11-25 12:25 UTC · [original](https://github.com/Marvisak/VIctory/pull/2363#issuecomment-7162347227) First run on NVIDIA hardware here, as far as I can see. RTX 5070 (Blackwell, driver 621.24), Ryzen 7 5700X, Windows 11, Rust 1.98.1 MSVC, no game files. Head `16a3994` merged onto `main` `940d32f`, `cargo test -p victory-gpu -p victory-shader --lib --no-fail-fast`. The PR adds no test that runs here, so this only shows it breaks nothing. The rest is the same as `main` on this card: the 5 known NVIDIA failures from #1744 (2 view heap cap tests in `victory-gpu`, 3 in `victory-shader`), nothing new. One run, unit tests only, title not run. Written with AI help (Claude/Kiro); the numbers are from runs on my machine.
Author
Owner

@⁠steven-seagull27 on GitHub · 2026-11-25 13:03 UTC · original

On 16a3994, the shader now translates and dispatches, but the record count and format read back incorrectly on both an RTX 5080 (621.40) and built-in WARP (10.0.26100.10068). The parent 940d32f stopped during translation with a descriptor read only as data.

The regression creates two adjacent typed buffer SRVs through the guest CreateShaderResourceView entry. A synthetic GFX10 shader reads both descriptors through the runtime table. After the first readback it replaces slot 1 and dispatches again. Each row below was identical on both adapters. Addresses are byte offsets from the same backing buffer.

Read Address expected / observed Expected record count / GFX10 FORMAT Observed count / FORMAT
Initial slot 1, R32_UINT 16 / 16 5 / 20 5768 / 0
Initial slot 2, R32_FLOAT 48 / 48 11 / 22 5768 / 0
Rewritten slot 1, R32_SINT 80 / 80 7 / 21 5768 / 0
Untouched slot 2, R32_FLOAT 48 / 48 11 / 22 5768 / 0

For these SRVs, buffer_words returns the API view description. Its dword 2 holds D3D12_DEFAULT_SHADER_4_COMPONENT_MAPPING (5768), and dword 3 is padding, zero in this fixture. In the GFX10 buffer descriptor the shader expects NUM_RECORDS at dword 2 and FORMAT at bits 18:12 of dword 3. A local control that filled those two fields from Buffer.NumElements and the three corresponding GFX10 format codes passed all four rows on each adapter. This isolates the metadata written for these typed SRVs. Other view kinds and game rendering are outside this test. PR code · D3D12 SRV layout · AMD RDNA 2 ISA, Table 37

The test-only commit is directly on this PR head and reproduces the failure. It can also be used to verify a fix. Regression commit 1c6d000

git fetch https://github.com/steven-seagull27/VIctory.git refs/heads/codex/pr2363-descriptor-readback
git cherry-pick 1c6d0002c2fd3c9d0113e778c2b4e2c7eee69d07
$env:VICTORY_D3D12_WARP = '0'
cargo test -p victory-gpu --all-features --lib --locked adjacent_buffer_descriptors_report_their_fields_after_a_rewrite -- --nocapture --test-threads=1
$env:VICTORY_D3D12_WARP = '1'
cargo test -p victory-gpu --all-features --lib --locked adjacent_buffer_descriptors_report_their_fields_after_a_rewrite -- --nocapture --test-threads=1
**@⁠steven-seagull27** on GitHub · 2026-11-25 13:03 UTC · [original](https://github.com/Marvisak/VIctory/pull/2363#issuecomment-7163240167) On `16a3994`, the shader now translates and dispatches, but the **record count and format read back incorrectly on both an RTX 5080 (621.40) and built-in WARP (10.0.26100.10068)**. The parent `940d32f` stopped during translation with `a descriptor read only as data`. The regression creates two adjacent typed buffer SRVs through the guest `CreateShaderResourceView` entry. A synthetic GFX10 shader reads both descriptors through the runtime table. After the first readback it replaces slot 1 and dispatches again. Each row below was identical on both adapters. Addresses are byte offsets from the same backing buffer. | Read | Address expected / observed | Expected record count / GFX10 FORMAT | Observed count / FORMAT | |---|---:|---:|---:| | Initial slot 1, R32_UINT | 16 / 16 | 5 / 20 | 5768 / 0 | | Initial slot 2, R32_FLOAT | 48 / 48 | 11 / 22 | 5768 / 0 | | Rewritten slot 1, R32_SINT | 80 / 80 | 7 / 21 | 5768 / 0 | | Untouched slot 2, R32_FLOAT | 48 / 48 | 11 / 22 | 5768 / 0 | For these SRVs, `buffer_words` returns the API view description. Its dword 2 holds `D3D12_DEFAULT_SHADER_4_COMPONENT_MAPPING` (5768), and dword 3 is padding, zero in this fixture. In the GFX10 buffer descriptor the shader expects `NUM_RECORDS` at dword 2 and `FORMAT` at bits 18:12 of dword 3. A local control that filled those two fields from `Buffer.NumElements` and the three corresponding GFX10 format codes passed all four rows on each adapter. This isolates the metadata written for these typed SRVs. Other view kinds and game rendering are outside this test. [PR code](https://github.com/Marvisak/VIctory/blob/16a399423d4d69cc3a1180913721e951381f7c68/crates/victory-gpu/src/descriptor/host.rs#L810) · [D3D12 SRV layout](https://learn.microsoft.com/en-us/windows/win32/api/d3d12/ns-d3d12-d3d12_shader_resource_view_desc) · [AMD RDNA 2 ISA, Table 37](https://www.amd.com/content/dam/amd/en/documents/radeon-tech-docs/instruction-set-architectures/rdna2-shader-instruction-set-architecture.pdf) The test-only commit is directly on this PR head and reproduces the failure. It can also be used to verify a fix. [Regression commit `1c6d000`](https://github.com/steven-seagull27/VIctory/commit/1c6d0002c2fd3c9d0113e778c2b4e2c7eee69d07) ```powershell git fetch https://github.com/steven-seagull27/VIctory.git refs/heads/codex/pr2363-descriptor-readback git cherry-pick 1c6d0002c2fd3c9d0113e778c2b4e2c7eee69d07 $env:VICTORY_D3D12_WARP = '0' cargo test -p victory-gpu --all-features --lib --locked adjacent_buffer_descriptors_report_their_fields_after_a_rewrite -- --nocapture --test-threads=1 $env:VICTORY_D3D12_WARP = '1' cargo test -p victory-gpu --all-features --lib --locked adjacent_buffer_descriptors_report_their_fields_after_a_rewrite -- --nocapture --test-threads=1 ```
Author
Owner

@⁠steven-seagull27 on GitHub · 2026-11-25 13:16 UTC · original

I pushed a cherry-pickable fix for the record-count failure on 16a3994. It decodes the buffer member of the SRV or UAV and reports typed and structured counts in elements and raw counts in bytes. This covers the two placed views in DrDarkDK’s review. Fix and regression, 6a83efe

The RTX 5080 (621.40) and built-in WARP (10.0.26100.10068) returned the same numbers at each step. The regression creates the views through the guest API and reads dword 2 of four adjacent entries with a compute shader.

Four shader-visible counts, in slot order PR head With patch, both adapters
Placed structured SRV and UAV, ordinary typed SRV, ordinary structured UAV 5768, 5, 5768, 7 37, 37, 19, 11
Rewritten placed SRV, untouched UAV, raw SRV of 5 dwords, raw UAV of 7 dwords 5768, 5, 5768, 8 13, 37, 20, 28

That takes the count readback from 0/8 to 8/8 on each adapter. A separate CPU test covers the chosen bound for a raw range of 4 GiB: the byte range stays 64-bit, while the shader-visible count saturates at u32::MAX.

The format still needs a fix. I reran the earlier translated GFX10 shader on both adapters with this patch. Across the four typed reads, the byte offsets (16, 48, 80, 48) and counts (5, 11, 7, 11) now match. All four FORMAT fields still read zero, where the shader expects 20, 22, 21, 22. These are synthetic readbacks.

git fetch https://github.com/steven-seagull27/VIctory.git refs/heads/codex/pr2363-buffer-record-counts
git cherry-pick 6a83efe6954697b01aac89cc0dd860bf50ce1649
$env:VICTORY_D3D12_WARP = '0'
cargo test -p victory-gpu --all-features --lib --locked shader_reads_buffer_record_counts_after_a_slot_rewrite -- --nocapture --test-threads=1
$env:VICTORY_D3D12_WARP = '1'
cargo test -p victory-gpu --all-features --lib --locked shader_reads_buffer_record_counts_after_a_slot_rewrite -- --nocapture --test-threads=1

AI-assisted with Codex.

**@⁠steven-seagull27** on GitHub · 2026-11-25 13:16 UTC · [original](https://github.com/Marvisak/VIctory/pull/2363#issuecomment-7163551748) I pushed a cherry-pickable fix for the record-count failure on `16a3994`. It decodes the buffer member of the SRV or UAV and reports typed and structured counts in elements and raw counts in bytes. This covers the two placed views in [DrDarkDK’s review](https://git.gtahub.st/github/Marvisak--VIctory/pulls/2363). [Fix and regression, `6a83efe`](https://github.com/steven-seagull27/VIctory/commit/6a83efe6954697b01aac89cc0dd860bf50ce1649) The RTX 5080 (621.40) and built-in WARP (10.0.26100.10068) returned the same numbers at each step. The regression creates the views through the guest API and reads dword 2 of four adjacent entries with a compute shader. | Four shader-visible counts, in slot order | PR head | With patch, both adapters | |---|---|---| | Placed structured SRV and UAV, ordinary typed SRV, ordinary structured UAV | 5768, 5, 5768, 7 | **37, 37, 19, 11** | | Rewritten placed SRV, untouched UAV, raw SRV of 5 dwords, raw UAV of 7 dwords | 5768, 5, 5768, 8 | **13, 37, 20, 28** | That takes the count readback from 0/8 to 8/8 on each adapter. A separate CPU test covers the chosen bound for a raw range of 4 GiB: the byte range stays 64-bit, while the shader-visible count saturates at `u32::MAX`. The **format still needs a fix**. I reran the [earlier translated GFX10 shader](https://git.gtahub.st/github/Marvisak--VIctory/pulls/2363) on both adapters with this patch. Across the four typed reads, the byte offsets (16, 48, 80, 48) and counts (5, 11, 7, 11) now match. All four FORMAT fields still read zero, where the shader expects 20, 22, 21, 22. These are synthetic readbacks. ```powershell git fetch https://github.com/steven-seagull27/VIctory.git refs/heads/codex/pr2363-buffer-record-counts git cherry-pick 6a83efe6954697b01aac89cc0dd860bf50ce1649 $env:VICTORY_D3D12_WARP = '0' cargo test -p victory-gpu --all-features --lib --locked shader_reads_buffer_record_counts_after_a_slot_rewrite -- --nocapture --test-threads=1 $env:VICTORY_D3D12_WARP = '1' cargo test -p victory-gpu --all-features --lib --locked shader_reads_buffer_record_counts_after_a_slot_rewrite -- --nocapture --test-threads=1 ``` AI-assisted with Codex.
Author
Owner

@⁠steven-seagull27 on GitHub · 2026-11-25 13:36 UTC · original

The FORMAT fix is ready on top of the earlier record-count patch. On the RTX 5080 (621.40) and built-in WARP (10.0.26100.10068), the translated guest shader went from 0/24 to 24/24 correct FORMAT fields in the expanded test. The four original slot/rewrite checks also pass on both. Format fix f79c97a · Hardware regression ebaee6d

The shader reads adjacent typed SRV/UAV descriptors after each of 12 rewrites. The SRV padding deliberately contains 0x0007f000 to make accidental reuse visible. On the count-only commit, an R8_UINT SRV decoded as 127 and an R32_UINT UAV as 0. With this fix they report 5 and 20. The packed R11G11B10_FLOAT and R10G10B10A2_UNORM SRVs also returned their expected codes, 36 and 50. Every address and count matched on both revisions.

The writer now constructs bits 18:12 of dword 3 from the guest view format. The 46 named DXGI mappings were checked against AMD PAL's GFX10.3 table and enum. Raw and structured views use PAL’s untyped R32_UINT convention; unknown buffer encodings return INVALID. The other fields in dword 3, including component selection and out-of-bounds mode, read as zero. In-game behavior is still unverified. AMD format table · AMD GFX10 enum

From PR head 16a3994, the first pick applies the count fix, the second the format fix, and the third adds the expanded GPU regression. If you have already applied the count fix, start with the second pick.

git fetch https://github.com/steven-seagull27/VIctory.git refs/heads/codex/pr2363-format-matrix
git cherry-pick 6a83efe6954697b01aac89cc0dd860bf50ce1649
git cherry-pick f79c97a6b87677ef8827f601842eece77d2ade0d
git cherry-pick ebaee6d288fc2727239bc05a367bfe404351c99c
$env:VICTORY_D3D12_WARP = '0'
cargo test -p victory-gpu --all-features --lib --locked adjacent_buffer_descriptors_report_their_fields_after_a_rewrite -- --nocapture
$env:VICTORY_D3D12_WARP = '1'
cargo test -p victory-gpu --all-features --lib --locked adjacent_buffer_descriptors_report_their_fields_after_a_rewrite -- --nocapture

AI-assisted with Codex. Synthetic descriptor readbacks.

**@⁠steven-seagull27** on GitHub · 2026-11-25 13:36 UTC · [original](https://github.com/Marvisak/VIctory/pull/2363#issuecomment-7164020760) The FORMAT fix is ready on top of the earlier record-count patch. On the RTX 5080 (621.40) and built-in WARP (10.0.26100.10068), the translated guest shader went from **0/24 to 24/24 correct FORMAT fields** in the expanded test. The four original slot/rewrite checks also pass on both. [Format fix `f79c97a`](https://github.com/steven-seagull27/VIctory/commit/f79c97a6b87677ef8827f601842eece77d2ade0d) · [Hardware regression `ebaee6d`](https://github.com/steven-seagull27/VIctory/commit/ebaee6d288fc2727239bc05a367bfe404351c99c) The shader reads adjacent typed SRV/UAV descriptors after each of 12 rewrites. The SRV padding deliberately contains `0x0007f000` to make accidental reuse visible. On the count-only commit, an R8_UINT SRV decoded as 127 and an R32_UINT UAV as 0. With this fix they report **5 and 20**. The packed R11G11B10_FLOAT and R10G10B10A2_UNORM SRVs also returned their expected codes, **36 and 50**. Every address and count matched on both revisions. The writer now constructs bits 18:12 of dword 3 from the guest view format. The 46 named DXGI mappings were checked against AMD PAL's GFX10.3 table and enum. Raw and structured views use PAL’s untyped R32_UINT convention; unknown buffer encodings return INVALID. The other fields in dword 3, including component selection and out-of-bounds mode, read as zero. In-game behavior is still unverified. [AMD format table](https://github.com/GPUOpen-Drivers/pal/blob/c5e800072a32f68b6ccc4422936d96167c6e0728/tools/generate/formats/data/gfx10_3.yaml) · [AMD GFX10 enum](https://github.com/GPUOpen-Drivers/pal/blob/c5e800072a32f68b6ccc4422936d96167c6e0728/src/core/hw/gfxip/gfx9/chip/gfx9_plus_merged_enum.h) From PR head `16a3994`, the first pick applies the count fix, the second the format fix, and the third adds the expanded GPU regression. If you have already applied the count fix, start with the second pick. ```powershell git fetch https://github.com/steven-seagull27/VIctory.git refs/heads/codex/pr2363-format-matrix git cherry-pick 6a83efe6954697b01aac89cc0dd860bf50ce1649 git cherry-pick f79c97a6b87677ef8827f601842eece77d2ade0d git cherry-pick ebaee6d288fc2727239bc05a367bfe404351c99c $env:VICTORY_D3D12_WARP = '0' cargo test -p victory-gpu --all-features --lib --locked adjacent_buffer_descriptors_report_their_fields_after_a_rewrite -- --nocapture $env:VICTORY_D3D12_WARP = '1' cargo test -p victory-gpu --all-features --lib --locked adjacent_buffer_descriptors_report_their_fields_after_a_rewrite -- --nocapture ``` AI-assisted with Codex. Synthetic descriptor readbacks.
Author
Owner

@⁠Calvix2k on GitHub · 2026-11-25 14:07 UTC · original

Good measurements, and a question that decides whether these two are the same fix or a stack:

The head this PR carries now is not the record-count-only patch you built on — it also serves dword 3 from the title's own descriptor words (desc[3], next to desc[2] for the count; buffer_words in victory-gpu/src/descriptor/host.rs). On the shader-pack measurement that took the whole class from 37 programs failing to 0 (14,205 → 14,240 vertex/pixel). Your numbers are on the earlier head, where dword 3 was still zero, so R8_UINT decoding as 127 and R32_UINT as 0 is exactly what I would expect there.

So, before either of us duplicates the other: could you run the same 12-rewrite, 24-field test against the current head (16a3994)? Two outcomes, and both are useful:

  • 24/24 already — then dword 3 verbatim is enough for a typed SRV/UAV, and your f79c97a would be the part that matters when the descriptor words are not available (a view the host rebuilt itself, or a format it had to map). That is a real case and would be a separate, well-scoped patch.
  • still short — then copying the guest's dword 3 is not what the shader expects for those formats, and your construction from the view format (46 mappings checked against PAL's GFX10.3 table) is the correct one; I would fold it into this PR with your authorship and the measurement, and keep the desc[2]/desc[3] supply for the fields it does cover.

Your SRV padding trick (0x0007f000 so an accidental reuse is visible) is the part I would keep regardless — it is what makes the test able to tell "read the wrong descriptor" from "decoded the right one wrongly".

**@⁠Calvix2k** on GitHub · 2026-11-25 14:07 UTC · [original](https://github.com/Marvisak/VIctory/pull/2363#issuecomment-7164785320) Good measurements, and a question that decides whether these two are the same fix or a stack: The head this PR carries now is **not** the record-count-only patch you built on — it also serves **dword 3 from the title's own descriptor words** (`desc[3]`, next to `desc[2]` for the count; `buffer_words` in `victory-gpu/src/descriptor/host.rs`). On the shader-pack measurement that took the whole class from 37 programs failing to 0 (14,205 → 14,240 vertex/pixel). Your numbers are on the earlier head, where dword 3 was still zero, so `R8_UINT` decoding as 127 and `R32_UINT` as 0 is exactly what I would expect there. So, before either of us duplicates the other: could you run the same 12-rewrite, 24-field test against the **current head** (`16a3994`)? Two outcomes, and both are useful: - **24/24 already** — then dword 3 verbatim is enough for a typed SRV/UAV, and your `f79c97a` would be the part that matters when the descriptor words are *not* available (a view the host rebuilt itself, or a format it had to map). That is a real case and would be a separate, well-scoped patch. - **still short** — then copying the guest's dword 3 is not what the shader expects for those formats, and your construction from the view format (46 mappings checked against PAL's GFX10.3 table) is the correct one; I would fold it into this PR with your authorship and the measurement, and keep the `desc[2]`/`desc[3]` supply for the fields it does cover. Your SRV padding trick (`0x0007f000` so an accidental reuse is visible) is the part I would keep regardless — it is what makes the test able to tell "read the wrong descriptor" from "decoded the right one wrongly".
Author
Owner

@⁠Marvisak on GitHub · 2026-11-25 14:47 UTC · original · edited 2026-11-25 22:22 UTC

Automated triage for the maintainers.

Needs rebase. This PR no longer merges cleanly into main (conflict in crates/victory-gpu/src/descriptor/host.rs). It will be reviewed again once it is rebased.

From the earlier needs-work note, still open: build dword 2 from the view's NumElements and dword 3's FORMAT from the view format (as in the linked 6a83efe/f79c97a), instead of copying desc[2]/desc[3], and add a test that checks the values.


Generated by Claude Code

**@⁠Marvisak** on GitHub · 2026-11-25 14:47 UTC · [original](https://github.com/Marvisak/VIctory/pull/2363#issuecomment-7165820783) · edited 2026-11-25 22:22 UTC <!-- victory-triage v1 head=6b89b197ea66aaabef30cff12f600d0b0c8509db verdict=needs-rebase at=2026-11-25T22:30:30Z --> Automated triage for the maintainers. **Needs rebase.** This PR no longer merges cleanly into `main` (conflict in `crates/victory-gpu/src/descriptor/host.rs`). It will be reviewed again once it is rebased. From the earlier needs-work note, still open: build dword 2 from the view's `NumElements` and dword 3's FORMAT from the view format (as in the linked `6a83efe`/`f79c97a`), instead of copying `desc[2]`/`desc[3]`, and add a test that checks the values. --- _Generated by [Claude Code](https://claude.ai/code)_
Author
Owner

@⁠Capi360 on GitHub · 2026-11-25 15:14 UTC · original

Offline RTX 3060 Ti follow-up (NVIDIA 616.56, Windows 11 build 26200). I integrated the corrected count and format encoding linked in this thread, preserving tagged address entries from #2091. This tests the combined code through ebaee6d, rather than the original PR's field extraction.

Two pixel shaders with the descriptor-as-data refusal in the preceding run both translated on the corrected integration. The descriptor suite passed 17 checks, and the separate record-count readback test, three memory tests, and seven Wave32 tests also passed.

The later captures remain black or gray. The run recorded 0.92 FPS on nine intervals with more than 200 draws/frame and ended at the memory guard. AI-assisted integration and test. Code-only branch: https://github.com/Capi360/VIctory/tree/codex/rtx-3060-ti-descriptor-data

**@⁠Capi360** on GitHub · 2026-11-25 15:14 UTC · [original](https://github.com/Marvisak/VIctory/pull/2363#issuecomment-7166522619) Offline RTX 3060 Ti follow-up (NVIDIA 616.56, Windows 11 build 26200). I integrated the corrected count and format encoding linked in this thread, preserving tagged address entries from #2091. This tests the combined code through `ebaee6d`, rather than the original PR's field extraction. Two pixel shaders with the descriptor-as-data refusal in the preceding run both translated on the corrected integration. The descriptor suite passed 17 checks, and the separate record-count readback test, three memory tests, and seven Wave32 tests also passed. The later captures remain black or gray. The run recorded 0.92 FPS on nine intervals with more than 200 draws/frame and ended at the memory guard. AI-assisted integration and test. Code-only branch: https://github.com/Capi360/VIctory/tree/codex/rtx-3060-ti-descriptor-data
Author
Owner

@⁠Calvix2k on GitHub · 2026-11-25 16:13 UTC · original

Rebased onto main 67e8ae1, which independently widened the view-address table to 16 bytes a slot for texture size fields (texture_words). The two changes now share it: write_address keeps the texture branch and fills a buffer view's dwords 2-3 with the title's record count and format/type; view_addresses reads words 0-3 for both and keeps only 4-7 refused, by name.

Also extended the existing test: title_memory_is_read_and_written_at_computed_addresses now loads a buffer descriptor's dwords 2-3 (s_load ... 0x28) and checks they come back as the values in the host's table. It builds/lowers here; the GPU dispatch cases need SM 6.6 and run in CI (this harness reaches SM 6.5).

cargo check --all-targets and clippy -D warnings clean for victory-gpu and victory-shader.

**@⁠Calvix2k** on GitHub · 2026-11-25 16:13 UTC · [original](https://github.com/Marvisak/VIctory/pull/2363#issuecomment-7167702818) Rebased onto `main 67e8ae1`, which independently widened the view-address table to 16 bytes a slot for **texture** size fields (`texture_words`). The two changes now share it: `write_address` keeps the texture branch and fills a buffer view's dwords 2-3 with the title's record count and format/type; `view_addresses` reads words 0-3 for both and keeps only 4-7 refused, by name. Also extended the existing test: `title_memory_is_read_and_written_at_computed_addresses` now loads a buffer descriptor's dwords 2-3 (`s_load ... 0x28`) and checks they come back as the values in the host's table. It builds/lowers here; the GPU dispatch cases need SM 6.6 and run in CI (this harness reaches SM 6.5). `cargo check --all-targets` and clippy `-D warnings` clean for `victory-gpu` and `victory-shader`.
Author
Owner

@⁠Calvix2k on GitHub · 2026-11-25 16:28 UTC · original

A note on the timeline: the close at 16:09 was mine by accident — a script at the start of the rebase pushed the branch at main's commit for a moment (the rebase had stopped on a conflict), which made the PR empty and closed it. The branch is back on the real commit (6b89b19, rebased) and the PR is reopened; nothing was force-closed deliberately.

**@⁠Calvix2k** on GitHub · 2026-11-25 16:28 UTC · [original](https://github.com/Marvisak/VIctory/pull/2363#issuecomment-7168048256) A note on the timeline: the close at 16:09 was mine by accident — a script at the start of the rebase pushed the branch at `main`'s commit for a moment (the rebase had stopped on a conflict), which made the PR empty and closed it. The branch is back on the real commit (`6b89b19`, rebased) and the PR is reopened; nothing was force-closed deliberately.
Author
Owner

@⁠Calvix2k on GitHub · 2026-11-25 16:39 UTC · original

Thanks — that is exactly the pair the fix is for: the two PS_DeferredTextured programs that asked a descriptor for its record count and format now translate. One thing to note for a rerun: the PR has been rebased onto main 67e8ae1 (6b89b19), where main had independently widened the same table to 16 bytes a slot for texture size fields — the buffer dwords 2-3 now sit beside texture_words, and the test loads them. So 6b89b19 (not ebaee6d) is the head to re-test.

The black/gray captures and 0.92 FPS are the wider emulator state, not this change; the useful part of your run is that the two refusal programs went through.

**@⁠Calvix2k** on GitHub · 2026-11-25 16:39 UTC · [original](https://github.com/Marvisak/VIctory/pull/2363#issuecomment-7168321218) Thanks — that is exactly the pair the fix is for: the two `PS_DeferredTextured` programs that asked a descriptor for its record count and format now translate. One thing to note for a rerun: the PR has been rebased onto `main 67e8ae1` (`6b89b19`), where `main` had independently widened the same table to 16 bytes a slot for **texture** size fields — the buffer dwords 2-3 now sit beside `texture_words`, and the test loads them. So `6b89b19` (not `ebaee6d`) is the head to re-test. The black/gray captures and 0.92 FPS are the wider emulator state, not this change; the useful part of your run is that the two refusal programs went through.
Author
Owner

@⁠steven-seagull27 on GitHub · 2026-11-26 01:25 UTC · original

@⁠Calvix2k I ran the 12-rewrite test you asked for on both 16a3994 and your rebased head 6b89b19. Each adapter produced the same counts below. The shader reads one typed SRV and one typed UAV after each rewrite through the production guest view creation and descriptor-table paths.

Production revision Correct byte addresses Correct record counts Correct FORMAT fields
Requested 16a3994 24/24 0/24 0/24
Rebased 6b89b19 24/24 0/24 0/24
6b89b19 with the count and FORMAT patches, regression tip 85936a8 24/24 24/24 24/24
Same corrected code integrated with main 63bcca4, tip baeeef9 24/24 24/24 24/24

On both unpatched heads the first R8_UINT SRV returned (3, 5768, 127) for (byte offset, count, FORMAT), expected (3, 5, 5). The 5768 is the API's default component mapping (0x1688), and 127 comes from the deliberate 0x0007f000 padding sentinel. The neighboring R32_UINT UAV returned (28, 7, 0), expected (28, 9, 20). Seven is its first element. For these API-created views the raw desc[2] and desc[3] are the wrong fields to publish as console metadata. The shader-pack translation count and these runtime value checks cover different questions.

I kept your texture-size path and the regression’s padding sentinel. These three commits on your current PR head can fast-forward your existing branch.

git fetch https://github.com/steven-seagull27/VIctory.git refs/heads/codex/pr2363-fields-rebased
git merge --ff-only 85936a89fa6eeffbbb5f6eb233a9683b794c095c
$env:VICTORY_D3D12_WARP = '0'
cargo test -p victory-gpu --all-features --lib --locked adjacent_buffer_descriptors_report_their_fields_after_a_rewrite -- --nocapture --test-threads=1
$env:VICTORY_D3D12_WARP = '1'
cargo test -p victory-gpu --all-features --lib --locked adjacent_buffer_descriptors_report_their_fields_after_a_rewrite -- --nocapture --test-threads=1

I also pushed a tested merge with main. To take that integration directly, fetch refs/heads/codex/pr2363-fields-main-1126 from the same fork and fast-forward to baeeef910773216c49f6bd63bcd677215d65d30c. It keeps main’s dynamic address slots and uses the newer shader test host constructor.

RTX 5080 driver 621.40 and Windows built-in WARP 10.0.26100.10068, separate processes with the D3D12 debug layer. The texture-size regression passed on both. On the direct fixed branch, the wider descriptor/count selection passed 24/24 on WARP and 23/24 on RTX. The capped-heap assertion in dynamic_slots_are_held_until_released also failed on stock 6b89b19. Strict Clippy passed for both shader and GPU crates on the direct fixed branch. Synthetic readbacks, AI-assisted with Codex.

**@⁠steven-seagull27** on GitHub · 2026-11-26 01:25 UTC · [original](https://github.com/Marvisak/VIctory/pull/2363#issuecomment-7179757790) @⁠Calvix2k I ran the 12-rewrite test you asked for on both `16a3994` and your rebased head `6b89b19`. Each adapter produced the same counts below. The shader reads one typed SRV and one typed UAV after each rewrite through the production guest view creation and descriptor-table paths. | Production revision | Correct byte addresses | Correct record counts | Correct FORMAT fields | |---|---:|---:|---:| | Requested `16a3994` | 24/24 | 0/24 | 0/24 | | Rebased `6b89b19` | 24/24 | 0/24 | 0/24 | | `6b89b19` with the count and FORMAT patches, regression tip `85936a8` | 24/24 | 24/24 | 24/24 | | Same corrected code integrated with main `63bcca4`, tip `baeeef9` | 24/24 | 24/24 | 24/24 | On both unpatched heads the first R8_UINT SRV returned `(3, 5768, 127)` for `(byte offset, count, FORMAT)`, expected `(3, 5, 5)`. The 5768 is the API's default component mapping (`0x1688`), and 127 comes from the deliberate `0x0007f000` padding sentinel. The neighboring R32_UINT UAV returned `(28, 7, 0)`, expected `(28, 9, 20)`. Seven is its first element. For these API-created views the raw `desc[2]` and `desc[3]` are the wrong fields to publish as console metadata. The shader-pack translation count and these runtime value checks cover different questions. I kept your texture-size path and the regression’s padding sentinel. These [three commits on your current PR head](https://github.com/steven-seagull27/VIctory/compare/6b89b197ea66aaabef30cff12f600d0b0c8509db...85936a89fa6eeffbbb5f6eb233a9683b794c095c) can fast-forward your existing branch. ```powershell git fetch https://github.com/steven-seagull27/VIctory.git refs/heads/codex/pr2363-fields-rebased git merge --ff-only 85936a89fa6eeffbbb5f6eb233a9683b794c095c $env:VICTORY_D3D12_WARP = '0' cargo test -p victory-gpu --all-features --lib --locked adjacent_buffer_descriptors_report_their_fields_after_a_rewrite -- --nocapture --test-threads=1 $env:VICTORY_D3D12_WARP = '1' cargo test -p victory-gpu --all-features --lib --locked adjacent_buffer_descriptors_report_their_fields_after_a_rewrite -- --nocapture --test-threads=1 ``` I also pushed a [tested merge with main](https://github.com/steven-seagull27/VIctory/commit/baeeef910773216c49f6bd63bcd677215d65d30c). To take that integration directly, fetch `refs/heads/codex/pr2363-fields-main-1126` from the same fork and fast-forward to `baeeef910773216c49f6bd63bcd677215d65d30c`. It keeps main’s dynamic address slots and uses the newer shader test host constructor. RTX 5080 driver 621.40 and Windows built-in WARP 10.0.26100.10068, separate processes with the D3D12 debug layer. The texture-size regression passed on both. On the direct fixed branch, the wider descriptor/count selection passed 24/24 on WARP and 23/24 on RTX. The capped-heap assertion in `dynamic_slots_are_held_until_released` also failed on stock `6b89b19`. Strict Clippy passed for both shader and GPU crates on the direct fixed branch. Synthetic readbacks, AI-assisted with Codex.
Author
Owner

@⁠zed6000 on GitHub · 2026-11-26 04:23 UTC · original

Measured offline on the title's shaders (the method in #1247), head 6b89b19. It no longer merges cleanly onto main 63bcca4, but the only conflict is the doc comment above the slot-words writer in crates/victory-gpu/src/descriptor/host.rs: main added "(the caller keeps index below [HostHeap::address_slots])" and this PR describes dwords 2 and 3. Keeping both sentences resolves it.

On the stack from #1247 (#1924 port + #2978 + #385 + #2999 + #1737 + #3016 on 63bcca4), this adds +1, 0 lost: the last emit: a descriptor read only as data program, giving 26,012 of 26,084 validated. cargo test -p victory-shader --lib passes 334/0 and cargo test -p victory-gpu --lib 231/0 on that stack (RX 7900 XTX). What's left after it: the 71 mesh programs over the validator's output size and 1 barycentrics read directly. Offline counts only; no program names or data.

**@⁠zed6000** on GitHub · 2026-11-26 04:23 UTC · [original](https://github.com/Marvisak/VIctory/pull/2363#issuecomment-7182548096) Measured offline on the title's shaders (the method in #1247), head `6b89b19`. It no longer merges cleanly onto `main` `63bcca4`, but the only conflict is the doc comment above the slot-words writer in `crates/victory-gpu/src/descriptor/host.rs`: `main` added "(the caller keeps `index` below [`HostHeap::address_slots`])" and this PR describes dwords 2 and 3. Keeping both sentences resolves it. On the stack from #1247 (#1924 port + #2978 + #385 + #2999 + #1737 + #3016 on `63bcca4`), this adds **+1, 0 lost**: the last `emit: a descriptor read only as data` program, giving **26,012 of 26,084** validated. `cargo test -p victory-shader --lib` passes 334/0 and `cargo test -p victory-gpu --lib` 231/0 on that stack (RX 7900 XTX). What's left after it: the 71 mesh programs over the validator's output size and 1 `barycentrics read directly`. Offline counts only; no program names or data.
Author
Owner

@⁠r4tedx on GitHub · 2026-11-26 07:07 UTC · original

Thanks for the rebase. 6b89b197 is on 67e8ae1 and still conflicts with current main (842b0cb), in one place only: the doc comment of write_address, which #1906 (2bba7921, view addresses for dynamic slots) reworded. Merging both wordings is enough.

The head still serves a buffer's dwords 2 and 3 from the API view description (desc[2], desc[3]), so steven-seagull27's fixes are still needed. The table-entry test from my last comment, applied to 6b89b197 merged onto main (WARP, CPU only), fails as before:

typed SRV: left: [4104, 1, 5768, 85]   right: [4104, 1, 37, 81920]

Dword 2 is the component mapping and dword 3 the description's padding word. The right values are 37 records and format 20 (32_UINT) at bits 12-18. With steven-seagull27's 6a83efe (record count) and f79c97a (GFX10 format), it passes.

I put this PR's head onto main together with those commits, each under its own author:

  • r4tedx/VIctory shader/2363-with-fixes-842b (4918233f), on main 842b0cb:
    • your 6b89b197, rebased, with the doc comment merged
    • steven-seagull27's three commits (record count, GFX10 format, GPU readback). The readback test now makes its Host with Host::from_device, because main's #244 made Host's fields private.
    • the table-entry test, and a note in the module docs that names the new fields

Census (main 842b0cb, 64-lane target): 24,850 → 24,851 validated, 0 lost, 1 compute program gained (a descriptor read only as data; no program is left with that reason). The shader side of the branch above is the same as this PR's, so its census is the same.

Tests on the branch (WARP): victory-shader lib 297 passed, 4 failed, the same 4 that fail on main on this machine's WARP. victory-gpu descriptor tests: 29 passed, 0 failed, including steven-seagull27's tests and the table-entry test. Clippy (victory-shader and victory-gpu, each with and without --features diagnostics, -D warnings): clean. On this PR's head merged onto main, clippy is clean for both crates in both modes.

@⁠Calvix2k, would you take these into the PR? You could reset to the branch above, or cherry-pick steven-seagull27's three commits and keep their authorship. Either way the PR would serve the right values and merge cleanly.

The unit tests are synthetic. Local title data was used offline for the census: a translation of the title's shader pack, with only counts and refusal reasons reported.

AI-assisted

**@⁠r4tedx** on GitHub · 2026-11-26 07:07 UTC · [original](https://github.com/Marvisak/VIctory/pull/2363#issuecomment-7185119669) Thanks for the rebase. `6b89b197` is on `67e8ae1` and still conflicts with current `main` (`842b0cb`), in one place only: the doc comment of `write_address`, which #1906 (`2bba7921`, view addresses for dynamic slots) reworded. Merging both wordings is enough. The head still serves a buffer's dwords 2 and 3 from the API view description (`desc[2]`, `desc[3]`), so steven-seagull27's fixes are still needed. The table-entry test from my last comment, applied to `6b89b197` merged onto `main` (WARP, CPU only), fails as before: ``` typed SRV: left: [4104, 1, 5768, 85] right: [4104, 1, 37, 81920] ``` Dword 2 is the component mapping and dword 3 the description's padding word. The right values are 37 records and format 20 (32_UINT) at bits 12-18. With steven-seagull27's `6a83efe` (record count) and `f79c97a` (GFX10 format), it passes. I put this PR's head onto `main` together with those commits, each under its own author: - r4tedx/VIctory `shader/2363-with-fixes-842b` (`4918233f`), on `main` `842b0cb`: - your `6b89b197`, rebased, with the doc comment merged - steven-seagull27's three commits (record count, GFX10 format, GPU readback). The readback test now makes its `Host` with `Host::from_device`, because `main`'s #244 made `Host`'s fields private. - the table-entry test, and a note in the module docs that names the new fields **Census** (`main` `842b0cb`, 64-lane target): 24,850 → 24,851 validated, 0 lost, 1 compute program gained (`a descriptor read only as data`; no program is left with that reason). The shader side of the branch above is the same as this PR's, so its census is the same. Tests on the branch (WARP): `victory-shader` lib 297 passed, 4 failed, the same 4 that fail on `main` on this machine's WARP. `victory-gpu` `descriptor` tests: 29 passed, 0 failed, including steven-seagull27's tests and the table-entry test. Clippy (`victory-shader` and `victory-gpu`, each with and without `--features diagnostics`, `-D warnings`): clean. On this PR's head merged onto `main`, clippy is clean for both crates in both modes. @⁠Calvix2k, would you take these into the PR? You could reset to the branch above, or cherry-pick steven-seagull27's three commits and keep their authorship. Either way the PR would serve the right values and merge cleanly. The unit tests are synthetic. Local title data was used offline for the census: a translation of the title's shader pack, with only counts and refusal reasons reported. AI-assisted
Author
Owner

@⁠Calvix2k on GitHub · 2026-11-26 13:53 UTC · original

Rebased. Only the doc comment conflicted; ours is kept because it documents the record-count and format dwords this PR writes.

**@⁠Calvix2k** on GitHub · 2026-11-26 13:53 UTC · [original](https://github.com/Marvisak/VIctory/pull/2363#issuecomment-7193975846) Rebased. Only the doc comment conflicted; ours is kept because it documents the record-count and format dwords this PR writes.
github-bot force-pushed github-bot/gh-2363 from 6b89b197ea to 77d9aab26e 2026-11-26 13:59:38 +00:00 Compare
Author
Owner

@⁠DrDarkDK on GitHub · 2026-11-25 11:57 UTC · original · requested changes

At 16a3994, I tested write_address with a placed structured buffer SRV and UAV, each with FirstElement = 5, NumElements = 37, and a 12-byte stride. Both entries published the correct byte address, but their shader-visible record counts differed:

View Expected dword 2 Actual dword 2
SRV 37 5768 (Shader4ComponentMapping)
UAV 37 5 (low dword of FirstElement)

buffer_words() returns the API view description. In that layout, words[2] isn’t the record count and words[3] isn’t the console format/type word. Could the table writer decode NumElements from the SRV/UAV descriptions and handle console format/type encoding separately?

Synthetic CPU-side test only. No game data used.

AI-assisted with Codex.

**@⁠DrDarkDK** on GitHub · 2026-11-25 11:57 UTC · [original](https://github.com/Marvisak/VIctory/pull/2363#pullrequestreview-6057170248) · **requested changes** At `16a3994`, I tested `write_address` with a placed structured buffer SRV and UAV, each with `FirstElement = 5`, `NumElements = 37`, and a 12-byte stride. Both entries published the correct byte address, but their shader-visible record counts differed: | View | Expected dword 2 | Actual dword 2 | |---|---:|---:| | SRV | 37 | 5768 (`Shader4ComponentMapping`) | | UAV | 37 | 5 (low dword of `FirstElement`) | `buffer_words()` returns the API view description. In that layout, `words[2]` isn’t the record count and `words[3]` isn’t the console format/type word. Could the table writer decode `NumElements` from the SRV/UAV descriptions and handle console format/type encoding separately? Synthetic CPU-side test only. No game data used. *AI-assisted with Codex.*
Author
Owner

@⁠catminou4 on GitHub · 2026-11-25 12:35 UTC · original · reviewed

Descriptor dwords read as data — view-address table widened to 16 bytes per slot (record count dword 2, format/type dword 3). Static review only: victory-gpu/victory-hle are Windows-only (D3D12/windows-sys); not compiled or tested on this macOS arm64 host. rustc 1.98.1. Mixed gpu+shader; the shader consumer side is in the same PR.

**@⁠catminou4** on GitHub · 2026-11-25 12:35 UTC · [original](https://github.com/Marvisak/VIctory/pull/2363#pullrequestreview-6057696333) · **reviewed** Descriptor dwords read as data — view-address table widened to 16 bytes per slot (record count dword 2, format/type dword 3). Static review only: victory-gpu/victory-hle are Windows-only (D3D12/windows-sys); not compiled or tested on this macOS arm64 host. rustc 1.98.1. Mixed gpu+shader; the shader consumer side is in the same PR.
Author
Owner

@⁠neonbyte1 on GitHub · 2026-11-26 20:18 UTC · original

In-game result on an RTX 5090 (driver 620.73.04), Linux, GE-Proton11-14 Wine with vkd3d-proton, VICTORY_WAVE32_APPROX=1. GTA VI's opening yard.

Base: main plus the wave64 stack #2176 → #2711 → #2925 reconciled with #439, and a few unmerged PRs this setup needs. On that base, 8 compute/pixel programs are still refused in game.

Added: this PR together with #2999 and #1014's permlane change (manual merges onto that stack; neither is based on #2176/#439).

This PR's program now runs in game: ceb5eb68cd99cb07 CS_MinTimestepReduce (shallow-water simulation; "descriptor read only as data" before).

  • Refused shaders in game: 8 → 5, in two runs; the other two fixed by the other PRs.
  • Offline census: the same programs translate, 0 newly refused.
  • Frame time, timed runs: 564 ms of GPU commands and 840 ms per frame with the PRs, against 580 ms and 850 ms without. No cost.
  • Stability: no Xid or device removal.
  • Pictures: frames 1500/1700 match the base apart from this scene's usual lit/hazy variation.

AI-assisted (Claude); measured on my machine, no game data shared.

**@⁠neonbyte1** on GitHub · 2026-11-26 20:18 UTC · [original](https://github.com/Marvisak/VIctory/pull/2363#issuecomment-7202512539) In-game result on an RTX 5090 (driver 620.73.04), Linux, GE-Proton11-14 Wine with vkd3d-proton, `VICTORY_WAVE32_APPROX=1`. GTA VI's opening yard. **Base:** `main` plus the wave64 stack #2176 → #2711 → #2925 reconciled with #439, and a few unmerged PRs this setup needs. On that base, 8 compute/pixel programs are still refused in game. **Added:** this PR together with #2999 and #1014's permlane change (manual merges onto that stack; neither is based on #2176/#439). **This PR's program now runs in game:** `ceb5eb68cd99cb07` `CS_MinTimestepReduce` (shallow-water simulation; "descriptor read only as data" before). - **Refused shaders in game:** 8 → 5, in two runs; the other two fixed by the other PRs. - **Offline census:** the same programs translate, 0 newly refused. - **Frame time, timed runs:** 564 ms of GPU commands and 840 ms per frame with the PRs, against 580 ms and 850 ms without. No cost. - **Stability:** no Xid or device removal. - **Pictures:** frames 1500/1700 match the base apart from this scene's usual lit/hazy variation. _AI-assisted (Claude); measured on my machine, no game data shared._
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/2363/head:github-bot/gh-2363'
git switch 'github-bot/gh-2363'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-2363'
git switch 'github-bot/gh-2363'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-2363'
git switch 'github-bot/gh-2363'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-2363'
git switch 'main'
git merge --squash 'github-bot/gh-2363'
git switch 'main'
git merge --ff-only 'github-bot/gh-2363'
git switch 'main'
git merge 'github-bot/gh-2363'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No reviewers
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/Marvisak--VIctory!2363
No description provided.