Shaders: a uniform branch can choose between two immediate samplers (40 programs) #1096
No reviewers
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!1096
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1096"
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?
@m335671 on GitHub · 2026-11-25 19:22 UTC · original
m335671:port/sampler-choice→main· +70 −5 · 1 files · 1 commits · openWhat
On current
main, 40 programs fail translation withemit: a descriptor chosen by control flow. In each of them, a uniform branch picks one of two immediate (constant) samplers before an image sample. This ports DexNom's fix from DexNom/VIctoryddb7332(GPL-3.0, thelower.rspart only):imagenow takes the sampler and callsimage_with_sampler; everything else is unchanged.The commit also carries DexNom's unit test,
a_uniform_branch_can_choose_between_immediate_samplers.Testing
RTX 4070 12 GB (32-lane waves), driver 32.0.16.2124, Windows 11 Pro 26300.
Offline,
VICTORY_HOST_MAX_WAVE=32 victory translate --list --pipelinesover the title's whole shader pack, compared program by program by hash:a descriptor chosen by control flowmaind510ee4maincreates is lost, and no other failure count changes.PS_TexturedDeferred(10);PS_TexturedLit_ReflectionMap,PS_TexturedLit_8andPS_MirrorReflectionTexturedDeferred(7 each);PS_PuddleDetect(6);MST_DS_TerrainTransform(2); andMST_DS_CascadeShadows_PNTriTexture(1).cargo test -p victory-shader immediate_samplerspasses.In the title (diagnostics build, prewarmed cache, checkpoint to the first room, then idle;
VICTORY_INDIRECT_WINDOW=1 VICTORY_LEVELS_ON_DEMAND=1 VICTORY_JOIN_PARTS=1 VICTORY_BACK_OWN_VIEW=1 VICTORY_COPY_PLAIN=1 VICTORY_INDIRECT_GATHER=1 VICTORY_CARD_REHASH_RUNS=1, with #1093 atVICTORY_AMBIENT=0.6):Not tested: scenes that use these programs, other GPUs, and DexNom's integer-target blending change from the same commit (left out here).
Credit: the lowering and its test are DexNom's; this PR only applies them to this tree.
AI use: Claude Code (Claude Opus 5.5) ported the change, ran the checks on my machine and wrote this description.
🤖 Generated with Claude Code
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.