Shader command issue #1

Closed
opened 2026-11-26 03:31:08 +00:00 by github-bot · 9 comments
Owner

@⁠Ethan-Hill on GitHub · 2026-11-25 22:39 UTC · original

25689 shaders in the cache, 200 do not translate, 154 s
    195  converter shader.dxil v1: GFX10 code at 0x0: a container without a vertex, pixel, compute or mesh program is not supported  (e.g. 8cf49c6770ae0810)
      1  converter shader.dxil v1: GFX10 code at 0x1d70: a descriptor read only as data is not supported  (e.g. 002e93a6cc2aa355)
      1  converter shader.dxil v1: GFX10 code at 0x1e18: a descriptor read only as data is not supported  (e.g. 0e64f14fae060d04)
      1  converter shader.dxil v1: GFX10 code at 0x1e48: a descriptor read only as data is not supported  (e.g. dbdbf36298727135)
      1  converter shader.dxil v1: GFX10 code at 0x1e70: a descriptor read only as data is not supported  (e.g. 96ccb14ef981fd85)
      1  converter shader.dxil v1: GFX10 code at 0x2070: a descriptor read only as data is not supported  (e.g. 07c93bfb77fecebb)

Any ideas why this is happening on my RX 6750 XT?

**@⁠Ethan-Hill** on GitHub · 2026-11-25 22:39 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/issues/1) ``` 25689 shaders in the cache, 200 do not translate, 154 s 195 converter shader.dxil v1: GFX10 code at 0x0: a container without a vertex, pixel, compute or mesh program is not supported (e.g. 8cf49c6770ae0810) 1 converter shader.dxil v1: GFX10 code at 0x1d70: a descriptor read only as data is not supported (e.g. 002e93a6cc2aa355) 1 converter shader.dxil v1: GFX10 code at 0x1e18: a descriptor read only as data is not supported (e.g. 0e64f14fae060d04) 1 converter shader.dxil v1: GFX10 code at 0x1e48: a descriptor read only as data is not supported (e.g. dbdbf36298727135) 1 converter shader.dxil v1: GFX10 code at 0x1e70: a descriptor read only as data is not supported (e.g. 96ccb14ef981fd85) 1 converter shader.dxil v1: GFX10 code at 0x2070: a descriptor read only as data is not supported (e.g. 07c93bfb77fecebb) ``` Any ideas why this is happening on my RX 6750 XT?
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:31:08 +00:00
Author
Owner

@⁠FeronFae on GitHub · 2026-11-25 22:40 UTC · original · edited 2026-11-25 22:43 UTC

Happening on RX 7900 XT as well, so it seems to be an RDNA 2 & 3 issue. 195 is a better number considering the previous build I used of VIctory would refuse to compile 228 instead, so, I'll take what we have so far — a small improvement is still an improvement. I'll run the app now and see if the precompiled shaders help and if the claim reported on PortWatch of the FPS average holds. I'm not on an RX 7900 XTX, but VIctory never uses 100% of the GPU anyways so that goal should be reproducible for me. I'll report back :)

**@⁠FeronFae** on GitHub · 2026-11-25 22:40 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/issues/1#issuecomment-7176652637) · edited 2026-11-25 22:43 UTC Happening on RX 7900 XT as well, so it seems to be an RDNA 2 & 3 issue. 195 is a better number considering the previous build I used of VIctory would refuse to compile 228 instead, so, I'll take what we have so far — a small improvement is still an improvement. I'll run the app now and see if the precompiled shaders help and if the claim reported on PortWatch of the FPS average holds. I'm not on an RX 7900 XTX, but VIctory never uses 100% of the GPU anyways so that goal should be reproducible for me. I'll report back :)
Author
Owner

@⁠Ethan-Hill on GitHub · 2026-11-25 22:45 UTC · original

2026-11-25T224355.195089Z ERROR vic.txt

Error from running the game anyway and it doing the shaders with the execution.

