GS_VoxelizeGeneric: 195 geometry shaders fail on a raw user-data address, and the geometry stage is not emitted #659

Closed
opened 2026-11-28 02:57:16 +00:00 by adhd-speed · 4 comments
adhd-speed commented 2026-11-28 02:57:16 +00:00 (Migrated from github.com)
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by adhd-speed on 2026-11-28T02:57:16Z.


GS_VoxelizeGeneric: 195 geometry shaders fail on a raw user-data address, and the geometry stage is not emitted

Correction (2026-11-28): The first version of this issue compared
0xb8 with table_offset_dwords: 184. That was a unit error: 0xb8 is
184 bytes (46 dwords), while 184 dwords is 0x2e0. The programs are
merged ES-GS; the 0xb8 load is user_data 0 (a raw address), and the
table they use is at 0x920 (584 dwords). The fix is PR #716. The
analysis below is the corrected one.

Summary

On the Xbox Series build 1.0.2.1, victory translate --list with
VICTORY_HOST_MAX_WAVE=32 reports 195 failures, all
GS_VoxelizeGeneric geometry shaders, all at the same load:

000030: s_and_b32 s1, s9, 0xff
000038: s_mov_b32 s0, s8
000044: s_load_dword s0, s[0:1], 0xb8

with:

resources: an address in an SGPR that is no root parameter

The address is not a table root. In a merged ES-GS, s8 is user_data 0;
the layout has no user_data 0 parameter, and the only UsedResource table
is at 0x920, read through s16 (user_data 8). The 0xb8 load is a raw
address.

Reproduction

VICTORY_HOST_MAX_WAVE=32 victory.exe translate --list <game folder>

Before the fix the summary is:

195  resources: an address in an SGPR that is no root parameter
 22  emit: no wave32 lowering for this wave64 program
  5  emit: a descriptor read only as data

The 195 are the subject of this issue; the 22 and 5 are separate.

Evidence

Five representative failures:

GS_VoxelizeGeneric_912dfba0_Wrapped  #8cf49c6770ae0810
GS_VoxelizeGeneric_b300ca2e_Wrapped  #d82a0a5a22471c77
GS_VoxelizeGeneric_6be01b34_Wrapped  #3451632de2c1eec7
GS_VoxelizeGeneric_b300ca2e_Wrapped  #ee8224eb303a5c22
GS_VoxelizeGeneric_912dfba0_Wrapped  #88cdcc6833c85c12

The extracted shader 8cf49c6770ae0810 has two loads:

000030: s_and_b32 s1, s9, 0xff
000038: s_mov_b32 s0, s8
000044: s_load_dword s0, s[0:1], 0xb8

000078: s_mov_b32 s17, 0
000084: s_load_dwordx4 s[8:11], s[16:17], 0x920

Its only UsedResource table is:

UsedResource { kind: Cbv, root: Table, table_offset_dwords: 584,
               user_data: 8, slot: 0, ... }

0x920 is 2336 bytes = 584 dwords, exactly the UsedResource offset.
user_data 8 in a merged ES-GS is s16, and the second load uses s16:s17.
So the program is merged. The first load uses s8, which is user_data 0 in
that placement; it is not a table root, and there is no UsedResource at
46 dwords. It is a raw address.

The first version of this issue read 0xb8 as 184 dwords and matched it to
the root parameter at table_offset_dwords: 184. 0xb8 is 184 bytes
(46 dwords); 184 dwords is 0x2e0. The parameter at 184 dwords is not read
by either load.

Root cause

HwStage::user_sgpr correctly gives geometry shaders the eight system SGPRs
first (merged). The tracker then sees the s8 load as an address that traces
to no root parameter and refuses it, because the RAW/MEMORY fallback was
limited to compute programs. The 0x920 load tracks correctly as the table
at user_data 8.

This is not a standalone geometry shader. It is a merged ES-GS whose
user_data 0 is a raw address.

Fix

PR #716:

  • keep the merged +8 placement for Gs;
  • allow the RAW/MEMORY fallback for Gs, as compute already has;
  • leave the 0x920 load as a table; the 0xb8 load becomes MEMORY.

