NVIDIA RTX 5080: ~20 world mesh pipelines refused with E_OUTOFMEMORY; 7 without helper lanes reading their own v_readfirstlane #160

Open
opened 2026-11-26 03:36:55 +00:00 by github-bot · 1 comment
Owner

@⁠pjanes22 on GitHub · 2026-11-25 17:55 UTC · original

RTX 5080 16 GB, driver 32.0.16.x, Windows 11, Ryzen 9 7950X3D, 32 GB.
Build: main 01aadd1 + #68 + #144 + #146, compiler guard off (see PR "VICTORY_COMPILER_GUARD").

About 20-29 mesh+pixel pipelines of the world are refused by the driver with
0x8007000E. What every refused pair has (dumped DXIL of 21 refused vs 540
accepted mesh pipelines):

  • the pixel shader uses isHelperLane + waveReadLaneFirst + attributeAtVertex
    (all 21 refused; 84 of 469 accepted pixel shaders have the same three);
  • the mesh shader's outputs are 12-18 rows (21-31.7 KB), inside the 32 KB
    limit; accepted ones go up to 18 rows too.
    No single feature separates them.

With a test switch that turns off "a helper lane's v_readfirstlane reads its
own value" (f520772), refusals went from 29 to 7 in the same scene. That
switch is not a fix: the commit exists so waterfall loops do not run to the
loop limit in helper lanes, and both runs with it off ended in a GPU timeout
(they also had other changes, so this is not proven).

The same pairs were made by an older fork (fxceless/victory-fork based) on the
same card, e.g. [mesh 374cff5e94fee812, pixel 81f23cdc52f59a69].
I can attach the dumped DXIL of the refused pairs.

**@⁠pjanes22** on GitHub · 2026-11-25 17:55 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/issues/160) RTX 5080 16 GB, driver 32.0.16.x, Windows 11, Ryzen 9 7950X3D, 32 GB. Build: main 01aadd1 + #68 + #144 + #146, compiler guard off (see PR "VICTORY_COMPILER_GUARD"). About 20-29 mesh+pixel pipelines of the world are refused by the driver with 0x8007000E. What every refused pair has (dumped DXIL of 21 refused vs 540 accepted mesh pipelines): - the pixel shader uses isHelperLane + waveReadLaneFirst + attributeAtVertex (all 21 refused; 84 of 469 accepted pixel shaders have the same three); - the mesh shader's outputs are 12-18 rows (21-31.7 KB), inside the 32 KB limit; accepted ones go up to 18 rows too. No single feature separates them. With a test switch that turns off "a helper lane's v_readfirstlane reads its own value" (f520772), refusals went from 29 to 7 in the same scene. That switch is not a fix: the commit exists so waterfall loops do not run to the loop limit in helper lanes, and both runs with it off ended in a GPU timeout (they also had other changes, so this is not proven). The same pairs were made by an older fork (fxceless/victory-fork based) on the same card, e.g. [mesh 374cff5e94fee812, pixel 81f23cdc52f59a69]. I can attach the dumped DXIL of the refused pairs.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:36:55 +00:00
Author
Owner

@⁠adrianmjim on GitHub · 2026-11-26 19:39 UTC · original

I looked at the pair you named offline, using the game's shaders.rpf, and created pipelines on an RX 7900 XT (RDNA3, driver 32.0.32029.2010, Windows 11 26300). I have no NVIDIA card, so nothing below says anything about the RTX 5080 compiler.

I measured two builds of main, both without #68, #144 or #146:

  • 000ffdd. Its victory-shader is the same as in 01aadd1, the base of your build.
  • 4f62c2a, current main, which runs the clean-up passes from ae75a66 by default.

With VICTORY_SHADER_OPT=0, 4f62c2a gives the same bytes as 000ffdd for all 319 programs below. So for these programs the clean-up is the only shader change between the two. My earlier hash lists (on 000ffdd) give the same DXIL for the named pair with #68 and with #146 applied. I have not checked #144. It clamps view and sampler heap indices, so it may change the pixel shader.

Which programs

The runtime logs these hashes as the first 16 hex digits of the console container's blake3 hash. They match:

  • mesh 374cff5e94fee812 = MS_VS_TransformD_7095f810
  • pixel 81f23cdc52f59a69 = PS_VehicleLiveryOffOnlyDeferred_7095f810

Both are in the vehicle/prop deferred group with that suffix. The archive has 245 PS and 75 MS in that group. Both builds refuse one MS (mesh outputs beyond 32 KiB), so 319 programs translate.

