Shaders: a sampler used with and without comparison gets two slots #386
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/386"
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 JordanFableFur on 2026-11-25T00:14:25Z.
What
Static sampler slots were deduplicated by the four sampler words alone. The same words used for an ordinary sample and a comparison sample shared a slot, and the comparison use marked the slot as a comparison one: in comparison-first order the ordinary sample got a comparison handle, in ordinary-first order the earlier ordinary handle and the slot metadata finally disagreed. The DXIL validator requires the sampler kind to match the operation.
A slot is now chosen by the words and whether the use compares, so the two ways get their own slots, and a slot's kind is fixed at its first use instead of folded into the
cmp_samplersbitfield afterwards. The kind travels in the slot list (Lowered.samplersholds(words, is_comparison)), andHostShader::samplerskeeps its words-only shape for the host.Fixes #250.
Testing
Clippy
-D warningsfor both builds and the host-runnablevictory-shadertests (170) pass; the emission paths with samplers (the diff/VALU tests) are Windows+GPU-gated and covered by CI: https://github.com/JordanFableFur/victory-fork/actions/runs/45516463576AI use: written with Codex and Claude Code (GPT-5.2 Codex); reviewed and posted with my approval. No game files were used.
Imported from fxceless/victory-fork. Originally posted by chatgpt-codex-connector[bot] on 2026-11-25T00:14:36Z.
Codex Review Summary: ✅ Completed
This comment shows the latest Codex review activity on this pull request.
6390a18ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.
Imported from fxceless/victory-fork. Originally posted by kaayzouee on 2026-11-25T01:03:31Z.
Duplicate of #276?
Imported from fxceless/victory-fork. Originally posted by JordanFableFur on 2026-11-25T01:46:25Z.
Closing — #276 fixes the same issue (#250) and was opened first, with a dxil.dll-validated test. Thanks for flagging.
Pull request closed