issue shaders and light #599
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/fxceless--victory-fork#599
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@joyawth on GitHub · 2026-11-25 02:50 UTC · original
Compute shaders still failing (RTX 4060, WaveSize 32 only)
s_load_dwordx4 s[0:3]from a table entry is then used as data ats_cmp_eq_u32 s2, 0.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.wave Some(64), which NVIDIA refuses.@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 binds02384a60fda6f2d0, followed byhost pipeline refused ... (0x80070057) shaders=[compute 02384a60fda6f2d0].369cbe906ea72764and2da4beb386509b77also have first-bind lines, but not matching refusal lines before the run stopped. On the older0e507b4build (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
369cbe906ea72764creating a pipeline withVICTORY_LDS_EXACT=1, without an identifiable picture change. #592 reports2cc4c197ee29e291creating 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 shader4f4ec7b16673362fbinds a 2560×1440 format-24 texture atSrv s1+0and 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 (
dxvpassed). It contains fiveSampleLevelinstructions on the 2D texture ats1+0; the separate 64×64 array ats0+168usesTextureLoad. 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 of8dd30ab’s new view guard.AI disclosure: Hermes Agent ran the cache lookup, disassembly and capture comparisons and wrote this update on ArturoWolff’s behalf.
@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, withvictory translate --validate --pipelines --list,VICTORY_HOST_MAX_WAVE=32andVICTORY_MESH_LINK=0. OnlyVICTORY_WAVE_PAIRSchanged between the two runs.ceb5eb68cd99cb07f133e35efed2a48a0x1eb4on a lane-mask exchange under partial EXECAll three positive controls created pipelines in both runs. This gives a reproducible compiler-side difference for
f133e35efed2a48aat the offset reported here. Tested revisionIn 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=1andVICTORY_SHADOWMASK_STUB=1. The in-game effect of #854 on that scene remains untested, so the source of the darkness is still open.