The named pair, 000ffdd -> 4f62c2a

I disassembled both with dxc -dumpbin and counted blocks, branches and loops with a script.

MS PS
DXIL bytes 29,826 -> 22,718 (-24%) 176,143 -> 127,371 (-28%)
instructions 3,459 -> 2,113 25,130 -> 16,678
blocks / cond. branches / loops 48 / 16 / 0, unchanged 395 / 142 / 8, unchanged
waveReadLaneFirst 6 -> 4 31 -> 30
isHelperLane calls 0 31 -> 22
attributeAtVertex - 108 -> 72
quadReadLaneAt - 244 -> 140

In the PS, every waveReadLaneFirst result still goes through a select on isHelperLane (31 of 31, then 30 of 30). The clean-up merges some isHelperLane calls (31 to 22) but keeps the selects. The control flow does not change.

The 7095f810 group

  • On 4f62c2a the 319 programs are 28.4% smaller in total:
    • PS: -28.7% (-25% to -32% per program).
    • MS: -24.8% (-22% to -27%).
  • 180 of the 241 PS I dumped use isHelperLane, waveReadLaneFirst and attributeAtVertex. They shrink from 28-212 KB to 21-150 KB. Blocks and loops do not change in any of the 315 programs I dumped (loops: 0 to 13).
  • The 61 PS without those three ops shrink from 40-69 KB to 28-47 KB. None of them has a loop.
  • By size, the named PS ties with two others at 14th to 16th of 241 in both builds. It is one of 6 PS with 30 or more waveReadLaneFirst.
  • The MS outputs do not change. The named MS writes 31,744 B (18 rows). That is the largest in the group, and one other MS has the same size. It is the 31.7 KB top of your range.

Your build has no clean-up passes. A run on current main would show whether these smaller shaders change the refusals on the 5080. I can't predict that from here.

Helper-lane select off

On 000ffdd, I turned off f520772's helper-lane select locally, as a test only. 181 PS of the group changed. The named PS went from 176,143 to 175,547 B, with the same blocks and branches. I have not repeated this on 4f62c2a.

Pipelines on the 7900 XT (4f62c2a, translate --pipelines --host-lanes 32-64)

  • The named pair is created, with and without the clean-up.
  • A run with no program at all takes 3-5 s. The pair run takes 18.2 s the first time with the new DXIL and 9-11 s when repeated.
  • The named MS also links with 4 other PS of the group.
  • A pipeline is created for each of the 319 programs of the group, using translate's stub partners. The first run with the new DXIL takes 52.7 s. A repeat takes 9.6 s.
  • Peak private memory is 1.25-1.36 GB in every run. The run with no program already peaks at about 1.24 GB, so the pipelines add about 0.1 GB.
  • No E_OUTOFMEMORY in any run.
  • The times are rough. I did not clear any shader or pipeline cache, and other heavy jobs ran on this machine at the same time.
  • Translate's test pipelines are not the in-game pipeline state.

#172 and open shader PRs

#172 (mine) changes none of these 319 programs, on 000ffdd or merged onto 4f62c2a. I can't say anything about the other refused pairs.

I read the diffs of the open shader PRs #173, #180, #184, #186-#193, #198, #200, #202 and #204. None of them changes the helper-lane select or how waveReadLaneFirst is lowered. In my whole-archive runs, #180 and #191 change no program at all. #189 (v_interp_p2_f16) gives all 245 PS of this group a different DXIL hash. In the 209 changed shaders I compared, only the order of two instructions changes, with the same instruction count.

Not tested

  • NVIDIA.
  • The effect of #144.
  • The other refused pairs.
  • In-game.

If you can paste the hashes of the 21 refused pairs from your log, I can map them to programs the same way and run the same counts on them.