**@⁠Ethan-Hill** on GitHub · 2026-11-25 22:45 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/issues/1#issuecomment-7176760998) [2026-11-25T224355.195089Z ERROR vic.txt](https://github.com/user-attachments/files/35436289/2026-11-25T224355.195089Z.ERROR.vic.txt) Error from running the game anyway and it doing the shaders with the execution.
Author
Owner

@⁠FeronFae on GitHub · 2026-11-25 22:55 UTC · original

Hm, maybe try running it in -Safe configuration. The optimizations made are specifically for an RX 7900 XTX which is RDNA 3 and not RDNA 2 like your RX 6750 XT. Most shaders in these projects are written in RDNA assembly which targets specific cards, so I'm not sure if that could be causing your GPU to be removed by the DXGI handler.

**@⁠FeronFae** on GitHub · 2026-11-25 22:55 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/issues/1#issuecomment-7176940447) Hm, maybe try running it in `-Safe` configuration. The optimizations made are specifically for an RX 7900 XTX which is RDNA 3 and not RDNA 2 like your RX 6750 XT. Most shaders in these projects are written in RDNA assembly which targets specific cards, so I'm not sure if that could be causing your GPU to be removed by the DXGI handler.
Author
Owner

@⁠Ethan-Hill on GitHub · 2026-11-25 22:59 UTC · original

All good, will wait for updates. Thanks for the reply

**@⁠Ethan-Hill** on GitHub · 2026-11-25 22:59 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/issues/1#issuecomment-7177027781) All good, will wait for updates. Thanks for the reply
Author
Owner

@⁠zaginiony770 on GitHub · 2026-11-25 23:18 UTC · original

Just wanted to mention that the same issue occurs on my RX 7800 XT, although when attempting to launch the game anyway, the game crashes out with a message that says:

memory allocation of 12582912 bytes failed
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
**@⁠zaginiony770** on GitHub · 2026-11-25 23:18 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/issues/1#issuecomment-7177387211) Just wanted to mention that the same issue occurs on my RX 7800 XT, although when attempting to launch the game anyway, the game crashes out with a message that says: ``` memory allocation of 12582912 bytes failed note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace ```
Author
Owner

@⁠Adika713 on GitHub · 2026-11-25 23:31 UTC · original

Source-level triage at 0a43566, using only the repository code:

  • The 195 container without a vertex, pixel, compute or mesh program messages come from crates/victory-shader/src/emit/mod.rs:410-421. Translation only accepts Vs, Ps, Cs, and Ms; the HwStage enum also contains Ls, Hs, Es, and Gs. So that error means the container has no program in the four accepted stages. It is not by itself evidence of an RDNA2 shader-code failure.
  • The five a descriptor read only as data messages come from crates/victory-shader/src/emit/lower.rs:6451, where a descriptor address is used only as data and no host view address can be formed. Setting VICTORY_DESC_WHY=1 prints each offending instruction offset, instruction name, scalar address, and whether the site was lane-copied. Those five diagnostic lines would be enough to compare the pattern without posting game files.
  • -Safe remains the right first workaround on RX 6750 XT because it disables this fork's newer paths, but the two error groups above are translator limitations rather than one proved GPU-specific bug.

If you can attach the DESC-WHY lines for one of the five hashes, or the stage breakdown from victory shader-info for one of the 195 hashes, that should narrow the next change considerably.

AI-assisted: OpenCode, model Big Pickle. No game data.

**@⁠Adika713** on GitHub · 2026-11-25 23:31 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/issues/1#issuecomment-7177684983) Source-level triage at `0a43566`, using only the repository code: - The 195 `container without a vertex, pixel, compute or mesh program` messages come from `crates/victory-shader/src/emit/mod.rs:410-421`. Translation only accepts `Vs`, `Ps`, `Cs`, and `Ms`; the `HwStage` enum also contains `Ls`, `Hs`, `Es`, and `Gs`. So that error means the container has no program in the four accepted stages. It is not by itself evidence of an RDNA2 shader-code failure. - The five `a descriptor read only as data` messages come from `crates/victory-shader/src/emit/lower.rs:6451`, where a descriptor address is used only as data and no host view address can be formed. Setting `VICTORY_DESC_WHY=1` prints each offending instruction offset, instruction name, scalar address, and whether the site was lane-copied. Those five diagnostic lines would be enough to compare the pattern without posting game files. - `-Safe` remains the right first workaround on RX 6750 XT because it disables this fork's newer paths, but the two error groups above are translator limitations rather than one proved GPU-specific bug. If you can attach the `DESC-WHY` lines for one of the five hashes, or the stage breakdown from `victory shader-info` for one of the 195 hashes, that should narrow the next change considerably. AI-assisted: OpenCode, model Big Pickle. No game data.
Author
Owner

