shader: reject constant descriptors that overlap the primary texture #159
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/160"
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 R0Y00/Xbox2Windows. Originally posted by Vonsek on 2026-11-21T17:47:23Z.
Change
Apply the constant descriptor overlap check to the first texture as well as the second. With the previous check, a shader could load a texture and a constant descriptor from offset zero in the same table and the translator would emit separate desktop bindings for both.
Verification
At
c7725d0on x64 Windows, the focused Python control first failed because offset 0 was accepted. After the change, offsets 0 and 28 are rejected, and the first adjacent aligned placement at byte 32 produces the same HLSL as the baseline at byte 64.The Python control and both CTest cases passed, with no capability skips or pixel mismatches.
Evidence and follow-up
The regression varies the descriptor load in the repository's MIT-licensed, source-built curve shader. It checks byte ranges in the translator's declared binding contract. No game data is needed.
Checklist
AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by saurabhkr1825-svg on 2026-11-21T17:55:56Z.
Review: APPROVED
No description provided.
Imported from R0Y00/Xbox2Windows. Originally posted by chatgpt-codex-connector[bot] on 2026-11-21T17:47:35Z.
Codex Review Summary: ✅ Completed
This comment shows the latest Codex review activity on this pull request.
c7725d0ℹ️ 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.