**@⁠adrianmjim** on GitHub · 2026-11-26 19:39 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/issues/160#issuecomment-7201821451) I looked at the pair you named offline, using the game's shaders.rpf, and created pipelines on an RX 7900 XT (RDNA3, driver 32.0.32029.2010, Windows 11 26300). I have no NVIDIA card, so nothing below says anything about the RTX 5080 compiler. I measured two builds of main, both without #68, #144 or #146: - 000ffdd. Its victory-shader is the same as in 01aadd1, the base of your build. - 4f62c2a, current main, which runs the clean-up passes from ae75a66 by default. With `VICTORY_SHADER_OPT=0`, 4f62c2a gives the same bytes as 000ffdd for all 319 programs below. So for these programs the clean-up is the only shader change between the two. My earlier hash lists (on 000ffdd) give the same DXIL for the named pair with #68 and with #146 applied. I have not checked #144. It clamps view and sampler heap indices, so it may change the pixel shader. **Which programs** The runtime logs these hashes as the first 16 hex digits of the console container's blake3 hash. They match: - mesh 374cff5e94fee812 = MS_VS_TransformD_7095f810 - pixel 81f23cdc52f59a69 = PS_VehicleLiveryOffOnlyDeferred_7095f810 Both are in the vehicle/prop deferred group with that suffix. The archive has 245 PS and 75 MS in that group. Both builds refuse one MS (mesh outputs beyond 32 KiB), so 319 programs translate. **The named pair, 000ffdd -> 4f62c2a** I disassembled both with dxc -dumpbin and counted blocks, branches and loops with a script. | | MS | PS | |---|---|---| | DXIL bytes | 29,826 -> 22,718 (-24%) | 176,143 -> 127,371 (-28%) | | instructions | 3,459 -> 2,113 | 25,130 -> 16,678 | | blocks / cond. branches / loops | 48 / 16 / 0, unchanged | 395 / 142 / 8, unchanged | | waveReadLaneFirst | 6 -> 4 | 31 -> 30 | | isHelperLane calls | 0 | 31 -> 22 | | attributeAtVertex | - | 108 -> 72 | | quadReadLaneAt | - | 244 -> 140 | In the PS, every waveReadLaneFirst result still goes through a select on isHelperLane (31 of 31, then 30 of 30). The clean-up merges some isHelperLane calls (31 to 22) but keeps the selects. The control flow does not change. **The 7095f810 group** - On 4f62c2a the 319 programs are 28.4% smaller in total: - PS: -28.7% (-25% to -32% per program). - MS: -24.8% (-22% to -27%). - 180 of the 241 PS I dumped use isHelperLane, waveReadLaneFirst and attributeAtVertex. They shrink from 28-212 KB to 21-150 KB. Blocks and loops do not change in any of the 315 programs I dumped (loops: 0 to 13). - The 61 PS without those three ops shrink from 40-69 KB to 28-47 KB. None of them has a loop. - By size, the named PS ties with two others at 14th to 16th of 241 in both builds. It is one of 6 PS with 30 or more waveReadLaneFirst. - The MS outputs do not change. The named MS writes 31,744 B (18 rows). That is the largest in the group, and one other MS has the same size. It is the 31.7 KB top of your range. Your build has no clean-up passes. A run on current main would show whether these smaller shaders change the refusals on the 5080. I can't predict that from here. **Helper-lane select off** On 000ffdd, I turned off f520772's helper-lane select locally, as a test only. 181 PS of the group changed. The named PS went from 176,143 to 175,547 B, with the same blocks and branches. I have not repeated this on 4f62c2a. **Pipelines on the 7900 XT (4f62c2a, `translate --pipelines --host-lanes 32-64`)** - The named pair is created, with and without the clean-up. - A run with no program at all takes 3-5 s. The pair run takes 18.2 s the first time with the new DXIL and 9-11 s when repeated. - The named MS also links with 4 other PS of the group. - A pipeline is created for each of the 319 programs of the group, using translate's stub partners. The first run with the new DXIL takes 52.7 s. A repeat takes 9.6 s. - Peak private memory is 1.25-1.36 GB in every run. The run with no program already peaks at about 1.24 GB, so the pipelines add about 0.1 GB. - No E_OUTOFMEMORY in any run. - The times are rough. I did not clear any shader or pipeline cache, and other heavy jobs ran on this machine at the same time. - Translate's test pipelines are not the in-game pipeline state. **#172 and open shader PRs** #172 (mine) changes none of these 319 programs, on 000ffdd or merged onto 4f62c2a. I can't say anything about the other refused pairs. I read the diffs of the open shader PRs #173, #180, #184, #186-#193, #198, #200, #202 and #204. None of them changes the helper-lane select or how waveReadLaneFirst is lowered. In my whole-archive runs, #180 and #191 change no program at all. #189 (v_interp_p2_f16) gives all 245 PS of this group a different DXIL hash. In the 209 changed shaders I compared, only the order of two instructions changes, with the same instruction count. **Not tested** - NVIDIA. - The effect of #144. - The other refused pairs. - In-game. If you can paste the hashes of the 21 refused pairs from your log, I can map them to programs the same way and run the same counts on them.
This discussion has been locked. Commenting is limited to contributors.
No description provided.