Shaders: track literal bit operations in sampler descriptors #946
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from fxceless/victory-fork. Originally posted by avt0m4t48 on 2026-11-25T13:27:58Z.
The 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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.