v2026.12.05.01-test (post-merge): shadowed areas go black in 16x16 screen tiles at a 1440p render size; gone at 1080p or DLSS Quality (RTX 4090) #666
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
hle
input
INTEL
lighting
linux-proton
memory
MULDER
needs-info
needs-logs
needs-rebase
NVIDIA
performance
post-merge
pr-diagnostics
pr-docs
pre-merge
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
relevance
high
relevance
low
relevance
medium
relevance
very-high
rendering
report
roadmap-proposal
saves
series-s
shaders
startup
status
blocked-by-rework
status
needs-test-report
status
needs-triage
status
ready-for-review
status
stale
status
superseded
status
wip
tools
ui
upstream
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
TrustNo1/Darner#666
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?
What looks wrong
Build line:
post-merge(the branch that wasMerge),v2026.12.05.01-test. Not the oldv2026.12.04.01line.At a render size of 2560x1440 the shadowed parts of the picture are black in square blocks that step along the shadow edges. Sunlit surfaces and characters are fine. It should be ordinary shadow, lit by indirect light. Screenshot below, taken 23:14:32 UTC on 5 Dec, in the run the log lines are from (outdoors, daylight, a wooden deck).
Two changes each make it go away:
So it follows the render size, not the output size. Frame generation makes no difference: I saw the blocks at 1440p DLAA with it off (an earlier run, no log of it) and at 2x (this run).
Where I would look
crates/darner-gpu/src/indirect.rsexecutes some indirect dispatches in two parts when their record passes 65,535 groups in x (bound_split, theOVERlist). By its own comments the final gather of indirect light (2dc364df5d3278b8,940c2635dc1312f4) runs 115,200 groups at 1440p. At 1080p it is 120 x 68 tiles x 8 = 65,280, just under the limit, so it is not split there. At Quality in 1440p it is 107 x 60 x 8 = 51,360, also under. That fits what I see, but I have not confirmed it: the shadow programs on the same list (559d9f0184e15fe3,0ea6fac38d096770) are candidates too.With Quality at 1440p I once saw a dark band move across the side of a distant parked van over a few seconds. It may be something else; I mention it only in case it helps.
Source reading and write-up were AI-assisted.
Before you post
CONSOLE in F1
Series X
GPU and driver
NVIDIA GeForce RTX 4090 24 GB, driver 621.40
CPU, RAM and Windows version
Intel Core i9-13900K, 32 GB DDR5-6400 (2 sticks), Windows 11 Pro build 26300
Darner release or commit
v2026.12.05.01-test
Settings
Series X, RESOLUTION default (2560x1440 picture), DLSS, mode DLAA, preset M, frame generation 2x (DLSS), HDR, borderless full screen, 60 fps cap, RAY TRACING at its default (hardware). Display: 2560x1440 at 200% scaling.
darner-settings.txt:DARNER_ASPECT=16:9,DARNER_HDR=1,DARNER_FULLSCREEN=1. Nothing on the start line.Logs
No zip: the run ended by closing the window, with no crash. Console text of the run with the fault (started 23:12:45 UTC, 2560x1440 DLAA, frame generation 2x), the lines on the build and the picture and every warning; the user folder in the one path is replaced. The run has 6 warnings (the other two are a 20 s stall while pipelines were made) and no errors.
exe sha256
477C08B051CE899B076973B45A1979699FAD3C32850862DE4F9FEF1D8588B5C7. The whole console text on request.Are you working on a fix?
No
Fixed here by a local patch on
post-mergeat28a9b42: the black blocks are gone at 2560x1440 DLAA in the same spot as the screenshot, checked by eye on the RTX 4090. No pull request from me; the patch is below for whoever wants it.System: Intel Core i9-13900K · 32 GB DDR5-6400 (2 sticks) · NVIDIA GeForce RTX 4090 24 GB, driver 621.40 · Windows 11 Pro build 26300
Two changes, made together, so I can't say which one is needed (or whether both are):
draw.rs: an indirect dispatch by a program with a group base whose bound isBound::Unreadis executed in parts as well, not only the programs inOVER. If its record can't be clamped it runs as the title made it, as before.indirect.rs, the clamp shader: a dispatch in parts is no longer charged to the list's budget.Not measured: the cost of the extra clamp passes. Not tested: anything but 1440p DLAA on this card.
cargo test -p darner-gpu --libpasses (13).Patch (2 files)
Code change and write-up were AI-assisted.
Correction (6 Dec): two things in this thread need adjusting.
DARNER_RT=off, so it is a separate fault. Details are on #664.That matches what
crates/darner-gpu/src/indirect.rsandshaders/replace/show on28a9b42:USER_GROUP_BASE,OVER(indirect.rs:441-453) currently only lists 11 hashes, while all 8ScreenProbes_TraceRays_*replacements (0f9382de73901605,306e8053bb5c7b83,3adb6fc86da11a5b,9ac4b1d124bf5473,ca91c1392fd098a4,d5f6125b52723fc9,f22a76fcb967ee59,f76abe011ea678b3), 6 otherTraceShadowRays_*replacements (002e93a6cc2aa355,07c93bfb77fecebb,0e64f14fae060d04,4e816e1ef600ddcf,96ccb14ef981fd85,dbdbf36298727135), and any otherFinalGather_*permutations fall intoBound::Unread(unsplit).untried844's patch splittingBound::Unreadfixed the 1440p DLAA blocks. Running a--features diagnosticsbuild at 2560x1440 DLAA and checkingEXEMPT_ASKED/split_report(draw.rs:6503-6520) will name the exact offending shader hash(es) soOVERcan target only the shaders that actually exceed 65,535 groups.For anyone who wants to try the fix without building it: attached is an unofficial build of
28a9b42with my local changes, and the changes themselves as a patch.darner.exe:post-mergeat28a9b42pluslocal-fixes-on-28a9b42.diff. sha256bd63eb1c9db3f3220208dfc7ac9d044e352bbaa95093b76355c6b53fb4d16282.local-fixes-on-28a9b42.diff: the two indirect dispatch changes from the comment above, the console DSP convolution brought over from the old code line (phone, TV and headset voices play again), and a full screen placement change forDARNER_FULLSCREEN.README.txt: the same in more words.What is checked, on one RTX 4090 only: the black shadow blocks are gone at 2560x1440 DLAA, and phone call voices play. The full screen change is not confirmed yet. The square blocks on water (#664) are not fixed by it.
This is not an official release; keep your original
darner.exe. The code changes were AI-assisted.[rendering] v2026.12.05.01-test (post-merge): shadowed areas go black in 16x16 screen tiles at a 1440p render size; gone at 1080p or DLSS Quality (RTX 4090)to v2026.12.05.01-test (post-merge): shadowed areas go black in 16x16 screen tiles at a 1440p render size; gone at 1080p or DLSS Quality (RTX 4090)Diagnostics capture on
post-merge28a9b42(--features diagnostics), which names the programssplit_reportflags at 2560x1440 DLAA.Setup: RTX 5070 Ti 16 GB, driver 621.40, 2560x1440, DLAA, hardware ray tracing, DLSS frame generation 2x. About 16 minutes of play, 190
split_reportwindows (~5 s each).What was reported (
indirect records executed as made that asked more than 65,535 groups in a dimension; the tag is the first 8 hex digits of the program hash):0f303afc0f303afc7d91c03aCS_TrailMapBlitBlurCombineFade_indirect0f303afcc214b314c214b314ab910fccCS_TrailMapDepthBlurMasked_IndirectThe other 187 windows report
none, which is printed only when the raw count is exactly 0.Only the largest tag is reported. The clamp's check keeps the tag with
InterlockedMax(budget word 9) and the CPU folds lists withfetch_max, so a window names only the largest tag among the programs that exceeded. For the 7 sibling*TrailMap*Indirect*programs this gives:d5cb9b9e4bae6429,f5eb079956ef961e: no record above 65,535 in any window (their tags are above both reported tags).296c09ed2b3beaea,437ef729853d5c13,46b4fe072bcf0529,52cf34ed39cdfa55: none in the 01:40:38 and 01:40:44 windows; unknown at 01:41:04 (masked byc214b314).0c0df5f64623380b: unknown in all three windows (its tag is below both).This covers only records the check reads (single-record dispatches, no count buffer, programs with a group base) and this session's content only. Once the two programs above are split they no longer go through the check, so a rerun of the same scene would name any sibling that also exceeds.
None of the
ScreenProbes_TraceRays_*/TraceShadowRays_*/FinalGather_*hashes listed earlier in this thread showed up: on this card and scene, the only programs past the limit at 1440p DLAA were these two trail-map ones, in 3 windows out of 190.Budget: all 942 clamp lines report 0.00 records per frame whose counts the clamp changed, the most of a list's indirect budget any run spent was 5.49%, and 0 runs spent all of it. A 65,536-group record charges 65,536 x 64 = 2^22 threads, 1/32 of the per-list budget. So in this run the budget never ran out, and
cost = split ? 0u : ...was not needed here.Proposed fix: add
0f303afc7d91c03aandc214b314ab910fcctoOVERincrates/darner-gpu/src/indirect.rs(kept sorted forbinary_search); siblings stay out until something shows they exceed.Updated unofficial build, replacing the zip in my comment above:
post-merge28a9b42plus five local changes, with the changes as a patch (local-fixes-on-28a9b42.diff) and a readme. Tested on one PC only.System: Intel Core i9-13900K · 32 GB DDR5-6400 (2 sticks) · NVIDIA GeForce RTX 4090 24 GB, driver 621.40 · Windows 11 Pro build 26300. Series X profile, 2560x1440 output, HDR on, frame generation 2x.
TV_GenerateTiles1aa247ed3653b616asRule::LanePairsin place ofRule::LocalWaves.CS_ShadowRenderTiled*programs takeRule::LanePairslike the six that already do.Main), and full screen at the start withDARNER_FULLSCREEN.darner.exesha2564297352aaaf85663e8151266adbc2446f2fbbe73e41226c988c6b1517bf31fbc. The first start translates the changed shaders again.Each change is also going up as its own pull request against
post-merge. The code changes were AI-assisted.