[pr-fix][shaders] DARNER_STRICT_JOINS and DARNER_MESH_OUTPUT_STRICT are on only at 1, as the README says #422
No reviewers
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
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
TrustNo1/Darner!422
Loading…
Reference in a new issue
No description provided.
Delete branch "iboom72/strict-switches-only-at-1"
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 it changes
.is_some()(crates/darner-shader/src/emit/lower.rs:5840and:15033). The README documents both as1 = on. SoDARNER_STRICT_JOINS=0, typed to turn it off, turns it on: by the code's own count about 40 shaders (vehicle paint, foliage) then stop drawing. Both names are inKEYED, so the value also changes the shader cache key, and every shader is translated again.Both now read
is_some_and(|v| v == "1"), which is whatasked_for!means in darner-gpu. The comment at:15027says=1too.This re-keys every user's shader cache once. It is a code change in darner-shader, so
DARNER_TRANSLATORchanges. Since34b0ba77, the pipeline library another translator wrote is no longer loaded (made_by_another_build,crates/darner-gpu/src/pipeline/library.rs:695), so each user also starts an empty library. And until #264 lands, the preload's done marks are lost too (#128). It may be best merged together with another translator change, such as #303 or #304, so users pay for one re-translation instead of two.How it was tested
c75b8c58(onmainf3840d73)cargo clippy -p darner-shader --lib --locked -- -D warnings: clean.=0and other values than1change, from on to off.lower/tests.rsis#[ignore]).Checklist
main.docs/asset-policy.md.Checked for overlap
lower.rs. Withgit merge-treeagainst their current heads, none gets a conflict from this branch: #31, #32, #35, #223, #292, #295, #304, #312, #347, #394 and #408 merge cleanly, and the others already conflict withmainin the same places as before.Checked with AI assistance (Claude Code).
🤖 Generated with Claude Code