Shaders: a descriptor only read as data of eight dwords is a measured image #81

Open
github-bot wants to merge 2 commits from github-bot/gh-81 into main AGit
Owner

@⁠undeadhuman37 on GitHub · 2026-11-24 21:19 UTC · original
undeadhuman37:fx/descriptor-data-only → main · +157 −53 · 3 files · 2 commits · open

What

A scalar load of an image descriptor whose dwords the code reads only as numbers (the width and height bits, never sampled) was refused with "a descriptor read only as data", because the view's kind came only from a use. Now the table's range names the view's kind, and an entry in the resource heap that no range names is taken for a 2D image when it is eight dwords (marked shortcut: in the code). The size then comes from getDimensions.

Two pixel programs of the title's first scene were refused for exactly this and now translate.

Tested

  • cargo clippy --workspace --all-targets -- -D warnings, cargo test --workspace (497 passed, 0 failed) and cargo xtask policy pass, on Windows with an RTX 4070 and the host GPU tests enabled.
  • New test a_descriptor_only_read_as_data_gives_its_views_size: a hand-assembled waterfall program that reads a texture's size through s_load_dwordx8 and v_alignbit_b32, with no sampling. It fails with the old refusal without the change.
  • A 4-minute run of the title with this change: the two pixel refusals are gone and there was no device loss. Not tested: a full session, and any other GPU.
  • No game files, data, logs or captures are included.

AI use: an AI tool (Claude Code) wrote this change; a person ran and reviewed the checks.

