issue shaders and light #599

Open
opened 2026-11-26 03:47:08 +00:00 by github-bot · 2 comments
Owner

@⁠joyawth on GitHub · 2026-11-25 02:50 UTC · original

Compute shaders still failing (RTX 4060, WaveSize 32 only)

  • ceb5eb68cd99cb07 (1.4 KB): a min-reduction downsample (4 image_load per thread, LDS min tree, one image_store), looks like a depth-pyramid pass. Fails at 0x38 ("descriptor's address or format read as data"): the s_load_dwordx4 s[0:3] from a table entry is then used as data at s_cmp_eq_u32 s2, 0.
  • f133e35efed2a48a (169 KB, many SRVs and samplers): fails at 0x1eb4 (s_and_b64 vcc, exec, s[40:41] + s_cbranch_vccz, an any() over a lane mask while exec is partial) after every WAVE64-RETRY form (early-outs, skips, local waves) is exhausted.
  • Refused host compute pipelines (0x80070057): 2da4beb386509b77, 369cbe906ea72764, 2cc4c197ee29e291, 02384a60fda6f2d0, 5dc3b25986622949, 6f225b641c5b0708. Most of their retries end with wave Some(64), which NVIDIA refuses.
  • The cutscene frame is very dark (hair rendered, face and background almost black), so I suspect lighting or an exposure/tone pass is among these.
