Shader command issue #1

Closed
opened 2026-11-25 22:39:13 +00:00 by Ethan-Hill · 9 comments
Ethan-Hill commented 2026-11-25 22:39:13 +00:00 (Migrated from github.com)
Contributor

Imported from avatarmanz/VIctory-7900XTX. Originally posted by Ethan-Hill on 2026-11-25T22:39:13Z.


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?

<!-- greyfinch-sync:avatarmanz/VIctory-7900XTX:issue:6615204923 --> Imported from [avatarmanz/VIctory-7900XTX](https://github.com/avatarmanz/VIctory-7900XTX/issues/1). Originally posted by [Ethan-Hill](https://github.com/Ethan-Hill) on 2026-11-25T22:39:13Z. --- ``` 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?
FeronFae commented 2026-11-25 22:40:27 +00:00 (Migrated from github.com)
Author
Contributor

Imported from avatarmanz/VIctory-7900XTX. Originally posted by FeronFae on 2026-11-25T22:40:27Z.


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 :)

<!-- greyfinch-sync:avatarmanz/VIctory-7900XTX:comment:7176652637 --> Imported from [avatarmanz/VIctory-7900XTX](https://github.com/avatarmanz/VIctory-7900XTX/issues/1#issuecomment-7176652637). Originally posted by [FeronFae](https://github.com/FeronFae) on 2026-11-25T22:40:27Z. --- 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 :)
Ethan-Hill commented 2026-11-25 22:45:56 +00:00 (Migrated from github.com)
Author
Contributor

Imported from avatarmanz/VIctory-7900XTX. Originally posted by Ethan-Hill on 2026-11-25T22:45:56Z.


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

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

<!-- greyfinch-sync:avatarmanz/VIctory-7900XTX:comment:7176760998 --> Imported from [avatarmanz/VIctory-7900XTX](https://github.com/avatarmanz/VIctory-7900XTX/issues/1#issuecomment-7176760998). Originally posted by [Ethan-Hill](https://github.com/Ethan-Hill) on 2026-11-25T22:45:56Z. --- [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.
FeronFae commented 2026-11-25 22:55:18 +00:00 (Migrated from github.com)
Author
Contributor

Imported from avatarmanz/VIctory-7900XTX. Originally posted by FeronFae on 2026-11-25T22:55:18Z.


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.

<!-- greyfinch-sync:avatarmanz/VIctory-7900XTX:comment:7176940447 --> Imported from [avatarmanz/VIctory-7900XTX](https://github.com/avatarmanz/VIctory-7900XTX/issues/1#issuecomment-7176940447). Originally posted by [FeronFae](https://github.com/FeronFae) on 2026-11-25T22:55:18Z. --- 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.
Ethan-Hill commented 2026-11-25 22:59:57 +00:00 (Migrated from github.com)
Author
Contributor

Imported from avatarmanz/VIctory-7900XTX. Originally posted by Ethan-Hill on 2026-11-25T22:59:57Z.


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

<!-- greyfinch-sync:avatarmanz/VIctory-7900XTX:comment:7177027781 --> Imported from [avatarmanz/VIctory-7900XTX](https://github.com/avatarmanz/VIctory-7900XTX/issues/1#issuecomment-7177027781). Originally posted by [Ethan-Hill](https://github.com/Ethan-Hill) on 2026-11-25T22:59:57Z. --- All good, will wait for updates. Thanks for the reply
zaginiony770 commented 2026-11-25 23:18:27 +00:00 (Migrated from github.com)
Author
Contributor

Imported from avatarmanz/VIctory-7900XTX. Originally posted by zaginiony770 on 2026-11-25T23:18:27Z.


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
<!-- greyfinch-sync:avatarmanz/VIctory-7900XTX:comment:7177387211 --> Imported from [avatarmanz/VIctory-7900XTX](https://github.com/avatarmanz/VIctory-7900XTX/issues/1#issuecomment-7177387211). Originally posted by [zaginiony770](https://github.com/zaginiony770) on 2026-11-25T23:18:27Z. --- 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 ```
Adika713 commented 2026-11-25 23:31:38 +00:00 (Migrated from github.com)
Author
Contributor

Imported from avatarmanz/VIctory-7900XTX. Originally posted by Adika713 on 2026-11-25T23:31:38Z.


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.

<!-- greyfinch-sync:avatarmanz/VIctory-7900XTX:comment:7177684983 --> Imported from [avatarmanz/VIctory-7900XTX](https://github.com/avatarmanz/VIctory-7900XTX/issues/1#issuecomment-7177684983). Originally posted by [Adika713](https://github.com/Adika713) on 2026-11-25T23:31:38Z. --- 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 commented 2026-11-25 23:35:36 +00:00 (Migrated from github.com)
Author
Contributor

Imported from avatarmanz/VIctory-7900XTX. Originally posted by Adika713 on 2026-11-25T23:35:36Z.


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.

<!-- greyfinch-sync:avatarmanz/VIctory-7900XTX:comment:7177778061 --> Imported from [avatarmanz/VIctory-7900XTX](https://github.com/avatarmanz/VIctory-7900XTX/issues/1#issuecomment-7177778061). Originally posted by [Adika713](https://github.com/Adika713) on 2026-11-25T23:35:36Z. --- 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.
lorenzopincinato commented 2026-11-26 03:00:40 +00:00 (Migrated from github.com)
Author
Contributor

Imported from avatarmanz/VIctory-7900XTX. Originally posted by lorenzopincinato on 2026-11-26T03:00:40Z.


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.

<!-- greyfinch-sync:avatarmanz/VIctory-7900XTX:comment:7181314758 --> Imported from [avatarmanz/VIctory-7900XTX](https://github.com/avatarmanz/VIctory-7900XTX/issues/1#issuecomment-7181314758). Originally posted by [lorenzopincinato](https://github.com/lorenzopincinato) on 2026-11-26T03:00:40Z. --- 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.
avatarmanz commented 2026-11-26 07:31:55 +00:00 (Migrated from github.com)
Author
Contributor

Imported from avatarmanz/VIctory-7900XTX. Originally posted by avatarmanz on 2026-11-26T07:31:55Z.


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

<!-- greyfinch-sync:avatarmanz/VIctory-7900XTX:comment:7185557721 --> Imported from [avatarmanz/VIctory-7900XTX](https://github.com/avatarmanz/VIctory-7900XTX/issues/1#issuecomment-7185557721). Originally posted by [avatarmanz](https://github.com/avatarmanz) on 2026-11-26T07:31:55Z. --- Fixed on main by 190a6869: every shader the title uses translates now; the 195 left are unused containers without a program.
Sign in to join this conversation.
No labels
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.

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