shader: split shared samplers on 1D and cube images #1095

Merged
tedin7 merged 1 commit from upstream-pr/1102 into main 2026-11-24 01:36:34 +00:00
tedin7 commented 2026-11-24 01:03:22 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-24T01:03:22Z.


Change

Refs #1079. Extend the standalone sampler split to float32 Texture1D, Texture1DArray, TextureCube and TextureCubeArray in the existing compute and zero-LOD profile. Comparison sampling stays at the original binding, and ordinary sampling uses the new binding.

Verification

Tested commit 1f567822 on Debian 13 with SPIRV-Tools v2025.1.

  • python3 -B tests/spirv_window/check.py exited 0. All four variants passed Vulkan 1.2 validation before and after lowering. Each variant kept both comparison samples on binding 2 and routed the ordinary sample to binding 5.
  • Negative control with the same regression test and the splitter from origin/main at b9beb159: exit 1 on the first variant, Texture1D, after the input passed validation. First diagnostic was %34: only float32 Texture2D and Texture2DArray sampling is supported.
  • python3 -B tests/spirv_window/compare_sampler.py spirv-as spirv-val spirv-cross exited 0. The existing 2D and 2D array fixtures and the 3D and multisample rejection controls passed.
  • python3 -B tests/docs_links_check.py exited 0 and checked 243 links. python3 -B tests/bidi_controls_check.py exited 0 and checked 922 files. git diff --check exited 0.

Evidence and follow-up

The test generates the four variants from the repository's MIT-licensed shared_sampler.spvasm fixture, with the corresponding image capabilities and coordinate widths. spirv-as --target-env vulkan1.2 and spirv-val --target-env vulkan1.2 check each input and output. The new cases exercise offline translation. GPU readback coverage remains on the existing 2D fixture.

The README experiment table and standalone split section in docs/experiments.md document the added dimensions and command. This change was AI-assisted.

Checklist

  • This pull request covers one reviewable behavior.
  • I included the exact command and result for every check I ran.
  • I considered a negative control or failure case for a new fixture.
  • I updated README/docs when a capability or build requirement changed.
  • I did not include game files, dumps, distribution links or secrets.
<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6572206581 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1102). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-24T01:03:22Z. --- ## Change Refs #1079. Extend the standalone sampler split to float32 `Texture1D`, `Texture1DArray`, `TextureCube` and `TextureCubeArray` in the existing compute and zero-LOD profile. Comparison sampling stays at the original binding, and ordinary sampling uses the new binding. ## Verification Tested commit `1f567822` on Debian 13 with SPIRV-Tools v2025.1. - `python3 -B tests/spirv_window/check.py` exited 0. All four variants passed Vulkan 1.2 validation before and after lowering. Each variant kept both comparison samples on binding 2 and routed the ordinary sample to binding 5. - Negative control with the same regression test and the splitter from `origin/main` at `b9beb159`: exit 1 on the first variant, `Texture1D`, after the input passed validation. First diagnostic was `%34: only float32 Texture2D and Texture2DArray sampling is supported`. - `python3 -B tests/spirv_window/compare_sampler.py spirv-as spirv-val spirv-cross` exited 0. The existing 2D and 2D array fixtures and the 3D and multisample rejection controls passed. - `python3 -B tests/docs_links_check.py` exited 0 and checked 243 links. `python3 -B tests/bidi_controls_check.py` exited 0 and checked 922 files. `git diff --check` exited 0. ## Evidence and follow-up The test generates the four variants from the repository's MIT-licensed `shared_sampler.spvasm` fixture, with the corresponding image capabilities and coordinate widths. `spirv-as --target-env vulkan1.2` and `spirv-val --target-env vulkan1.2` check each input and output. The new cases exercise offline translation. GPU readback coverage remains on the existing 2D fixture. The README experiment table and standalone split section in `docs/experiments.md` document the added dimensions and command. This change was AI-assisted. ## Checklist - [x] This pull request covers one reviewable behavior. - [x] I included the exact command and result for every check I ran. - [x] I considered a negative control or failure case for a new fixture. - [x] I updated README/docs when a capability or build requirement changed. - [x] I did not include game files, dumps, distribution links or secrets.
upstream-sync closed this pull request 2026-11-24 06:46:19 +00:00
chatgpt-codex-connector[bot commented 2026-11-24 06:50:00 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by chatgpt-codex-connector[bot] on 2026-11-24T01:03:33Z.


Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-24T01:07:03.394811Z 1f56782 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7118710069 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1102#issuecomment-7118710069). Originally posted by [chatgpt-codex-connector[bot]](https://github.com/chatgpt-codex-connector%5Bbot%5D) on 2026-11-24T01:03:33Z. --- <!-- codex-pull-request-review-summary --> <!-- codex-review-state:v1 {"code_review":{"commit_sha":"1f5678222fa18f6218543b93fd95bb02e343360d","has_any_findings":false,"has_unresolved_findings":false,"status":"completed"},"security_review":{"commit_sha":null,"has_any_findings":null,"has_unresolved_findings":null,"status":null}} --> <details> <summary><strong>Codex Review Summary</strong>: ✅ Completed</summary> This comment shows the latest Codex review activity on this pull request. | Review | Status | Commit | Review trigger | | --- | --- | --- | --- | | 📝 **Code Review** | ✅ **Completed** <relative-time datetime="2026-11-24T01:07:03.394811Z">2026-11-24T01:07:03.394811Z</relative-time> | `1f56782` | PR opened | <details> <summary>ℹ️ About Codex in GitHub</summary> <br/> [Your team has set up Codex to review pull requests in this repo](https://chatgpt.com/codex/cloud/settings/general). Reviews are triggered when you - Open a pull request for review - Mark a draft as ready - Comment "@codex review" or "@codex security review". Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. </details> </details>
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
R0Y00/Xbox2Windows!1095
No description provided.