**@⁠joyawth** on GitHub · 2026-11-25 02:50 UTC · [original](https://github.com/fxceless/victory-fork/issues/599) ## Compute shaders still failing (RTX 4060, WaveSize 32 only) - ceb5eb68cd99cb07 (1.4 KB): a min-reduction downsample (4 image_load per thread, LDS min tree, one image_store), looks like a depth-pyramid pass. Fails at 0x38 ("descriptor's address or format read as data"): the `s_load_dwordx4 s[0:3]` from a table entry is then used as data at `s_cmp_eq_u32 s2, 0`. - f133e35efed2a48a (169 KB, many SRVs and samplers): fails at 0x1eb4 (`s_and_b64 vcc, exec, s[40:41]` + `s_cbranch_vccz`, an any() over a lane mask while exec is partial) after every WAVE64-RETRY form (early-outs, skips, local waves) is exhausted. - Refused host compute pipelines (0x80070057): 2da4beb386509b77, 369cbe906ea72764, 2cc4c197ee29e291, 02384a60fda6f2d0, 5dc3b25986622949, 6f225b641c5b0708. Most of their retries end with `wave Some(64)`, which NVIDIA refuses. - The cutscene frame is very dark (hair rendered, face and background almost black), so I suspect lighting or an exposure/tone pass is among these.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:47:08 +00:00
Author
Owner

@⁠ArturoWolff on GitHub · 2026-11-25 03:51 UTC · original · edited 2026-11-25 05:49 UTC

On a desktop RTX 4060 (8 GB), NVIDIA 620.73.04, GE-Proton11-14, I checked retained Series X logs against your six refused compute pipelines. On stock 310c6eb, frame 2341 first binds 02384a60fda6f2d0, followed by host pipeline refused ... (0x80070057) shaders=[compute 02384a60fda6f2d0]. 369cbe906ea72764 and 2da4beb386509b77 also have first-bind lines, but not matching refusal lines before the run stopped. On the older 0e507b4 build (included #20), all three have explicit refusal lines. The earlier run reached dialogue over a black screen. This corroborates the refusals under Proton, not their role in lighting.

Two existing comparisons may save you a full shader sweep: #500 reports 369cbe906ea72764 creating a pipeline with VICTORY_LDS_EXACT=1, without an identifiable picture change. #592 reports 2cc4c197ee29e291 creating a pipeline with the room looking as before; its in-game test also included other PRs. Neither establishes an exposure fix. If you still have the dark-frame capture, a useful discriminator would be whether the scene color before the final composite already lacks the face/background, or whether those details disappear only in the presented image. That would narrow the search more than the refusal count alone.

Local capture comparison (older 0e507b4 + #20, not a stock-main frame or necessarily the same shot): in frame 2256 a full-screen draw with pixel shader 4f4ec7b16673362f binds a 2560×1440 format-24 texture at Srv s1+0 and targets the 3840×2160 format-28 output. The saved RGB preview of that input is uniformly black; the output spans only 0–1 per RGB channel on the 8-bit PNG. Two other format-24 targets in that same frame retain recognizable scene outlines. This gives a concrete input to trace rather than assuming all scene geometry or all format-24 captures are blank. These dumps are taken at present and format-normalized, so they do not establish the texels sampled at draw time. A readback of that binding immediately before the draw, paired with its output immediately after, would distinguish those cases.

I traced the pixel shader for draw 6994 one step further. I reconstructed the old build’s shader-cache key from the executable, settings and original shader input, then disassembled the matching cached DXIL (dxv passed). It contains five SampleLevel instructions on the 2D texture at s1+0; the separate 64×64 array at s0+168 uses TextureLoad. This distinguishes the two inputs: the black 1440p preview is for the repeatedly sampled texture, not the small array.

Two nearby 2560×1440 format-24 outputs (draw 6907 and dispatch 6933) have nonblack saved previews, but neither has the same logged resource handle as s1+0. Same dimensions/format alone don’t identify a producer; different handles don’t rule out shared backing memory either. The missing observation is the backing allocation/range and its last write or copy before draw 6994. These are results from the older capture, not a test of 8dd30ab’s new view guard.

AI disclosure: Hermes Agent ran the cache lookup, disassembly and capture comparisons and wrote this update on ArturoWolff’s behalf.

**@⁠ArturoWolff** on GitHub · 2026-11-25 03:51 UTC · [original](https://github.com/fxceless/victory-fork/issues/599#issuecomment-7152302455) · edited 2026-11-25 05:49 UTC On a desktop RTX 4060 (8 GB), NVIDIA 620.73.04, GE-Proton11-14, I checked retained Series X logs against your six refused compute pipelines. On stock `310c6eb`, frame 2341 first binds `02384a60fda6f2d0`, followed by `host pipeline refused ... (0x80070057) shaders=[compute 02384a60fda6f2d0]`. `369cbe906ea72764` and `2da4beb386509b77` also have first-bind lines, but **not** matching refusal lines before the run stopped. On the older `0e507b4` build (included #20), all three have explicit refusal lines. The earlier run reached dialogue over a black screen. This corroborates the refusals under Proton, not their role in lighting. Two existing comparisons may save you a full shader sweep: #500 reports `369cbe906ea72764` creating a pipeline with `VICTORY_LDS_EXACT=1`, without an identifiable picture change. #592 reports `2cc4c197ee29e291` creating a pipeline with the room looking as before; its in-game test also included other PRs. Neither establishes an exposure fix. If you still have the dark-frame capture, a useful discriminator would be whether the scene color **before** the final composite already lacks the face/background, or whether those details disappear only in the presented image. That would narrow the search more than the refusal count alone. Local capture comparison (older `0e507b4` + #20, not a stock-main frame or necessarily the same shot): in frame 2256 a full-screen draw with pixel shader `4f4ec7b16673362f` binds a 2560×1440 format-24 texture at `Srv s1+0` and targets the 3840×2160 format-28 output. The saved RGB preview of that input is uniformly black; the output spans only 0–1 per RGB channel on the 8-bit PNG. Two *other* format-24 targets in that same frame retain recognizable scene outlines. This gives a concrete input to trace rather than assuming all scene geometry or all format-24 captures are blank. [These dumps are taken at present and format-normalized](https://github.com/fxceless/victory-fork/blob/0e507b4a608a90d429f6eac5da16bd83e8d07a90/crates/victory-gpu/src/capture.rs#L332-L338), so they do not establish the texels sampled at draw time. A readback of that binding immediately before the draw, paired with its output immediately after, would distinguish those cases. I traced the pixel shader for draw 6994 one step further. I reconstructed the old build’s shader-cache key from the executable, settings and original shader input, then disassembled the matching cached DXIL (`dxv` passed). It contains **five `SampleLevel` instructions on the 2D texture at `s1+0`**; the separate 64×64 array at `s0+168` uses `TextureLoad`. This distinguishes the two inputs: the black 1440p preview is for the repeatedly sampled texture, not the small array. Two nearby 2560×1440 format-24 outputs (draw 6907 and dispatch 6933) have nonblack saved previews, but **neither has the same logged resource handle** as `s1+0`. Same dimensions/format alone don’t identify a producer; different handles don’t rule out shared backing memory either. The missing observation is the backing allocation/range and its last write or copy **before** draw 6994. These are results from the older capture, not a test of `8dd30ab`’s new view guard. AI disclosure: Hermes Agent ran the cache lookup, disassembly and capture comparisons and wrote this update on ArturoWolff’s behalf.
Author
Owner

@⁠sawetco on GitHub · 2026-11-25 16:23 UTC · original

I tested the two compute shaders named at the top of this issue on a native RTX 5070, NVIDIA 621.24. I used one build of #854 at 0751197, with victory translate --validate --pipelines --list, VICTORY_HOST_MAX_WAVE=32 and VICTORY_MESH_LINK=0. Only VICTORY_WAVE_PAIRS changed between the two runs.

Compute shader Wave pairs off Wave pairs on
ceb5eb68cd99cb07 D3D12 pipeline created D3D12 pipeline created
f133e35efed2a48a Emission failed at 0x1eb4 on a lane-mask exchange under partial EXEC D3D12 pipeline created

All three positive controls created pipelines in both runs. This gives a reproducible compiler-side difference for f133e35efed2a48a at the offset reported here. Tested revision

In a separate player-driven run on the performance fork, shaded areas still looked excessively dark through the Gone Fishing camp. That build used VICTORY_AMBIENT_STUB=1 and VICTORY_SHADOWMASK_STUB=1. The in-game effect of #854 on that scene remains untested, so the source of the darkness is still open.

**@⁠sawetco** on GitHub · 2026-11-25 16:23 UTC · [original](https://github.com/fxceless/victory-fork/issues/599#issuecomment-7167910005) I tested the two compute shaders named at the top of this issue on a native RTX 5070, NVIDIA 621.24. I used one build of #854 at `0751197`, with `victory translate --validate --pipelines --list`, `VICTORY_HOST_MAX_WAVE=32` and `VICTORY_MESH_LINK=0`. Only `VICTORY_WAVE_PAIRS` changed between the two runs. | Compute shader | Wave pairs off | Wave pairs on | | --- | --- | --- | | `ceb5eb68cd99cb07` | D3D12 pipeline created | D3D12 pipeline created | | `f133e35efed2a48a` | Emission failed at `0x1eb4` on a lane-mask exchange under partial EXEC | D3D12 pipeline created | All three positive controls created pipelines in both runs. This gives a reproducible compiler-side difference for `f133e35efed2a48a` at the offset reported here. [Tested revision](https://git.gtahub.st/github/fxceless--victory-fork/pulls/854/commits/0751197e744c92d392a65d02fe40973f566843e2) In a separate player-driven run on the performance fork, shaded areas still looked excessively dark through the Gone Fishing camp. That build used `VICTORY_AMBIENT_STUB=1` and `VICTORY_SHADOWMASK_STUB=1`. The in-game effect of #854 on that scene remains untested, so the source of the darkness is still open.
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/fxceless--victory-fork#599
No description provided.