@⁠Adika713 on GitHub · 2026-11-25 23:35 UTC · original

Follow-up with the exact stage counts. On 0a43566, victory.exe shader-info F:\retailgame\shaders.rpf F:\retailgame\ttdb found 26,503 containers: Es 195, Gs 195, Vs 2236, Ps 12101, Ms 9282, Cs 2689, with 26,698 decoded programs. The 195 unsupported containers are exactly the Es and Gs set, so the earlier stage-filter explanation is confirmed: those are not VS/PS/CS/MS containers, and this count is not RDNA2-specific.

No game files were posted or committed; the counts were produced locally from a user-supplied copy.

AI-assisted: OpenCode, model Big Pickle.

**@⁠Adika713** on GitHub · 2026-11-25 23:35 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/issues/1#issuecomment-7177778061) Follow-up with the exact stage counts. On `0a43566`, `victory.exe shader-info F:\retailgame\shaders.rpf F:\retailgame\ttdb` found 26,503 containers: `Es 195`, `Gs 195`, `Vs 2236`, `Ps 12101`, `Ms 9282`, `Cs 2689`, with 26,698 decoded programs. The 195 unsupported containers are exactly the `Es` and `Gs` set, so the earlier stage-filter explanation is confirmed: those are not VS/PS/CS/MS containers, and this count is not RDNA2-specific. No game files were posted or committed; the counts were produced locally from a user-supplied copy. AI-assisted: OpenCode, model Big Pickle.
Author
Owner

@⁠lorenzopincinato on GitHub · 2026-11-26 03:00 UTC · original

Same result on NVIDIA: on an RTX 3070, victory shaders at 0a43566 gives 25,715 in the cache and 203 that do not translate, the same 195 "container without a vertex, pixel, compute or mesh program" plus the 5 "descriptor read only as data" (and 3 "lane mask exchanged where not every lane runs").

So this is not specific to RDNA 2 or 3. As far as I can tell, shaders translates on the CPU into the cache and never touches the GPU, so the result is the same on any card. The 195 look like the merged geometry-stage programs that fxceless/victory-fork issue #138 describes. The GPU-removed error in this thread is probably a separate problem.

**@⁠lorenzopincinato** on GitHub · 2026-11-26 03:00 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/issues/1#issuecomment-7181314758) Same result on NVIDIA: on an RTX 3070, `victory shaders` at `0a43566` gives 25,715 in the cache and 203 that do not translate, the same 195 "container without a vertex, pixel, compute or mesh program" plus the 5 "descriptor read only as data" (and 3 "lane mask exchanged where not every lane runs"). So this is not specific to RDNA 2 or 3. As far as I can tell, `shaders` translates on the CPU into the cache and never touches the GPU, so the result is the same on any card. The 195 look like the merged geometry-stage programs that fxceless/victory-fork issue #138 describes. The GPU-removed error in this thread is probably a separate problem.
github-bot 2026-11-26 07:36:21 +00:00
Author
Owner

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

Fixed on main by 190a6869: every shader the title uses translates now; the 195 left are unused containers without a program.

**@⁠avatarmanz** on GitHub · 2026-11-26 07:31 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/issues/1#issuecomment-7185557721) Fixed on main by 190a6869: every shader the title uses translates now; the 195 left are unused containers without a program.
This discussion has been locked. Commenting is limited to contributors.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

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