Tests cover the table at s16 / 0x920 / 584 dwords, the raw 0xb8 and the
table 0x920 in one program, and a merged root descriptor's high half at
s17.

Results

  • cargo test -p victory-shader: 296 passed, 0 failed, 5 ignored.
  • translate --list on the full Xbox Series 1.0.2.1 corpus:
    • 0 an address in an SGPR that is no root parameter (was 195);
    • 22 no wave32 lowering for this wave64 program, unchanged;
    • 5 a descriptor read only as data, unchanged.
  • The extracted shader 8cf49c6770ae0810: 1 of 1 tracked, 2 scalar
    accesses, one raw (MEMORY) and one table (0x920).

Scope

translate still lowers only Vs/Ps/Cs/Ms, so the 195 still produce
no host geometry pipelines. The missing Gs emitter is a separate change;
this issue stays open for it.

Environment

  • VIctory-NVIDIA main (63b902f / v2026.11.28.01)
  • RTX 4070 Ti 12 GB, Ryzen 9 5900X, Windows 11
  • Xbox Series build 1.0.2.1
  • No game files are included in this issue.
<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:6658142378 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/659). Originally posted by [adhd-speed](https://github.com/adhd-speed) on 2026-11-28T02:57:16Z. --- # GS_VoxelizeGeneric: 195 geometry shaders fail on a raw user-data address, and the geometry stage is not emitted > **Correction (2026-11-28):** The first version of this issue compared > `0xb8` with `table_offset_dwords: 184`. That was a unit error: `0xb8` is > 184 bytes (46 dwords), while 184 dwords is `0x2e0`. The programs are > merged ES-GS; the `0xb8` load is `user_data 0` (a raw address), and the > table they use is at `0x920` (584 dwords). The fix is PR #716. The > analysis below is the corrected one. ## Summary On the Xbox Series build `1.0.2.1`, `victory translate --list` with `VICTORY_HOST_MAX_WAVE=32` reports **195 failures**, all `GS_VoxelizeGeneric` geometry shaders, all at the same load: ``` 000030: s_and_b32 s1, s9, 0xff 000038: s_mov_b32 s0, s8 000044: s_load_dword s0, s[0:1], 0xb8 ``` with: ``` resources: an address in an SGPR that is no root parameter ``` The address is not a table root. In a merged ES-GS, `s8` is `user_data 0`; the layout has no `user_data 0` parameter, and the only `UsedResource` table is at `0x920`, read through `s16` (`user_data 8`). The `0xb8` load is a raw address. ## Reproduction ``` VICTORY_HOST_MAX_WAVE=32 victory.exe translate --list <game folder> ``` Before the fix the summary is: ``` 195 resources: an address in an SGPR that is no root parameter 22 emit: no wave32 lowering for this wave64 program 5 emit: a descriptor read only as data ``` The 195 are the subject of this issue; the 22 and 5 are separate. ## Evidence Five representative failures: ``` GS_VoxelizeGeneric_912dfba0_Wrapped #8cf49c6770ae0810 GS_VoxelizeGeneric_b300ca2e_Wrapped #d82a0a5a22471c77 GS_VoxelizeGeneric_6be01b34_Wrapped #3451632de2c1eec7 GS_VoxelizeGeneric_b300ca2e_Wrapped #ee8224eb303a5c22 GS_VoxelizeGeneric_912dfba0_Wrapped #88cdcc6833c85c12 ``` The extracted shader `8cf49c6770ae0810` has two loads: ``` 000030: s_and_b32 s1, s9, 0xff 000038: s_mov_b32 s0, s8 000044: s_load_dword s0, s[0:1], 0xb8 000078: s_mov_b32 s17, 0 000084: s_load_dwordx4 s[8:11], s[16:17], 0x920 ``` Its only `UsedResource` table is: ``` UsedResource { kind: Cbv, root: Table, table_offset_dwords: 584, user_data: 8, slot: 0, ... } ``` `0x920` is 2336 bytes = **584 dwords**, exactly the `UsedResource` offset. `user_data 8` in a merged ES-GS is `s16`, and the second load uses `s16:s17`. So the program is merged. The first load uses `s8`, which is `user_data 0` in that placement; it is not a table root, and there is no `UsedResource` at 46 dwords. It is a raw address. The first version of this issue read `0xb8` as 184 dwords and matched it to the root parameter at `table_offset_dwords: 184`. `0xb8` is 184 **bytes** (46 dwords); 184 dwords is `0x2e0`. The parameter at 184 dwords is not read by either load. ## Root cause `HwStage::user_sgpr` correctly gives geometry shaders the eight system SGPRs first (merged). The tracker then sees the `s8` load as an address that traces to no root parameter and refuses it, because the `RAW`/`MEMORY` fallback was limited to compute programs. The `0x920` load tracks correctly as the table at `user_data 8`. This is not a standalone geometry shader. It is a merged ES-GS whose `user_data 0` is a raw address. ## Fix PR #716: - keep the merged `+8` placement for `Gs`; - allow the `RAW`/`MEMORY` fallback for `Gs`, as compute already has; - leave the `0x920` load as a table; the `0xb8` load becomes `MEMORY`. Tests cover the table at `s16` / `0x920` / 584 dwords, the raw `0xb8` and the table `0x920` in one program, and a merged root descriptor's high half at `s17`. ## Results - `cargo test -p victory-shader`: **296 passed, 0 failed, 5 ignored**. - `translate --list` on the full Xbox Series `1.0.2.1` corpus: - **0** `an address in an SGPR that is no root parameter` (was 195); - **22** `no wave32 lowering for this wave64 program`, unchanged; - **5** `a descriptor read only as data`, unchanged. - The extracted shader `8cf49c6770ae0810`: `1 of 1 tracked`, 2 scalar accesses, one raw (`MEMORY`) and one table (`0x920`). ## Scope `translate` still lowers only `Vs`/`Ps`/`Cs`/`Ms`, so the 195 still produce no host geometry pipelines. The missing `Gs` emitter is a separate change; this issue stays open for it. ## Environment - VIctory-NVIDIA `main` (`63b902f` / v2026.11.28.01) - RTX 4070 Ti 12 GB, Ryzen 9 5900X, Windows 11 - Xbox Series build `1.0.2.1` - No game files are included in this issue.
github-actions[bot] commented 2026-11-28 02:57:25 +00:00 (Migrated from github.com)
Author
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by github-actions[bot] on 2026-11-28T02:57:25Z.


Please attach both logs from the run that went wrong. Without them we can only guess. Paste %LOCALAPPDATA% into the address bar of File Explorer to get there.

  1. The play log, in %LOCALAPPDATA%\victory\logs\: the newest victory-nvidia-play-<date>-<time>-<number>.log (from victory.exe) or victory-nvidia-<date>-<time>.log (from the script launcher). The window shows its path at the start, on the line Log: ....
  2. The crash log: %LOCALAPPDATA%\VIctory\data\7952987A\crashes.log, and, if there is one from that run, the newest victory-<date>-<time>-<number>.crash.log in %LOCALAPPDATA%\VIctory\data\7952987A\temp\.

Also say which GPU, Windows version (10 or 11)

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7232701608 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/659#issuecomment-7232701608). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-11-28T02:57:25Z. --- Please attach both logs from the run that went wrong. Without them we can only guess. Paste `%LOCALAPPDATA%` into the address bar of File Explorer to get there. 1. The play log, in `%LOCALAPPDATA%\victory\logs\`: the newest `victory-nvidia-play-<date>-<time>-<number>.log` (from `victory.exe`) or `victory-nvidia-<date>-<time>.log` (from the script launcher). The window shows its path at the start, on the line `Log: ...`. 2. The crash log: `%LOCALAPPDATA%\VIctory\data\7952987A\crashes.log`, and, if there is one from that run, the newest `victory-<date>-<time>-<number>.crash.log` in `%LOCALAPPDATA%\VIctory\data\7952987A\temp\`. Also say which GPU, Windows version (10 or 11)
adhd-speed commented 2026-11-28 03:52:05 +00:00 (Migrated from github.com)
Author
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by adhd-speed on 2026-11-28T03:52:05Z.


Thanks. This report is a translation-time failure, not a crash, so there is no failing play or crash log to attach. The failing run is victory translate --list, and its full output is in the gist below. ## Environment - GPU: NVIDIA GeForce RTX 4070 Ti, 12 GB - Driver: 610.88 (32.0.16.1088) - OS: Windows 11 Pro, 10.0.26300, 64-bit - CPU / RAM: AMD Ryzen 9 5900X, 64 GB - VIctory-NVIDIA: a4d05e7 (v2026.11.27.9), console series-x, release build - Game: GTA VI Xbox Series build 1.0.2.1 ## Logs Secret gist: https://gist.github.com/adhd-speed/763329ae963637002624e098f7e93fb0 It contains: 1. victory-nvidia-20261128-043538.log - the latest play log (clean build). That run did not crash. 2. translate-wave-why-32-20261128-031040.log - the failing translate --list run. 3. crashes.log - the newest entries are from 2026-11-27 and are unrelated to this issue. No .crash.log was produced on 2026-11-28. ## Reproduction VICTORY_HOST_MAX_WAVE=32 victory.exe translate --list <game folder> Result: 195 resources: an address in an SGPR that is no root parameter 22 emit: no wave32 lowering for this wave64 program 5 emit: a descriptor read only as data All 195 are GS_VoxelizeGeneric and all stop at 0x44, for example: shaders.rpf@0xbd7c2e4 GS_VoxelizeGeneric_912dfba0_Wrapped #8cf49c6770ae0810 ~438dafa5 Gs at 0x44 resources: an address in an SGPR that is no root parameter One more finding from the updated issue body: allowing the RAW/MEMORY fallback for Gs removes the 195 resource errors, but does not produce geometry pipelines. The emitter supports only Vs, Ps, Cs and Ms, and translate skips Gs. The resource error is only the first blocker.
Correction (2026-11-28): that fallback is the correct resource-tracking behavior for the raw 0xb8 address. The program is a merged ES-GS; its table is at 0x920 (584 dwords) through s16. The missing Gs emitter remains a separate change. See the corrected root cause below and PR #716.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7233461608 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/659#issuecomment-7233461608). Originally posted by [adhd-speed](https://github.com/adhd-speed) on 2026-11-28T03:52:05Z. --- Thanks. This report is a **translation-time** failure, not a crash, so there is no failing play or crash log to attach. The failing run is `victory translate --list`, and its full output is in the gist below. ## Environment - **GPU:** NVIDIA GeForce RTX 4070 Ti, 12 GB - **Driver:** 610.88 (32.0.16.1088) - **OS:** Windows 11 Pro, 10.0.26300, 64-bit - **CPU / RAM:** AMD Ryzen 9 5900X, 64 GB - **VIctory-NVIDIA:** `a4d05e7` (v2026.11.27.9), console `series-x`, release build - **Game:** GTA VI Xbox Series build `1.0.2.1` ## Logs Secret gist: https://gist.github.com/adhd-speed/763329ae963637002624e098f7e93fb0 It contains: 1. `victory-nvidia-20261128-043538.log` - the latest play log (clean build). That run did not crash. 2. `translate-wave-why-32-20261128-031040.log` - the failing `translate --list` run. 3. `crashes.log` - the newest entries are from 2026-11-27 and are unrelated to this issue. No `.crash.log` was produced on 2026-11-28. ## Reproduction ``` VICTORY_HOST_MAX_WAVE=32 victory.exe translate --list <game folder> ``` Result: ``` 195 resources: an address in an SGPR that is no root parameter 22 emit: no wave32 lowering for this wave64 program 5 emit: a descriptor read only as data ``` All 195 are `GS_VoxelizeGeneric` and all stop at `0x44`, for example: ``` shaders.rpf@0xbd7c2e4 GS_VoxelizeGeneric_912dfba0_Wrapped #8cf49c6770ae0810 ~438dafa5 Gs at 0x44 resources: an address in an SGPR that is no root parameter ``` One more finding from the updated issue body: allowing the `RAW`/`MEMORY` fallback for `Gs` removes the 195 resource errors, but does **not** produce geometry pipelines. The emitter supports only `Vs`, `Ps`, `Cs` and `Ms`, and `translate` skips `Gs`. The resource error is only the first blocker. **Correction (2026-11-28):** that fallback is the correct resource-tracking behavior for the raw `0xb8` address. The program is a merged ES-GS; its table is at `0x920` (584 dwords) through `s16`. The missing `Gs` emitter remains a separate change. See the corrected root cause below and PR #716.
adhd-speed commented 2026-11-28 04:17:46 +00:00 (Migrated from github.com)
Author
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by adhd-speed on 2026-11-28T04:17:46Z.


Correction: the load at 0xb8 is a raw address, not a table

The first diagnosis compared 0xb8 with table_offset_dwords: 184. That
was a unit error: 0xb8 is 184 bytes (46 dwords), while 184 dwords is
0x2e0.

The only UsedResource table is at 584 dwords = 0x920, user_data 8,
read through s16:

000078: s_mov_b32 s17, 0
000084: s_load_dwordx4 s[8:11], s[16:17], 0x920

In a merged ES-GS, user_data 8 is s16, so the program is merged. The
0xb8 load goes through s8 = user_data 0; the layout has no
user_data 0 parameter and there is no UsedResource at 46 dwords. It is a
raw address.

The fix is PR #716: keep the merged +8 placement for Gs and allow the
RAW/MEMORY fallback for Gs. The 0x920 load stays a table; 0xb8
becomes MEMORY. Tests cover both in one program.

Results: 195 -> 0; the 22 wave64 and 5 descriptor-read-as-data failures
are unchanged; victory-shader passes 296 tests. translate still does not
emit Gs; #659 stays open for the emitter.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7233897458 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/659#issuecomment-7233897458). Originally posted by [adhd-speed](https://github.com/adhd-speed) on 2026-11-28T04:17:46Z. --- ## Correction: the load at `0xb8` is a raw address, not a table The first diagnosis compared `0xb8` with `table_offset_dwords: 184`. That was a unit error: `0xb8` is 184 **bytes** (46 dwords), while 184 dwords is `0x2e0`. The only `UsedResource` table is at **584 dwords = 0x920**, `user_data 8`, read through `s16`: ``` 000078: s_mov_b32 s17, 0 000084: s_load_dwordx4 s[8:11], s[16:17], 0x920 ``` In a merged ES-GS, `user_data 8` is `s16`, so the program is merged. The `0xb8` load goes through `s8` = `user_data 0`; the layout has no `user_data 0` parameter and there is no `UsedResource` at 46 dwords. It is a raw address. The fix is PR #716: keep the merged `+8` placement for `Gs` and allow the `RAW`/`MEMORY` fallback for `Gs`. The `0x920` load stays a table; `0xb8` becomes `MEMORY`. Tests cover both in one program. Results: **195 -> 0**; the 22 wave64 and 5 descriptor-read-as-data failures are unchanged; `victory-shader` passes 296 tests. `translate` still does not emit `Gs`; #659 stays open for the emitter.
trustno1-coder commented 2026-11-29 19:50:25 +00:00 (Migrated from github.com)
Author
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by trustno1-coder on 2026-11-29T19:50:25Z.


Closing this one because it was reported on a build from before v2026.11.28.03 (more than 4 releases ago) and has had no activity since v2026.11.29.01. A lot has changed since then.

If it still happens on the latest release, please open a new issue with the play log and crashes.log from that run. Thanks for reporting!

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7261598795 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/659#issuecomment-7261598795). Originally posted by [trustno1-coder](https://github.com/trustno1-coder) on 2026-11-29T19:50:25Z. --- Closing this one because it was reported on a build from before v2026.11.28.03 (more than 4 releases ago) and has had no activity since v2026.11.29.01. A lot has changed since then. If it still happens on the [latest release](https://github.com/trustno1-coder/VIctory-NVIDIA/releases/latest), please open a new issue with the play log and crashes.log from that run. Thanks for reporting!
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
trustno1-coder/VIctory-NVIDIA#659
No description provided.