**@⁠undeadhuman37** on GitHub · 2026-11-24 21:19 UTC · [original](https://github.com/fxceless/victory-fork/pull/81) `undeadhuman37:fx/descriptor-data-only` → `main` · +157 −53 · 3 files · 2 commits · open ## What A scalar load of an image descriptor whose dwords the code reads only as numbers (the width and height bits, never sampled) was refused with "a descriptor read only as data", because the view's kind came only from a use. Now the table's range names the view's kind, and an entry in the resource heap that no range names is taken for a 2D image when it is eight dwords (marked `shortcut:` in the code). The size then comes from `getDimensions`. Two pixel programs of the title's first scene were refused for exactly this and now translate. ## Tested - `cargo clippy --workspace --all-targets -- -D warnings`, `cargo test --workspace` (497 passed, 0 failed) and `cargo xtask policy` pass, on Windows with an RTX 4070 and the host GPU tests enabled. - New test `a_descriptor_only_read_as_data_gives_its_views_size`: a hand-assembled waterfall program that reads a texture's size through `s_load_dwordx8` and `v_alignbit_b32`, with no sampling. It fails with the old refusal without the change. - A 4-minute run of the title with this change: the two pixel refusals are gone and there was no device loss. Not tested: a full session, and any other GPU. - No game files, data, logs or captures are included. AI use: an AI tool (Claude Code) wrote this change; a person ran and reviewed the checks.
The pixel shaders 7d0f14ce44746d7e and 6b6db9f1a526daeb of the world run read
an image descriptor's size bits with no instruction that samples it, so no use
named its kind and the program was refused. Eight dwords are taken for an image
descriptor (2D) and its size comes from getDimensions. The waterfall test runs
the console loop that ends in v_alignbit_b32 of dwords 1 and 2.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
A refused descriptor load is deferred: where nothing needs its dwords the
program translated before. The eight-dword fallback also applied there, adding a
2D heap handle and getDimensions to programs that already worked. It now runs
only after the whole emit has refused with that message, so a program that
translated before comes out as it did.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:35:50 +00:00
Author
Owner

@⁠dkdknight on GitHub · 2026-11-24 21:34 UTC · original

Tested on an RTX 5080 (merged with #71, #77 and #38 on 4e17478): the four pixel programs that 4e17478 refused with a descriptor read only as data translate, and the run had no device removal.

  • 2fd01fca16993001, 6b6db9f1a526daeb, 7d0f14ce44746d7e, e5b2121a02f4f741: shader does not translate on 4e17478, shader translated with this PR, in the same scene (Series X profile, same save, ~2 min standing in the world).
  • Untranslated programs in the run: 11 on 4e17478, 5 with the four PRs (all five compute: v_cvt_f32_f64 ×2, v_permlanex16_b32, a descriptor's address or format read as data, a lane mask exchanged where not every lane runs). The frame numbers for the merged build are on #71.
  • Not checked: whether the surfaces these programs draw look right, frame by frame.

Setup: NVIDIA GeForce RTX 5080 16 GB, driver 621.14, i9-13900KF, Windows 11 26200, release build.

AI use: Claude Code, Claude Opus 5.5 built the merged branch, ran it on the machine above (the person at the machine played) and read the logs.

**@⁠dkdknight** on GitHub · 2026-11-24 21:34 UTC · [original](https://github.com/fxceless/victory-fork/pull/81#issuecomment-7145100818) **Tested on an RTX 5080 (merged with #71, #77 and #38 on `4e17478`): the four pixel programs that `4e17478` refused with *a descriptor read only as data* translate, and the run had no device removal.** - `2fd01fca16993001`, `6b6db9f1a526daeb`, `7d0f14ce44746d7e`, `e5b2121a02f4f741`: `shader does not translate` on `4e17478`, `shader translated` with this PR, in the same scene (Series X profile, same save, ~2 min standing in the world). - Untranslated programs in the run: 11 on `4e17478`, 5 with the four PRs (all five compute: `v_cvt_f32_f64` ×2, `v_permlanex16_b32`, *a descriptor's address or format read as data*, *a lane mask exchanged where not every lane runs*). The frame numbers for the merged build are on #71. - Not checked: whether the surfaces these programs draw look right, frame by frame. Setup: NVIDIA GeForce RTX 5080 16 GB, driver 621.14, i9-13900KF, Windows 11 26200, release build. **AI use:** Claude Code, Claude Opus 5.5 built the merged branch, ran it on the machine above (the person at the machine played) and read the logs.
Author
Owner

@⁠adriaespii on GitHub · 2026-11-24 21:37 UTC · original

Independent test run on commit 6236d57 (AMD RDNA4):

  • Hardware: AMD Radeon RX 9070 (driver 32.0.32015.7029), AMD Ryzen 5 7600, Windows 11 Pro, Rust 1.98.1 (x86_64-pc-windows-msvc)
  • cargo clippy --workspace --all-targets -- -D warnings: 0 warnings
  • cargo test --workspace: 497 passed, 0 failed, 7 ignored (victory-shader: 211 passed, 0 failed, 2 ignored; victory-gpu: 110 passed, 0 failed, 1 ignored)
  • Not tested: retail shader pack / live game run (no game files on this machine)

AI use: Antigravity (Gemini 4 Neon) ran clippy/tests locally and wrote this report.

**@⁠adriaespii** on GitHub · 2026-11-24 21:37 UTC · [original](https://github.com/fxceless/victory-fork/pull/81#issuecomment-7145172346) Independent test run on commit `6236d57` (AMD RDNA4): - **Hardware:** AMD Radeon RX 9070 (driver 32.0.32015.7029), AMD Ryzen 5 7600, Windows 11 Pro, Rust 1.98.1 (`x86_64-pc-windows-msvc`) - `cargo clippy --workspace --all-targets -- -D warnings`: 0 warnings - `cargo test --workspace`: 497 passed, 0 failed, 7 ignored (`victory-shader`: 211 passed, 0 failed, 2 ignored; `victory-gpu`: 110 passed, 0 failed, 1 ignored) - **Not tested:** retail shader pack / live game run (no game files on this machine) *AI use: Antigravity (Gemini 4 Neon) ran clippy/tests locally and wrote this report.*
Author
Owner

@⁠rocobalt1 on GitHub · 2026-11-24 21:42 UTC · original

Offline coverage of this PR on the retail shader pack, measured alone on its base 4e17478.

Method: worktree at 4e17478, cargo build --release -p victory, then victory.exe translate <shaders.rpf> --validate --list --jobs 20 with the same Windows SDK validator, compared program by program by program hash against the same command on 4e17478 alone.

programs validated
4e17478 26 531 25 370
+ this PR 26 531 25 405

+35 gained, 0 lost.

All 35 are puddle detection, and only three distinct programs, repeated across containers:

PS_PuddleDetect_2dd9cfaa   PS_PuddleDetect_799735bb   PS_PuddleDetect_686d08e1

That is exactly the refusal the title reports on my machine: converter shader.dxil v1: GFX10 code at 0x51c4/0x49dc/0x4f8c/0x5204/0x4808/0x4c88: a descriptor read only as data is not supported, whose hashes map to PS_PuddleDetect_2dd9cfaa. Six distinct pixel pipelines are refused on this build, all PS_PuddleDetect, and their draws are dropped.

So this one should be testable as a visual difference (wet ground) rather than a count. Largest clean gain I have measured on this pack after the BVH branch (which was +334), and unlike #52 it takes nothing away.

No game data; counts and program names only.

**@⁠rocobalt1** on GitHub · 2026-11-24 21:42 UTC · [original](https://github.com/fxceless/victory-fork/pull/81#issuecomment-7145273602) Offline coverage of this PR on the retail shader pack, measured alone on its base `4e17478`. **Method:** worktree at `4e17478`, `cargo build --release -p victory`, then `victory.exe translate <shaders.rpf> --validate --list --jobs 20` with the same Windows SDK validator, compared program by program by program hash against the same command on `4e17478` alone. | | programs | validated | |---|---:|---:| | `4e17478` | 26 531 | 25 370 | | **+ this PR** | 26 531 | **25 405** | **+35 gained, 0 lost.** All 35 are puddle detection, and only three distinct programs, repeated across containers: ``` PS_PuddleDetect_2dd9cfaa PS_PuddleDetect_799735bb PS_PuddleDetect_686d08e1 ``` That is exactly the refusal the title reports on my machine: `converter shader.dxil v1: GFX10 code at 0x51c4/0x49dc/0x4f8c/0x5204/0x4808/0x4c88: a descriptor read only as data is not supported`, whose hashes map to `PS_PuddleDetect_2dd9cfaa`. Six distinct pixel pipelines are refused on this build, all `PS_PuddleDetect`, and their draws are dropped. So this one should be testable as a visual difference (wet ground) rather than a count. Largest clean gain I have measured on this pack after the BVH branch (which was +334), and unlike #52 it takes nothing away. No game data; counts and program names only.
Author
Owner

@⁠arminkhaleghirod on GitHub · 2026-11-24 21:42 UTC · original

Merged onto main 90228a7 and ran victory translate --validate over the full title (26,148 programs) on Windows 11 / RTX 4080. Changes against main, by failure reason:

  • a descriptor read only as data: 40 → 5
  • DXIL emitted: 14,168 → 14,203
  • No new failure reason. The 35 newly emitted programs join the existing Pipeline State Validation does not match group, like most programs on main.
**@⁠arminkhaleghirod** on GitHub · 2026-11-24 21:42 UTC · [original](https://github.com/fxceless/victory-fork/pull/81#issuecomment-7145284804) Merged onto main 90228a7 and ran `victory translate --validate` over the full title (26,148 programs) on Windows 11 / RTX 4080. Changes against main, by failure reason: - `a descriptor read only as data`: 40 → 5 - DXIL emitted: 14,168 → 14,203 - No new failure reason. The 35 newly emitted programs join the existing `Pipeline State Validation does not match` group, like most programs on main.
Author
Owner

@⁠oeirughrepuiohg on GitHub · 2026-11-24 22:39 UTC · original

A visual regression with this PR under Linux/Proton: the cell's walls disappear in the first gameplay room. Skipping the two pixel programs it makes translate brings them back.

RTX 4070 Ti 12 GB, NVIDIA 620.70.06 (open modules), Fedora 45; Proton Experimental Wine, vkd3d-proton cae8353e (with a local dxil-spirv fix, see below), DXC 1.9.2609. Diag build of 90228a7 + #20 + VIctory #454, Series X, default loop limit, VICTORY_SKIP_PIPELINES=eeed82b877b44b5f, VK_NV_raw_access_chains disabled.

Three runs, same scene (Lucia at the cell window, then walking into the room):

Run Build Cell walls
A without this PR drawn
B with this PR (6236d57 cherry-picked) missing: open sky and ground show where the walls and bunk-side wall should be, around the window and behind the character
C B's executable and warm cache, plus 6b6db9f1a526daeb,7d0f14ce44746d7e in VICTORY_SKIP_PIPELINES drawn again

So with the two pixel programs translated, their draws (3 and 8 per frame here) cover the room's walls. My guess is the shortcut in the change: an eight-dword entry that no range names is taken for a 2D image, and here it may be another kind of view (a cube, for example), so the programs sample the wrong thing. I have not checked what they bind. One run each, so treat it as a lead. It may not show on Windows: the Windows reports above don't mention missing walls.

Unrelated to the walls, for anyone else on Linux: these runs use a local fix for dxil-spirv's endless recursion in the dominator computation (HansKristian-Work/dxil-spirv#376, since closed by its maintainer with a fix on another branch). Without it, four compute pipelines kill their worker thread under Wine every run and stay "being made".

AI use: Claude Code (Claude Opus 5.5) ran these tests on my machine and drafted this comment.

**@⁠oeirughrepuiohg** on GitHub · 2026-11-24 22:39 UTC · [original](https://github.com/fxceless/victory-fork/pull/81#issuecomment-7146483876) **A visual regression with this PR under Linux/Proton: the cell's walls disappear in the first gameplay room. Skipping the two pixel programs it makes translate brings them back.** RTX 4070 Ti 12 GB, NVIDIA 620.70.06 (open modules), Fedora 45; Proton Experimental Wine, vkd3d-proton `cae8353e` (with a local dxil-spirv fix, see below), DXC 1.9.2609. Diag build of `90228a7` + #20 + VIctory #454, Series X, default loop limit, `VICTORY_SKIP_PIPELINES=eeed82b877b44b5f`, `VK_NV_raw_access_chains` disabled. Three runs, same scene (Lucia at the cell window, then walking into the room): | Run | Build | Cell walls | |---|---|---| | A | without this PR | drawn | | B | with this PR (`6236d57` cherry-picked) | missing: open sky and ground show where the walls and bunk-side wall should be, around the window and behind the character | | C | B's executable and warm cache, plus `6b6db9f1a526daeb,7d0f14ce44746d7e` in `VICTORY_SKIP_PIPELINES` | drawn again | So with the two pixel programs translated, their draws (3 and 8 per frame here) cover the room's walls. My guess is the shortcut in the change: an eight-dword entry that no range names is taken for a 2D image, and here it may be another kind of view (a cube, for example), so the programs sample the wrong thing. I have not checked what they bind. One run each, so treat it as a lead. It may not show on Windows: the Windows reports above don't mention missing walls. Unrelated to the walls, for anyone else on Linux: these runs use a local fix for dxil-spirv's endless recursion in the dominator computation (HansKristian-Work/dxil-spirv#376, since closed by its maintainer with a fix on another branch). Without it, four compute pipelines kill their worker thread under Wine every run and stay "being made". AI use: Claude Code (Claude Opus 5.5) ran these tests on my machine and drafted this comment.
Author
Owner

@⁠oeirughrepuiohg on GitHub · 2026-11-24 23:17 UTC · original

Correction to my comment above: the missing walls are not caused by this PR.

Two later runs that skip both pixel programs (6b6db9f1a526daeb, 7d0f14ce44746d7e) also lost the cell walls in the same scene (they differed from run C only in speed switches: VICTORY_CARD_BUFFERS_MIN_MB=1 in one, VICTORY_WIDE_BACK=1 in the other). So on this setup the walls come and go between runs, and B and C differing was chance. The shirt's printed text disappears in the same runs, so it looks more like the room's assets sometimes not arriving than like a shader translating wrongly.

Sorry for the noise. Nothing here speaks against the change.

AI use: Claude Code (Claude Opus 5.5) ran these tests on my machine and drafted this comment.

**@⁠oeirughrepuiohg** on GitHub · 2026-11-24 23:17 UTC · [original](https://github.com/fxceless/victory-fork/pull/81#issuecomment-7147233410) **Correction to my comment above: the missing walls are not caused by this PR.** Two later runs that skip both pixel programs (`6b6db9f1a526daeb`, `7d0f14ce44746d7e`) also lost the cell walls in the same scene (they differed from run C only in speed switches: `VICTORY_CARD_BUFFERS_MIN_MB=1` in one, `VICTORY_WIDE_BACK=1` in the other). So on this setup the walls come and go between runs, and B and C differing was chance. The shirt's printed text disappears in the same runs, so it looks more like the room's assets sometimes not arriving than like a shader translating wrongly. Sorry for the noise. Nothing here speaks against the change. AI use: Claude Code (Claude Opus 5.5) ran these tests on my machine and drafted this comment.
Author
Owner

@⁠Peppacodes on GitHub · 2026-11-24 23:49 UTC · original

Correction: the window difference in my report above probably isn't caused by this PR, the same conclusion as the correction above mine.

A later run without this PR, on the same machine and scene, came out with the same clear glass and no papers on the wall. That run was the base build plus an unrelated change, with the late-wait switches on. Over five runs these details came and went: without this PR the papers were missing in 2 of 4 runs and the glass was clear in 1 of 4. One run each can't pin them on this PR.

The rest of the report stands: both refusals are gone (8 → 6 refused programs), and the build held 20 minutes with no device loss.

AI-assisted (Claude Code).

**@⁠Peppacodes** on GitHub · 2026-11-24 23:49 UTC · [original](https://github.com/fxceless/victory-fork/pull/81#issuecomment-7147843803) **Correction:** the window difference in my report above probably isn't caused by this PR, the same conclusion as the correction above mine. A later run without this PR, on the same machine and scene, came out with the same clear glass and no papers on the wall. That run was the base build plus an unrelated change, with the late-wait switches on. Over five runs these details came and went: without this PR the papers were missing in 2 of 4 runs and the glass was clear in 1 of 4. One run each can't pin them on this PR. The rest of the report stands: both refusals are gone (8 → 6 refused programs), and the build held 20 minutes with no device loss. AI-assisted (Claude Code).
Author
Owner

@⁠Peppacodes on GitHub · 2026-11-24 23:22 UTC · original · edited 2026-11-25 00:04 UTC

Tested on an RTX 5080 (Windows 11, driver 621.24, 32.0.16.2124, Ryzen 7 5700X3D). Build: 4e17478 + this PR, plus #28's watchdog hook and bigger pipeline-worker stacks. Settings: VICTORY_NO_WATCHDOG=1, no relay, no input.

  • The two refusals are gone. 2fd01fca16993001 and 6b6db9f1a526daeb translate. One is bound in the opening scene. Refused programs in the run went from 8 to 6.
  • Stable. 20 minutes in the opening scene, ended by my own time limit, with no device loss. About 420 ms per frame with the relay off.
  • But the opening window renders differently, at the same point of the same scene. I compared frame 4000 of a run without this change (same build otherwise) and with it:
    • Without: a wire mesh over the window, strong sun glare through it, and papers pinned on the wall to the right of the window.
    • With: the glass is completely clear (no mesh, no glare), the people in the yard are sharp, and the papers on the wall are not drawn.

The two programs this PR fixes were refused before, so their draws didn't run in the run without it. The window and wall difference therefore suggests the change also alters how some other, already-translating program resolves its views. A likely candidate is "the table's range names the view's kind". I haven't traced which program draws the glass or the papers. Is the clear glass what you see on the 4070 too?

AI-assisted (Claude Code). Runs on my own machine with my own copy; no captures attached.

**@⁠Peppacodes** on GitHub · 2026-11-24 23:22 UTC · [original](https://github.com/fxceless/victory-fork/pull/81#issuecomment-7147334372) · edited 2026-11-25 00:04 UTC Tested on an **RTX 5080** (Windows 11, driver 621.24, 32.0.16.2124, Ryzen 7 5700X3D). Build: `4e17478` + this PR, plus #28's watchdog hook and bigger pipeline-worker stacks. Settings: `VICTORY_NO_WATCHDOG=1`, no relay, no input. - **The two refusals are gone.** `2fd01fca16993001` and `6b6db9f1a526daeb` translate. One is bound in the opening scene. Refused programs in the run went from 8 to 6. - **Stable.** 20 minutes in the opening scene, ended by my own time limit, with no device loss. About 420 ms per frame with the relay off. - **But the opening window renders differently, at the same point of the same scene.** I compared frame 4000 of a run without this change (same build otherwise) and with it: - **Without:** a wire mesh over the window, strong sun glare through it, and papers pinned on the wall to the right of the window. - **With:** the glass is completely clear (no mesh, no glare), the people in the yard are sharp, and the papers on the wall are not drawn. The two programs this PR fixes were refused before, so their draws didn't run in the run without it. The window and wall difference therefore suggests the change also alters how some other, already-translating program resolves its views. A likely candidate is "the table's range names the view's kind". I haven't traced which program draws the glass or the papers. Is the clear glass what you see on the 4070 too? AI-assisted (Claude Code). Runs on my own machine with my own copy; no captures attached.
Author
Owner

@⁠ArturoWolff on GitHub · 2026-11-25 04:42 UTC · original · edited 2026-11-25 04:52 UTC

Native Linux, CPU-only A/B on 310c6eb: I matched the four pixel containers from #633 by the same BLAKE3 prefix the runtime logs, then passed the same bytes directly to victory_shader::emit::translate with host max wave set to 32. No game launch, shader cache, #633 patch, or other PR in either arm. For the B arm I integrated 9327f1e, keeping main's VICTORY_DESC_WHY diagnostic inside the PR's refusal branch in descriptor_data (the one merge conflict).

Runtime hash Stock refusal offset (a descriptor read only as data) With #81: emitted container bytes
2fd01fca16993001 0x51c4 68,307
6b6db9f1a526daeb 0x49dc 62,983
7d0f14ce44746d7e 0x5204 69,125
e5b2121a02f4f741 0x4a1c 63,781

The first two hashes were bound in the same frame in our earlier Series X Proton trace. As an unaffected control, the final-composite pixel shader 4f4ec7b16673362f emitted byte-identical output on both builds. Microsoft's Linux dxv (DXC release v1.9.2609) returned Validation succeeded for all four newly emitted containers and the control; a copy with an invalid PSV0 runtime-info size failed with PSV0 part is not well-formed. Native victory-shader --lib: 171 passed, 0 failed, 2 ignored.

This isolates the same four translation gains reported above without the other PRs. Unlike the full-title Windows run on 90228a7, these particular outputs passed this particular validator. Different build, validator and sample: it doesn't invalidate the Windows result or establish host pipeline creation, correct lighting, or visible gameplay. No title data or shader binaries attached.

Pair check (same integration): both frame-2251 pixel shaders were bound with mesh 4f23fd8d99482703. Replayed that exact mesh container: emitted 17,293 bytes and passed dxv. For each pair, all 19 mesh-output vs pixel-input signature entries matched in DXC disassembly (semantic name/index, component mask, register, system value, format; not a comparison of the usage column). This rules out a mismatch in those declared fields, not a bad value at runtime. No PSO result: a separate software-only Proton capability probe timed out before returning a mesh tier; no hardware run or draw.

AI disclosure: Hermes Agent performed the integration, ran the comparisons, and wrote this comment on ArturoWolff’s behalf.

**@⁠ArturoWolff** on GitHub · 2026-11-25 04:42 UTC · [original](https://github.com/fxceless/victory-fork/pull/81#issuecomment-7153084786) · edited 2026-11-25 04:52 UTC Native Linux, CPU-only A/B on `310c6eb`: I matched the four pixel containers from #633 by the same BLAKE3 prefix the runtime logs, then passed the same bytes directly to `victory_shader::emit::translate` with host max wave set to 32. No game launch, shader cache, #633 patch, or other PR in either arm. For the B arm I integrated `9327f1e`, keeping main's `VICTORY_DESC_WHY` diagnostic inside the PR's refusal branch in `descriptor_data` (the one merge conflict). | Runtime hash | Stock refusal offset (`a descriptor read only as data`) | With #81: emitted container bytes | |---|---:|---:| | `2fd01fca16993001` | `0x51c4` | 68,307 | | `6b6db9f1a526daeb` | `0x49dc` | 62,983 | | `7d0f14ce44746d7e` | `0x5204` | 69,125 | | `e5b2121a02f4f741` | `0x4a1c` | 63,781 | The first two hashes were bound in the same frame in our earlier Series X Proton trace. As an unaffected control, the final-composite pixel shader `4f4ec7b16673362f` emitted byte-identical output on both builds. Microsoft's Linux `dxv` (DXC release `v1.9.2609`) returned `Validation succeeded` for all four newly emitted containers and the control; a copy with an invalid PSV0 runtime-info size failed with `PSV0 part is not well-formed`. Native `victory-shader --lib`: 171 passed, 0 failed, 2 ignored. This isolates the same four translation gains reported above without the other PRs. Unlike [the full-title Windows run on `90228a7`](https://git.gtahub.st/github/fxceless--victory-fork/pulls/81), these particular outputs passed this particular validator. Different build, validator and sample: it doesn't invalidate the Windows result or establish host pipeline creation, correct lighting, or visible gameplay. No title data or shader binaries attached. Pair check (same integration): both frame-2251 pixel shaders were bound with mesh `4f23fd8d99482703`. Replayed that exact mesh container: emitted 17,293 bytes and passed `dxv`. For each pair, all 19 mesh-output vs pixel-input signature entries matched in DXC disassembly (semantic name/index, component mask, register, system value, format; not a comparison of the usage column). This rules out a mismatch in those declared fields, not a bad value at runtime. No PSO result: a separate software-only Proton capability probe timed out before returning a mesh tier; no hardware run or draw. AI disclosure: Hermes Agent performed the integration, ran the comparisons, and wrote this comment on ArturoWolff’s behalf.
Author
Owner

@⁠deadkid14 on GitHub · 2026-11-25 06:47 UTC · original

Tested on Linux/Proton (RTX 5070 Ti, NVIDIA 620.73.04, GE-Proton11-14's vkd3d-proton) on top of the fork at c96b4f2, together with the follow-up 5b18c7e from trexies' VIwork (take a measured image only for programs refused otherwise).

  • Against c96b4f2 it conflicts in descriptor_data: the fork now has let Some((at, first)) = use_at else { … }. I adapted it to the shape here, an if let … else that returns (first, src, props, image, uav, used) from both branches, and kept the fork's VICTORY_DESC_WHY print at the refusal.
  • victory-shader tests under Wine: 213 pass, 1 fails (stub_pipeline_is_created, the known Wine digest difference, unrelated).
  • In the world, pixel 6b6db9f1a526daeb now translates and its mesh pipeline is made ([mesh 4f23fd8d99482703, pixel 6b6db9f1a526daeb]). No "a descriptor read only as data" refusal is left in the run, and there was no device removal.
  • The characters' skin-coloured blocks are unchanged, so they come from something else (details in fork issue #6).

AI-assisted: Claude Code ran the builds and tests on my machine, read the logs and wrote this comment; posted at my request.

**@⁠deadkid14** on GitHub · 2026-11-25 06:47 UTC · [original](https://github.com/fxceless/victory-fork/pull/81#issuecomment-7155163719) Tested on Linux/Proton (RTX 5070 Ti, NVIDIA 620.73.04, GE-Proton11-14's vkd3d-proton) on top of the fork at `c96b4f2`, together with the follow-up `5b18c7e` from trexies' `VIwork` (take a measured image only for programs refused otherwise). - Against `c96b4f2` it conflicts in `descriptor_data`: the fork now has `let Some((at, first)) = use_at else { … }`. I adapted it to the shape here, an `if let … else` that returns `(first, src, props, image, uav, used)` from both branches, and kept the fork's `VICTORY_DESC_WHY` print at the refusal. - `victory-shader` tests under Wine: 213 pass, 1 fails (`stub_pipeline_is_created`, the known Wine digest difference, unrelated). - In the world, `pixel 6b6db9f1a526daeb` now translates and its mesh pipeline is made (`[mesh 4f23fd8d99482703, pixel 6b6db9f1a526daeb]`). No "a descriptor read only as data" refusal is left in the run, and there was no device removal. - The characters' skin-coloured blocks are unchanged, so they come from something else (details in fork issue #6). *AI-assisted: Claude Code ran the builds and tests on my machine, read the logs and wrote this comment; posted at my request.*
Author
Owner

@⁠Curry-976 on GitHub · 2026-11-25 07:32 UTC · original

Ported onto current main (8dd30ab), and an in-game A/B: the five pixel programs translate, they light the scene, but in one cutscene shot a face comes out covered in coloured speckles. The speckles go away without this PR.

Port

  • The conflict is only in Lower's descriptor-as-data path. Since this PR's base, main added two things to the else arm: a VICTORY_DESC_WHY diagnostic, and the case for an address taken through view_address (count <= 4). I kept both, ahead of your new 2D fallback, and applied your if let … else restructure, ONLY_DATA/MEASURED, the emit/emit_forms retry in mod.rs and your test unchanged. The diff is the same size as yours (+157 −53). I can paste it here if it would help with a rebase.
  • cargo test -p victory-shader on the port: 215 passed, 0 failed, 3 ignored, including a_descriptor_only_read_as_data_gives_its_views_size.

In game

  • Setup: RTX 4050 Laptop (6 GB, 32-lane), driver 32.0.16.1742, i5-12450HX, 24 GB RAM, Windows 11 26300, Series X profile, release.
  • Trees: 8dd30ab + #36 + #646 + #579, with and without the port. VICTORY_RELAY=2, builder off.
  • With the port, all five refused pixel programs translate: 2fd01fca16993001, 6b6db9f1a526daeb, 7d0f14ce44746d7e, c8df7216c69cecbd and e5b2121a02f4f741. c8df7216 was not in your list.
  • The shot I compared is the cutscene where the curly-haired character faces the woman with her hair up. 6b6db9f1 and 7d0f14ce are bound there. In the run without the port, all five are refused.
With the port Without
curly-haired character's face covered in green, pink, blue and white speckles dark, no speckles
background (sky, structure, lights) lit, sky visible nearly black
hair, jacket, buttons fine fine

So the programs carry real light (the background goes dark without them), but they produce garbage on that face. My guess is the shortcut: in the fallback: the descriptor is taken as a 2D image and measured with getDimensions, so if the title's view is 3D or an array, or is used with sizes other than those of a 2D view, the program works from the wrong extents. I have not checked this.

#203 also gets these programs translated (they were not refused in a #487 run on this card). A face close-up in that run looked clean, but it was a different shot, so it is not a like-for-like comparison.

Not tested

  • The same shot with #203 instead of this PR.
  • Which of 6b6db9f1 and 7d0f14ce causes the speckles.
  • Other GPUs.
  • The full test suite. Only victory-shader's tests were run.

Unrelated to this PR: with the structure builder on, the title crashed during loading at image+0x23cf683 (write to 0) in 4 of 9 runs on this card, with and without this PR.

AI-assisted (Claude Code, Claude Opus 5.5): the port, the runs and the A/B are mine, on my own copy of the title. Hashes and counts from the logs, and observations from screenshots; no game data.

**@⁠Curry-976** on GitHub · 2026-11-25 07:32 UTC · [original](https://github.com/fxceless/victory-fork/pull/81#issuecomment-7155975582) **Ported onto current `main` (`8dd30ab`), and an in-game A/B: the five pixel programs translate, they light the scene, but in one cutscene shot a face comes out covered in coloured speckles. The speckles go away without this PR.** **Port** - The conflict is only in `Lower`'s descriptor-as-data path. Since this PR's base, `main` added two things to the `else` arm: a `VICTORY_DESC_WHY` diagnostic, and the case for an address taken through `view_address` (`count <= 4`). I kept both, ahead of your new 2D fallback, and applied your `if let … else` restructure, `ONLY_DATA`/`MEASURED`, the `emit`/`emit_forms` retry in `mod.rs` and your test unchanged. The diff is the same size as yours (+157 −53). I can paste it here if it would help with a rebase. - `cargo test -p victory-shader` on the port: 215 passed, 0 failed, 3 ignored, including `a_descriptor_only_read_as_data_gives_its_views_size`. **In game** - Setup: RTX 4050 Laptop (6 GB, 32-lane), driver 32.0.16.1742, i5-12450HX, 24 GB RAM, Windows 11 26300, Series X profile, release. - Trees: `8dd30ab` + #36 + #646 + #579, with and without the port. `VICTORY_RELAY=2`, builder off. - With the port, all five refused pixel programs translate: `2fd01fca16993001`, `6b6db9f1a526daeb`, `7d0f14ce44746d7e`, `c8df7216c69cecbd` and `e5b2121a02f4f741`. `c8df7216` was not in your list. - The shot I compared is the cutscene where the curly-haired character faces the woman with her hair up. `6b6db9f1` and `7d0f14ce` are bound there. In the run without the port, all five are refused. | | With the port | Without | |---|---|---| | curly-haired character's face | covered in green, pink, blue and white speckles | dark, no speckles | | background (sky, structure, lights) | lit, sky visible | nearly black | | hair, jacket, buttons | fine | fine | So the programs carry real light (the background goes dark without them), but they produce garbage on that face. My guess is the `shortcut:` in the fallback: the descriptor is taken as a 2D image and measured with `getDimensions`, so if the title's view is 3D or an array, or is used with sizes other than those of a 2D view, the program works from the wrong extents. I have not checked this. #203 also gets these programs translated (they were not refused in a #487 run on this card). A face close-up in that run looked clean, but it was a different shot, so it is not a like-for-like comparison. **Not tested** - The same shot with #203 instead of this PR. - Which of `6b6db9f1` and `7d0f14ce` causes the speckles. - Other GPUs. - The full test suite. Only `victory-shader`'s tests were run. Unrelated to this PR: with the structure builder on, the title crashed during loading at `image+0x23cf683` (write to 0) in 4 of 9 runs on this card, with and without this PR. _AI-assisted (Claude Code, Claude Opus 5.5): the port, the runs and the A/B are mine, on my own copy of the title. Hashes and counts from the logs, and observations from screenshots; no game data._
This pull request has changes conflicting with the target branch.
  • crates/victory-shader/src/emit/lower.rs
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

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

Merge

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