Shaders: track literal bit operations in sampler descriptors #947
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!947
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-947"
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?
@avt0m4t48 on GitHub · 2026-11-25 13:27 UTC · original
avt0m4t48:fix/literal-sampler-words→main· +36 −2 · 1 files · 1 commits · openThe descriptor tracer already folds inline operands for
s_brev_b32ands_not_b32. The same scalar operations with a literal dword left the sampler word unresolved, so a later image instruction could reject an otherwise constant sampler. Fold the literal operand for either operation's scalar result.A synthetic pixel program verifies the same four sampler dwords with literal moves, a literal bit reverse, and a literal complement. The old tracer refused the bit-reverse variant. On Linux, the full shader library suite passed (172 passed, two ignored), and the Windows MSVC-target check and asset policy passed. The native Windows shader suite also passed (216 passed, three ignored). I did not test a physical GPU or a title shader. Windows run
AI-assisted using Codex.
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.