shader: dispatch indirect image gathers and queries per candidate #1320

Closed
github-bot wants to merge 7 commits from gh-pr/1320/head into gh-pr/1320/base
Owner

@⁠NeySlim on GitHub · 2026-10-09 17:55 UTC · original
NeySlim:fix/indirect-image-queries → main · +374 −67 · 4 files · 7 commits · closed without merging

Problem

An image whose T# is chosen at run time from a descriptor table (indirect image table) is specialized into one root plus one child image per distinct candidate. Since 71c72617, ImageSampleRaw and ImageRead select the candidate through EmitImageAccess. ImageGatherRaw (IMAGE_GATHER4*), ImageQueryDimensions (IMAGE_GET_RESINFO) and ImageQueryLod (IMAGE_GET_LOD) still use the root resource only, i.e. the first candidate.

Resource tracking accepts these tables for any image opcode. In the full pipeline a gather or query through such a table then stops at EXIT_IF(image.indirect_root == memory.resource && inst.GetOpcode() != ValueOpcode::ImageSampleRaw && inst.GetOpcode() != ValueOpcode::ImageRead) in ApplyResourceSpecialization, with no hint of the cause. The emitter on its own reads the root image for every lane. A store or atomic through such a table hits the same EXIT_IF.

Change

  • spirvEmitterImage.cpp: gathers (2D/2D-array/cube, the 1D LZ path and dynamic-mip gathers), dimension queries and LOD queries go through EmitImageAccess, like samples and loads. Each candidate uses its own dimension, cube flag and mip count for coordinates, offsets and the mip switch; the image operand already gets NonUniform from LoadImageDescriptor.
  • Storage images (store, atomics) through an indirect table remain unsupported, now explicitly: BuildResourceSpecialization fails with indirect storage image table at pc 0x... is unsupported, and the emitter refuses such an access instead of using the root image.
  • A table may mix 2D and 2D-array (including cube) candidates. Loads and gathers now read coordinates, LOD and sample index in the instruction's own address layout: a candidate component the instruction does not supply reads 0, an extra one is dropped. Before, a 2D mip load selecting a 2D-array candidate used its LOD as the layer. CoordF32 gets the same supplied argument as in #1255, so both PRs apply one rule.
  • The EXIT_IF in ApplyResourceSpecialization now states that invariant: only sampled-class operations reach an indirect root.

Related: #852 made loads and dimension queries use indirect candidates on top of #811, which was closed; it conflicts with current main and also accepts mixed 2D/3D candidates, which this change does not.

Test

  • IndirectImageOperations (GPU, shader_recompiler_compute_tests, also under --indirect-image-only): a 2D-array load (slice 1, LOD 0), a gather and a size query through an indirect table with a native array run of three 2D candidates and a separate 2-layer 2D-array candidate whose slice 1 holds a distinct value. Each lane selects a candidate and stores the three results. Wave32 and wave64. It checks that both a native array run and a candidate switch are emitted and that the fetched image carries NonUniform. On main the loads are right, the gathers return the root texel and the queries the root width for every lane.
  • indirect image table operations (resource_tracking_tests): a load, a gather and a size query through a tracked image table materialize and specialize with all candidates (on main the gather and the query stop at the EXIT_IF); a store through the same table is rejected by MaterializeResources (on main it was accepted, then aborted in ApplyResourceSpecialization).
  • IndirectImageOperations also loads LOD 1 with a 2D instruction through the same table: the 2D-array candidate must return layer 0 of mip 1 (on main it returned layer 1).
  • Not covered by a GPU test: QueryLod (needs derivatives), the 1D LZ gather and dynamic-mip gathers through a table. They use the same per-candidate path.

Validation

  • Linux, AMD Radeon 8060S (RADV, Mesa 26.2.3), clang RelWithDebInfo.
  • Both new tests fail with the shader commit reverted and pass with it.
  • ctest -R "resource_|shader_cfg" passes.
  • shader_recompiler_compute_tests run one case per process: same results as main.
  • Not run on Windows; the change has no platform-specific code.

AI use

The investigation, code and tests were produced with Claude Code (Anthropic) and reviewed by a second, independent Claude Code agent. I checked the change and the test results; I have not run a game that hits this path.

🤖 Generated with Claude Code

**@⁠NeySlim** on GitHub · 2026-10-09 17:55 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/1320) `NeySlim:fix/indirect-image-queries` → `main` · +374 −67 · 4 files · 7 commits · closed without merging ## Problem An image whose T# is chosen at run time from a descriptor table (indirect image table) is specialized into one root plus one child image per distinct candidate. Since 71c72617, `ImageSampleRaw` and `ImageRead` select the candidate through `EmitImageAccess`. `ImageGatherRaw` (IMAGE_GATHER4*), `ImageQueryDimensions` (IMAGE_GET_RESINFO) and `ImageQueryLod` (IMAGE_GET_LOD) still use the root resource only, i.e. the first candidate. Resource tracking accepts these tables for any image opcode. In the full pipeline a gather or query through such a table then stops at `EXIT_IF(image.indirect_root == memory.resource && inst.GetOpcode() != ValueOpcode::ImageSampleRaw && inst.GetOpcode() != ValueOpcode::ImageRead)` in `ApplyResourceSpecialization`, with no hint of the cause. The emitter on its own reads the root image for every lane. A store or atomic through such a table hits the same `EXIT_IF`. ## Change - `spirvEmitterImage.cpp`: gathers (2D/2D-array/cube, the 1D LZ path and dynamic-mip gathers), dimension queries and LOD queries go through `EmitImageAccess`, like samples and loads. Each candidate uses its own dimension, cube flag and mip count for coordinates, offsets and the mip switch; the image operand already gets `NonUniform` from `LoadImageDescriptor`. - Storage images (store, atomics) through an indirect table remain unsupported, now explicitly: `BuildResourceSpecialization` fails with `indirect storage image table at pc 0x... is unsupported`, and the emitter refuses such an access instead of using the root image. - A table may mix 2D and 2D-array (including cube) candidates. Loads and gathers now read coordinates, LOD and sample index in the instruction's own address layout: a candidate component the instruction does not supply reads 0, an extra one is dropped. Before, a 2D mip load selecting a 2D-array candidate used its LOD as the layer. `CoordF32` gets the same `supplied` argument as in #1255, so both PRs apply one rule. - The `EXIT_IF` in `ApplyResourceSpecialization` now states that invariant: only sampled-class operations reach an indirect root. Related: #852 made loads and dimension queries use indirect candidates on top of #811, which was closed; it conflicts with current main and also accepts mixed 2D/3D candidates, which this change does not. ## Test - `IndirectImageOperations` (GPU, `shader_recompiler_compute_tests`, also under `--indirect-image-only`): a 2D-array load (slice 1, LOD 0), a gather and a size query through an indirect table with a native array run of three 2D candidates and a separate 2-layer 2D-array candidate whose slice 1 holds a distinct value. Each lane selects a candidate and stores the three results. Wave32 and wave64. It checks that both a native array run and a candidate switch are emitted and that the fetched image carries `NonUniform`. On main the loads are right, the gathers return the root texel and the queries the root width for every lane. - `indirect image table operations` (`resource_tracking_tests`): a load, a gather and a size query through a tracked image table materialize and specialize with all candidates (on main the gather and the query stop at the `EXIT_IF`); a store through the same table is rejected by `MaterializeResources` (on main it was accepted, then aborted in `ApplyResourceSpecialization`). - `IndirectImageOperations` also loads LOD 1 with a 2D instruction through the same table: the 2D-array candidate must return layer 0 of mip 1 (on main it returned layer 1). - Not covered by a GPU test: QueryLod (needs derivatives), the 1D LZ gather and dynamic-mip gathers through a table. They use the same per-candidate path. ## Validation - Linux, AMD Radeon 8060S (RADV, Mesa 26.2.3), clang RelWithDebInfo. - Both new tests fail with the shader commit reverted and pass with it. - `ctest -R "resource_|shader_cfg"` passes. - `shader_recompiler_compute_tests` run one case per process: same results as main. - Not run on Windows; the change has no platform-specific code. ## AI use The investigation, code and tests were produced with Claude Code (Anthropic) and reviewed by a second, independent Claude Code agent. I checked the change and the test results; I have not run a game that hits this path. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:53:02 +00:00
github-bot closed this pull request 2026-11-26 09:53:02 +00:00
Author
Owner

@⁠coderabbitai[bot] on GitHub · 2026-10-09 18:01 UTC · original · edited 2026-10-09 19:05 UTC

Review in Change Stack →

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository: KytyPS5/KytyPS5/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: f3b650e7-218f-40a5-954d-457e51a1bbf2

📥 Commits

Reviewing files that changed from the base of the PR and between 6e607830f8 and 6b28b3fdf9.


📒 Files selected for processing (1)
  • tests/ShaderRecompilerComputeTests.cpp

Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 0 remain after this review.



📝 Walkthrough

Walkthrough

Image queries, reads, and gathers now use selected indirect image resources and array indices. Coordinate helpers limit coordinates to those supplied by the instruction. Indirect image roots must use sampled resources, and indirect storage-image access is rejected. Resource-tracking and compute tests cover supported operations, write rejection, candidate selection, and wave32 and wave64 results.

Suggested reviewers: nmzik


Priority: ➖ Normal

Change: Bug fix

Merge Risk: ⚪ Minimal · up to 6b28b

The prior wave64 coverage concern is resolved, and no remaining merge risk is established by the supplied review context.

Pre-merge checks | Passed 4 | Inconclusive 1

❌ Failed checks (1 inconclusive)

Check name Status Explanation Resolution
Docstring Coverage Inconclusive Docstring coverage is 33.33% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 15 functions across 3 files. (1 skipped: … Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check Passed The title clearly and concisely summarizes the main change: routing indirect image gathers and queries to the appropriate candidate resources.
Description check Passed The description directly explains the indirect-image gather and query changes, unsupported storage-image operations, address-layout handling, tests, and validation.
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.

Full details: Docstring Coverage

Explanation

Docstring coverage is 33.33% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 15 functions across 3 files. (1 skipped: 1 too large.)



  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

**@⁠coderabbitai[bot]** on GitHub · 2026-10-09 18:01 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/1320#issuecomment-6086449817) · edited 2026-10-09 19:05 UTC <!-- This is an auto-generated comment: summarize by coderabbit.ai --> <!-- review_stack_entry_start --> <a href="https://app.coderabbit.ai/change-stack/KytyPS5/KytyPS5/pull/1320?scope=ghh_OusAJGA4HG8ljoOV0wJvVx8NmnZIjc2DdjmxOu0xZWA&amp;cs_source=review_comment"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-stack-in-coderabbit-ui-dark.svg?v=2" alt="Review in Change Stack →" width="220" height="32"></a> <!-- review_stack_entry_end --> <!-- This is an auto-generated comment: review paused by coderabbit.ai --> > [!NOTE] > ## Reviews paused > > It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the `reviews.auto_review.auto_pause_after_reviewed_commits` setting. > > Use the following commands to manage reviews: > - `@coderabbitai resume` to resume automatic reviews. > - `@coderabbitai review` to trigger a single review. > > Use the checkboxes below for quick actions: > - [ ] <!-- {"checkboxId":"7f6cc2e2-2e4e-497a-8c31-c9e4573e93d1"} --> ▶️ Resume reviews > - [ ] <!-- {"checkboxId":"e9bb8d72-00e8-4f67-9cb2-caf3b22574fe"} --> 🔍 Trigger review <!-- end of auto-generated comment: review paused by coderabbit.ai --> <!-- recent_review_start --> No actionable comments were generated in the recent review. 🎉 <details> <summary>ℹ️ Recent review info</summary> <details> <summary>⚙️ Run configuration</summary> - **Configuration used**: Repository: KytyPS5/KytyPS5/.coderabbit.yaml - **Review profile**: CHILL - **Plan**: Advanced - **Run ID**: `f3b650e7-218f-40a5-954d-457e51a1bbf2` <hr> </details> <details> <summary>📥 Commits</summary> Reviewing files that changed from the base of the PR and between 6e607830f85e0499c802861c845030210c409d7b and 6b28b3fdf9ce29e4cf186539a485ed2e3d43d7d3. <hr> </details> <details> <summary>📒 Files selected for processing (1)</summary> * `tests/ShaderRecompilerComputeTests.cpp` <hr> </details> **Included review availability:** This review used your included allowance. Your plan provides up to 8 included reviews per hour; 0 remain after this review. <hr> </details> --- <!-- recent_review_end --> <!-- walkthrough_start --> <details> <summary>📝 Walkthrough</summary> ## Walkthrough Image queries, reads, and gathers now use selected indirect image resources and array indices. Coordinate helpers limit coordinates to those supplied by the instruction. Indirect image roots must use sampled resources, and indirect storage-image access is rejected. Resource-tracking and compute tests cover supported operations, write rejection, candidate selection, and wave32 and wave64 results. **Suggested reviewers:** `nmzik` <hr> </details> <!-- walkthrough_end --> <!-- change_assessment_start --> **Priority:** ➖ Normal <!-- change_assessment_commit:"6b28b3fdf9ce29e4cf186539a485ed2e3d43d7d3" --> **Change:** Bug fix <!-- change_assessment_end --> <!-- final_review_risk_start --> **Merge Risk:** **⚪ Minimal** · up to `6b28b` <!-- final_review_risk_coverage:{"sourceCommitId":"6b28b3fdf9ce29e4cf186539a485ed2e3d43d7d3","coveredCommitId":"6b28b3fdf9ce29e4cf186539a485ed2e3d43d7d3","kind":"reviewed"} --> The prior wave64 coverage concern is resolved, and no remaining merge risk is established by the supplied review context. <!-- final_review_risk_end --> <!-- pre_merge_checks_walkthrough_start --> <details> <summary>Pre-merge checks | <sup><picture><img src="https://storage.googleapis.com/coderabbit_public_assets/pre-merge-checks-counter-passed-14-v1.svg" width="14" height="17" align="middle" alt="Passed" title="Passed"></picture></sup> 4 | <sup><picture><img src="https://storage.googleapis.com/coderabbit_public_assets/pre-merge-checks-counter-inconclusive-14-v1.svg" width="14" height="17" align="middle" alt="Inconclusive" title="Inconclusive"></picture></sup> 1</summary> ### ❌ Failed checks (1 inconclusive) | Check name | Status | Explanation | Resolution | | :---------------- | :--------------------------------------------------------------------------------------------------------: | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :--------------------------------------------------------------------------------- | | Docstring Coverage | ![Inconclusive](https://storage.googleapis.com/coderabbit_public_assets/pre-merge-checks-inconclusive.svg) | Docstring coverage is 33.33% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 15 functions across 3 files. (1 skipped: … | Write docstrings for the functions missing them to satisfy the coverage threshold. | <details> <summary>✅ Passed checks (4 passed)</summary> | Check name | Status | Explanation | | :------------------------ | :--------------------------------------------------------------------------------------------: | :------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Title check | ![Passed](https://storage.googleapis.com/coderabbit_public_assets/pre-merge-checks-passed.svg) | The title clearly and concisely summarizes the main change: routing indirect image gathers and queries to the appropriate candidate resources. | | Description check | ![Passed](https://storage.googleapis.com/coderabbit_public_assets/pre-merge-checks-passed.svg) | The description directly explains the indirect-image gather and query changes, unsupported storage-image operations, address-layout handling, tests, and validation. | | Linked Issues check | ![Passed](https://storage.googleapis.com/coderabbit_public_assets/pre-merge-checks-passed.svg) | Check skipped because no linked issues were found for this pull request. | | Out of Scope Changes check | ![Passed](https://storage.googleapis.com/coderabbit_public_assets/pre-merge-checks-passed.svg) | Check skipped because no linked issues were found for this pull request. | <hr> </details> <details> <summary>Full details: Docstring Coverage</summary> **Explanation** Docstring coverage is 33.33% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 15 functions across 3 files. (1 skipped: 1 too large.) <hr> </details> <hr> </details> <!-- pre_merge_checks_walkthrough_end --> <!-- autopilot:start --> - [ ] <!-- {"checkboxId":"2708ad07-9f24-4260-9c11-7dc76a49f2e3"} --> <strong title="Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts">Autofix</strong> · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts <!-- autopilot:end --> <!-- tips_start --> --- Thanks for using [CodeRabbit](https://coderabbit.ai?utm_source=oss&utm_medium=github&utm_campaign=KytyPS5/KytyPS5&utm_content=1320)! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. <details> <summary>❤️ Share</summary> - [X](https://twitter.com/intent/tweet?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A&url=https%3A//coderabbit.ai) - [Mastodon](https://mastodon.social/share?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A%20https%3A%2F%2Fcoderabbit.ai) - [Reddit](https://www.reddit.com/submit?title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&text=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code.%20Check%20it%20out%3A%20https%3A//coderabbit.ai) - [LinkedIn](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fcoderabbit.ai&mini=true&title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&summary=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code) <hr> </details> <sub>Comment `@coderabbitai help` to get the list of available commands.</sub> <!-- tips_end -->
Author
Owner

@⁠coderabbitai[bot] on GitHub · 2026-10-09 18:01 UTC · original · reviewed

🧹 Nitpick comments (1)
tests/ShaderRecompilerComputeTests.cpp (1)

35553-35554: 🎯 Functional Correctness | 🔵 Trivial | ⚡ Quick win

Cover candidate selection across all wave64 lanes.

The current table has eight entries, so lanes 32–63 expect the root image. The output comparisons do not verify nonuniform candidate selection for those lanes. Extend the mapping to cover all 64 lanes and repeat the candidate pattern.

Suggested test update
-constexpr std::array ordinals{0u, 1u, 2u, 3u, 3u, 2u, 1u, 0u};
+constexpr std::array ordinals{
+    0u, 1u, 2u, 3u, 3u, 2u, 1u, 0u,
+    0u, 1u, 2u, 3u, 3u, 2u, 1u, 0u,
+    0u, 1u, 2u, 3u, 3u, 2u, 1u, 0u,
+    0u, 1u, 2u, 3u, 3u, 2u, 1u, 0u,
+    0u, 1u, 2u, 3u, 3u, 2u, 1u, 0u,
+    0u, 1u, 2u, 3u, 3u, 2u, 1u, 0u,
+    0u, 1u, 2u, 3u, 3u, 2u, 1u, 0u,
+    0u, 1u, 2u, 3u, 3u, 2u, 1u, 0u,
+};

ℹ️ Review info
⚙️ Run configuration
  • Configuration used: Repository: KytyPS5/KytyPS5/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 1b98c3fa-8e4c-4ada-819e-ef2e1a6c4582
📥 Commits

Reviewing files that changed from the base of the PR and between c1926f915d and c99b0c31ed.

📒 Files selected for processing (4)
  • src/graphics/shader/recompiler/backend/spirv/spirvEmitterImage.cpp
  • src/graphics/shader/recompiler/ir/passes/ResourceMaterialization.cpp
  • tests/ResourceTrackingTests.cpp
  • tests/ShaderRecompilerComputeTests.cpp

Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 7 remain after this review.

**@⁠coderabbitai[bot]** on GitHub · 2026-10-09 18:01 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/1320#pullrequestreview-5473643355) · **reviewed** <details> <summary>🧹 Nitpick comments (1)</summary><blockquote> <details> <summary>tests/ShaderRecompilerComputeTests.cpp (1)</summary><blockquote> `35553-35554`: **🎯 Functional Correctness** | **🔵 Trivial** | **⚡ Quick win** **Cover candidate selection across all wave64 lanes.** The current table has eight entries, so lanes 32–63 expect the root image. The output comparisons do not verify nonuniform candidate selection for those lanes. Extend the mapping to cover all 64 lanes and repeat the candidate pattern. <details> <summary>Suggested test update</summary> ```diff -constexpr std::array ordinals{0u, 1u, 2u, 3u, 3u, 2u, 1u, 0u}; +constexpr std::array ordinals{ + 0u, 1u, 2u, 3u, 3u, 2u, 1u, 0u, + 0u, 1u, 2u, 3u, 3u, 2u, 1u, 0u, + 0u, 1u, 2u, 3u, 3u, 2u, 1u, 0u, + 0u, 1u, 2u, 3u, 3u, 2u, 1u, 0u, + 0u, 1u, 2u, 3u, 3u, 2u, 1u, 0u, + 0u, 1u, 2u, 3u, 3u, 2u, 1u, 0u, + 0u, 1u, 2u, 3u, 3u, 2u, 1u, 0u, + 0u, 1u, 2u, 3u, 3u, 2u, 1u, 0u, +}; ``` </details> <!-- cr-comment:v1:890e8a36641791cd2f7e45f9 --> </blockquote></details> </blockquote></details> --- <details> <summary>ℹ️ Review info</summary> <details> <summary>⚙️ Run configuration</summary> - **Configuration used**: Repository: KytyPS5/KytyPS5/.coderabbit.yaml - **Review profile**: CHILL - **Plan**: Advanced - **Run ID**: `1b98c3fa-8e4c-4ada-819e-ef2e1a6c4582` </details> <details> <summary>📥 Commits</summary> Reviewing files that changed from the base of the PR and between c1926f915d2a3f743e1dd482a3b7ff09d750bca6 and c99b0c31ed0cfe5607b62750c396be6e7fd9d262. </details> <details> <summary>📒 Files selected for processing (4)</summary> * `src/graphics/shader/recompiler/backend/spirv/spirvEmitterImage.cpp` * `src/graphics/shader/recompiler/ir/passes/ResourceMaterialization.cpp` * `tests/ResourceTrackingTests.cpp` * `tests/ShaderRecompilerComputeTests.cpp` </details> **Included review availability:** This review used your included allowance. Your plan provides up to 8 included reviews per hour; 7 remain after this review. </details> <!-- This is an auto-generated comment by CodeRabbit for review status --> <!-- coderabbit-review-publication v1 publication=cb3dd089-e207-4150-a2d5-452c6a6dac44 attempt=d5484707-22f0-443c-84bf-2c83ef9b9573 batch=1/1 -->
Author
Owner

@⁠NeySlim on GitHub · 2026-10-09 18:10 UTC · original

Addressed the CodeRabbit nitpick on the 8-entry ordinal table in cd48599d: the map now has 60 entries (an 11-entry pattern), so lanes 32-63 of the wave64 dispatch also select every candidate, and lanes 60-63 still fall past the map and select the root. The test still fails with the shader commit reverted; the GPU suite run one case per process matches main. The Linux CI failure is main's ResourceMaterializationTests.cpp:246 (see #1277).

**@⁠NeySlim** on GitHub · 2026-10-09 18:10 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/1320#issuecomment-6086588854) Addressed the CodeRabbit nitpick on the 8-entry ordinal table in cd48599d: the map now has 60 entries (an 11-entry pattern), so lanes 32-63 of the wave64 dispatch also select every candidate, and lanes 60-63 still fall past the map and select the root. The test still fails with the shader commit reverted; the GPU suite run one case per process matches main. The Linux CI failure is main's ResourceMaterializationTests.cpp:246 (see #1277).
Author
Owner

@⁠coderabbitai[bot] on GitHub · 2026-10-09 18:15 UTC · original · reviewed

🧹 Nitpick comments (1)
tests/ShaderRecompilerComputeTests.cpp (1)

35499-35507: 🎯 Functional Correctness | 🔵 Trivial | ⚡ Quick win

The root fallback is not distinguished from candidate 0.

CheckIndirectImageOperations assigns resource 0 to both mapped candidate-0 lanes and unmapped lanes 60–63. The expected outputs also use the same resource value. Therefore, an implementation that selects candidate 0 instead of the root image for lanes 60–63 can pass this test.

Use a distinct root-image fixture value, then calculate the expected result for lanes beyond ordinals.size() from the root image rather than from candidate ordinal 0.


ℹ️ Review info
⚙️ Run configuration
  • Configuration used: Repository: KytyPS5/KytyPS5/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: e7855de5-dd82-48c9-b8ec-c215d1bc870a
📥 Commits

Reviewing files that changed from the base of the PR and between c99b0c31ed and cd48599dfe.

📒 Files selected for processing (1)
  • tests/ShaderRecompilerComputeTests.cpp

Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 5 remain after this review.

**@⁠coderabbitai[bot]** on GitHub · 2026-10-09 18:15 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/1320#pullrequestreview-5473777269) · **reviewed** <details> <summary>🧹 Nitpick comments (1)</summary><blockquote> <details> <summary>tests/ShaderRecompilerComputeTests.cpp (1)</summary><blockquote> `35499-35507`: **🎯 Functional Correctness** | **🔵 Trivial** | **⚡ Quick win** **The root fallback is not distinguished from candidate 0.** `CheckIndirectImageOperations` assigns resource `0` to both mapped candidate-0 lanes and unmapped lanes 60–63. The expected outputs also use the same resource value. Therefore, an implementation that selects candidate 0 instead of the root image for lanes 60–63 can pass this test. Use a distinct root-image fixture value, then calculate the expected result for lanes beyond `ordinals.size()` from the root image rather than from candidate ordinal 0. <!-- cr-comment:v1:9ea0b1cdfb3a4df21302e61d --> </blockquote></details> </blockquote></details> --- <details> <summary>ℹ️ Review info</summary> <details> <summary>⚙️ Run configuration</summary> - **Configuration used**: Repository: KytyPS5/KytyPS5/.coderabbit.yaml - **Review profile**: CHILL - **Plan**: Advanced - **Run ID**: `e7855de5-dd82-48c9-b8ec-c215d1bc870a` </details> <details> <summary>📥 Commits</summary> Reviewing files that changed from the base of the PR and between c99b0c31ed0cfe5607b62750c396be6e7fd9d262 and cd48599dfefe0e04a4f057ac810a1850873efda7. </details> <details> <summary>📒 Files selected for processing (1)</summary> * `tests/ShaderRecompilerComputeTests.cpp` </details> **Included review availability:** This review used your included allowance. Your plan provides up to 8 included reviews per hour; 5 remain after this review. </details> <!-- This is an auto-generated comment by CodeRabbit for review status --> <!-- coderabbit-review-publication v1 publication=fab7de41-7183-4044-a7a5-52a93476f1e2 attempt=0629d85c-072b-405a-84f0-f606abf631db batch=1/1 -->
Author
Owner

@⁠NeySlim on GitHub · 2026-10-09 18:21 UTC · original

On the root-image nitpick: in this table the root is candidate 0 (indirect_resources[0] is the root resource itself), so lanes past the map and lanes mapped to ordinal 0 read the same image by construction; there is no separate root fixture to tell apart. A wrap or clamp of out-of-range keys would already fail, since lanes 61-63 would then select other candidates. What the fixture did miss is a null or out-of-bounds read, which also returns 0. a87175c0 gives every candidate a nonzero value (the root is now 1.0), so such a read no longer matches the root. The test still fails with the shader commit reverted; the GPU suite run one case per process matches main.

**@⁠NeySlim** on GitHub · 2026-10-09 18:21 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/1320#issuecomment-6086763564) On the root-image nitpick: in this table the root is candidate 0 (`indirect_resources[0]` is the root resource itself), so lanes past the map and lanes mapped to ordinal 0 read the same image by construction; there is no separate root fixture to tell apart. A wrap or clamp of out-of-range keys would already fail, since lanes 61-63 would then select other candidates. What the fixture did miss is a null or out-of-bounds read, which also returns 0. a87175c0 gives every candidate a nonzero value (the root is now 1.0), so such a read no longer matches the root. The test still fails with the shader commit reverted; the GPU suite run one case per process matches main.
Author
Owner

@⁠coderabbitai[bot] on GitHub · 2026-10-09 18:35 UTC · original · reviewed

Caution

Some comments are outside the diff and can’t be posted inline due to GitHub limitations.

⚠️ Outside diff range comments (1)

🟡 Minor · Do not derive the candidate array layer from the root LOD… · spirvEmitterImage.cpp:767-782

src/graphics/shader/recompiler/backend/spirv/spirvEmitterImage.cpp:767-782
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

Do not derive the candidate array layer from the root LOD component.

For a root Dim2D mip load, the IR address contains x, y, and lod. When a Dim2DArray candidate is selected, CoordU32 reads component 2 as the array layer, while LodU32(..., mem.image_dimension) reads the same component as the LOD. A nonzero root LOD can therefore select the wrong array layer.

Passing candidate.dimension to LodU32 is not sufficient. It reads component 3 for the array candidate, but the root address has only three components, so LodU32 returns zero. For a root Dim2DArray selecting a Dim2D candidate, it instead treats the root array-layer component as the candidate LOD.

Define the mixed Dim2D/Dim2DArray address conversion explicitly. Keep the root LOD component, and provide the candidate array-layer component from a valid source or defined default. If no such layer semantics exist, reject the mixed-dimensional table instead of reinterpreting the LOD.

🧹 Nitpick comments (1)
tests/ResourceTrackingTests.cpp (1)

207-300: 🎯 Functional Correctness | 🔵 Trivial | ⚡ Quick win

Add an indirect atomic rejection case.

TestIndirectImageTableOperations covers ImageWrite, but not indirect atomics. The separate ImageAtomicIAdd32 case uses a direct image and checks tracking only. A regression that accepts an indirect atomic can therefore pass these tests. Add ImageAtomicIAdd32 to this table and assert that materialization rejects it.

Suggested fix
-                         ValueOpcode op = ValueOpcode::ImageSampleRaw) {
+                         ValueOpcode op = ValueOpcode::ImageSampleRaw) {
...
   if (op == ValueOpcode::ImageWrite) {
     const auto texel = fixture->Emit(ValueOpcode::CompositeConstructU32x4,
                                      {Value(0u), Value(0u), Value(0u), Value(0u)});
     fixture->Emit(op, {image, fixture->ImageAddress(), texel, Value(true)},
                   fixture->AddMemory(sample, 0x10f0));
     return fixture;
   }
+  if (op == ValueOpcode::ImageAtomicIAdd32) {
+    fixture->Emit(op, {image, fixture->ImageAddress(), Value(1u), Value(true)},
+                  fixture->AddMemory(sample, 0x10f0));
+    return fixture;
+  }
...
-                        ValueOpcode::ImageQueryDimensions, ValueOpcode::ImageWrite}) {
+                        ValueOpcode::ImageQueryDimensions, ValueOpcode::ImageWrite,
+                        ValueOpcode::ImageAtomicIAdd32}) {
...
-    if (op == ValueOpcode::ImageWrite) {
+    if (op == ValueOpcode::ImageWrite || op == ValueOpcode::ImageAtomicIAdd32) {

ℹ️ Review info
⚙️ Run configuration
  • Configuration used: Repository: KytyPS5/KytyPS5/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: f36579ec-1039-4384-80f7-dd9bb7b93aa3
📥 Commits

Reviewing files that changed from the base of the PR and between cd48599dfe and a87175c075.

📒 Files selected for processing (1)
  • tests/ShaderRecompilerComputeTests.cpp

Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 4 remain after this review.

**@⁠coderabbitai[bot]** on GitHub · 2026-10-09 18:35 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/1320#pullrequestreview-5473968899) · **reviewed** > [!CAUTION] > Some comments are outside the diff and can’t be posted inline due to GitHub limitations. > > **⚠️ Outside diff range comments (1)** > > <details> > <summary><strong>🟡 Minor</strong> · Do not derive the candidate array layer from the root LOD… · <code>spirvEmitterImage.cpp:767-782</code></summary><blockquote> > > `src/graphics/shader/recompiler/backend/spirv/spirvEmitterImage.cpp:767-782` > **🎯 Functional Correctness** | **🟡 Minor** | **⚡ Quick win** > > **Do not derive the candidate array layer from the root LOD component.** > > For a root `Dim2D` mip load, the IR address contains `x`, `y`, and `lod`. When a `Dim2DArray` candidate is selected, `CoordU32` reads component 2 as the array layer, while `LodU32(..., mem.image_dimension)` reads the same component as the LOD. A nonzero root LOD can therefore select the wrong array layer. > > Passing `candidate.dimension` to `LodU32` is not sufficient. It reads component 3 for the array candidate, but the root address has only three components, so `LodU32` returns zero. For a root `Dim2DArray` selecting a `Dim2D` candidate, it instead treats the root array-layer component as the candidate LOD. > > Define the mixed `Dim2D`/`Dim2DArray` address conversion explicitly. Keep the root LOD component, and provide the candidate array-layer component from a valid source or defined default. If no such layer semantics exist, reject the mixed-dimensional table instead of reinterpreting the LOD. > > <!-- cr-comment:v1:9917af675c46b1043a7807b8 --> > > </blockquote></details> <details> <summary>🧹 Nitpick comments (1)</summary><blockquote> <details> <summary>tests/ResourceTrackingTests.cpp (1)</summary><blockquote> `207-300`: **🎯 Functional Correctness** | **🔵 Trivial** | **⚡ Quick win** **Add an indirect atomic rejection case.** `TestIndirectImageTableOperations` covers `ImageWrite`, but not indirect atomics. The separate `ImageAtomicIAdd32` case uses a direct image and checks tracking only. A regression that accepts an indirect atomic can therefore pass these tests. Add `ImageAtomicIAdd32` to this table and assert that materialization rejects it. <details> <summary>Suggested fix</summary> ```diff - ValueOpcode op = ValueOpcode::ImageSampleRaw) { + ValueOpcode op = ValueOpcode::ImageSampleRaw) { ... if (op == ValueOpcode::ImageWrite) { const auto texel = fixture->Emit(ValueOpcode::CompositeConstructU32x4, {Value(0u), Value(0u), Value(0u), Value(0u)}); fixture->Emit(op, {image, fixture->ImageAddress(), texel, Value(true)}, fixture->AddMemory(sample, 0x10f0)); return fixture; } + if (op == ValueOpcode::ImageAtomicIAdd32) { + fixture->Emit(op, {image, fixture->ImageAddress(), Value(1u), Value(true)}, + fixture->AddMemory(sample, 0x10f0)); + return fixture; + } ... - ValueOpcode::ImageQueryDimensions, ValueOpcode::ImageWrite}) { + ValueOpcode::ImageQueryDimensions, ValueOpcode::ImageWrite, + ValueOpcode::ImageAtomicIAdd32}) { ... - if (op == ValueOpcode::ImageWrite) { + if (op == ValueOpcode::ImageWrite || op == ValueOpcode::ImageAtomicIAdd32) { ``` </details> <!-- cr-comment:v1:c01d9d3a5e2eabf1b3ddf8ea --> </blockquote></details> </blockquote></details> --- <details> <summary>ℹ️ Review info</summary> <details> <summary>⚙️ Run configuration</summary> - **Configuration used**: Repository: KytyPS5/KytyPS5/.coderabbit.yaml - **Review profile**: CHILL - **Plan**: Advanced - **Run ID**: `f36579ec-1039-4384-80f7-dd9bb7b93aa3` </details> <details> <summary>📥 Commits</summary> Reviewing files that changed from the base of the PR and between cd48599dfefe0e04a4f057ac810a1850873efda7 and a87175c0750e9786021b0e9c2d7cc57b1b91b50b. </details> <details> <summary>📒 Files selected for processing (1)</summary> * `tests/ShaderRecompilerComputeTests.cpp` </details> **Included review availability:** This review used your included allowance. Your plan provides up to 8 included reviews per hour; 4 remain after this review. </details> <!-- This is an auto-generated comment by CodeRabbit for review status --> <!-- coderabbit-review-publication v1 publication=cc17c242-0199-47b1-aaa7-b7b0ab2f4cc6 attempt=34858566-9f92-440e-af28-5562d13e2e4f batch=1/1 -->
Author
Owner

@⁠NeySlim on GitHub · 2026-10-09 18:44 UTC · original

Fixed the mixed 2D/2D-array address layout in eb1690a0 (test in 6e607830): loads and gathers through a candidate now read coordinates, LOD and sample index in the instruction's own layout. A component the instruction does not supply reads 0 and an extra one is dropped, the same rule (and the same CoordF32 change) as #1255 for samples. The new test loads LOD 1 with a 2D instruction through a table that holds a 2D-array candidate; it returned layer 1 before the fix and returns layer 0 of mip 1 now. The test fails with the shader commit reverted; the GPU suite run one case per process matches main. The PR description is updated.

**@⁠NeySlim** on GitHub · 2026-10-09 18:44 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/1320#issuecomment-6087113442) Fixed the mixed 2D/2D-array address layout in eb1690a0 (test in 6e607830): loads and gathers through a candidate now read coordinates, LOD and sample index in the instruction's own layout. A component the instruction does not supply reads 0 and an extra one is dropped, the same rule (and the same `CoordF32` change) as #1255 for samples. The new test loads LOD 1 with a 2D instruction through a table that holds a 2D-array candidate; it returned layer 1 before the fix and returns layer 0 of mip 1 now. The test fails with the shader commit reverted; the GPU suite run one case per process matches main. The PR description is updated.
@ -35396,0 +35530,4 @@
std::fill(pixels.begin() + width * 4u, pixels.end(), std::bit_cast<u32>(30.0f));
textures.push_back(vulkan.CreateImageMips(
name, width, 1, vk::Format::eR32G32B32A32Sfloat, vk::ImageUsageFlagBits::eSampled,
{pixels, mip}, 4u, vk::ImageLayout::eShaderReadOnlyOptimal, vk::ImageType::e2D,
Author
Owner

@⁠coderabbitai[bot] on GitHub · 2026-10-09 18:50 UTC · original · edited 2026-10-09 19:00 UTC

🎯 Functional Correctness | 🟠 Major | ⚡ Quick win

Give candidate 0 a valid two-level mip chain.

Candidate 0 has width 1 and height 1, but {pixels, mip} makes CreateImageMips request two mip levels. Vulkan allows only one mip level for a 1×1 image, so image creation fails before this test checks any indirect operation. Start candidate widths at 2 and update the size-query expectations to match. (docs.vulkan.org)

✅ Confirmed as addressed by @⁠NeySlim

**@⁠coderabbitai[bot]** on GitHub · 2026-10-09 18:50 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/1320#discussion_r4233504928) · edited 2026-10-09 19:00 UTC **🎯 Functional Correctness** | **🟠 Major** | **⚡ Quick win** **Give candidate 0 a valid two-level mip chain.** Candidate 0 has width 1 and height 1, but `{pixels, mip}` makes `CreateImageMips` request two mip levels. Vulkan allows only one mip level for a 1×1 image, so image creation fails before this test checks any indirect operation. Start candidate widths at 2 and update the size-query expectations to match. ([docs.vulkan.org](https://docs.vulkan.org/refpages/latest/refpages/source/VkImageCreateInfo.html?utm_source=openai)) <!-- fingerprinting:phantom:poseidon:wombat --> <!-- cr-indicator-types:potential_issue --> <!-- cr-comment:v1:a8bddda0a7f198e2be1b7328 --> <!-- This is an auto-generated reply by CodeRabbit --> ✅ Confirmed as addressed by @⁠NeySlim <!-- This is an auto-generated comment by CodeRabbit -->
Author
Owner

@⁠coderabbitai[bot] on GitHub · 2026-10-09 18:50 UTC · original · reviewed

Actionable comments posted: 1


ℹ️ Review info
⚙️ Run configuration
  • Configuration used: Repository: KytyPS5/KytyPS5/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 220715a3-6d8e-4a39-9c16-e841013ef66c
📥 Commits

Reviewing files that changed from the base of the PR and between a87175c075 and 6e607830f8.

📒 Files selected for processing (2)
  • src/graphics/shader/recompiler/backend/spirv/spirvEmitterImage.cpp
  • tests/ShaderRecompilerComputeTests.cpp

Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 1 remain after this review.

**@⁠coderabbitai[bot]** on GitHub · 2026-10-09 18:50 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/1320#pullrequestreview-5474110318) · **reviewed** **Actionable comments posted: 1** --- <details> <summary>ℹ️ Review info</summary> <details> <summary>⚙️ Run configuration</summary> - **Configuration used**: Repository: KytyPS5/KytyPS5/.coderabbit.yaml - **Review profile**: CHILL - **Plan**: Advanced - **Run ID**: `220715a3-6d8e-4a39-9c16-e841013ef66c` </details> <details> <summary>📥 Commits</summary> Reviewing files that changed from the base of the PR and between a87175c0750e9786021b0e9c2d7cc57b1b91b50b and 6e607830f85e0499c802861c845030210c409d7b. </details> <details> <summary>📒 Files selected for processing (2)</summary> * `src/graphics/shader/recompiler/backend/spirv/spirvEmitterImage.cpp` * `tests/ShaderRecompilerComputeTests.cpp` </details> **Included review availability:** This review used your included allowance. Your plan provides up to 8 included reviews per hour; 1 remain after this review. </details> <!-- This is an auto-generated comment by CodeRabbit for review status --> <!-- coderabbit-review-publication v1 publication=8e5de295-a590-4b5c-b791-be415ec9531e attempt=723ad045-4023-4789-aa9f-7e4709b34744 batch=1/1 -->
@ -35396,0 +35530,4 @@
std::fill(pixels.begin() + width * 4u, pixels.end(), std::bit_cast<u32>(30.0f));
textures.push_back(vulkan.CreateImageMips(
name, width, 1, vk::Format::eR32G32B32A32Sfloat, vk::ImageUsageFlagBits::eSampled,
{pixels, mip}, 4u, vk::ImageLayout::eShaderReadOnlyOptimal, vk::ImageType::e2D,
Author
Owner

@⁠NeySlim on GitHub · 2026-10-09 18:59 UTC · original

Right, a 1x1 image cannot have a second level. Fixed in 6b28b3fd: candidate widths now start at 2 (2, 3, 4, 5 x 1), so every candidate has a valid two-level chain, and the size-query expectations follow. The LOD-1 load still tells the two layouts apart: the 2D-array candidate's mip 1 holds 200 in layer 0 and 300 in layer 1, and the test fails with the layout commit reverted (and with both shader commits reverted). wave32 and wave64 pass; the GPU suite run one case per process matches main.

**@⁠NeySlim** on GitHub · 2026-10-09 18:59 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/1320#discussion_r4233580767) Right, a 1x1 image cannot have a second level. Fixed in 6b28b3fd: candidate widths now start at 2 (2, 3, 4, 5 x 1), so every candidate has a valid two-level chain, and the size-query expectations follow. The LOD-1 load still tells the two layouts apart: the 2D-array candidate's mip 1 holds 200 in layer 0 and 300 in layer 1, and the test fails with the layout commit reverted (and with both shader commits reverted). wave32 and wave64 pass; the GPU suite run one case per process matches main.
@ -35396,0 +35530,4 @@
std::fill(pixels.begin() + width * 4u, pixels.end(), std::bit_cast<u32>(30.0f));
textures.push_back(vulkan.CreateImageMips(
name, width, 1, vk::Format::eR32G32B32A32Sfloat, vk::ImageUsageFlagBits::eSampled,
{pixels, mip}, 4u, vk::ImageLayout::eShaderReadOnlyOptimal, vk::ImageType::e2D,
Author
Owner

@⁠coderabbitai[bot] on GitHub · 2026-10-09 19:00 UTC · original

@NeySlim, thanks for the fix. Widths 2–5 give every candidate a valid two-level mip chain. The distinct values of 200 and 300 still let the LOD-1 test detect an incorrect array-layer selection.


If you found this review helpful, would you consider giving us a shout-out on X?

Thank you for using CodeRabbit!

✅ Review thread resolved.

You are interacting with an AI system.

**@⁠coderabbitai[bot]** on GitHub · 2026-10-09 19:00 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/1320#discussion_r4233584990) `@NeySlim`, thanks for the fix. Widths 2–5 give every candidate a valid two-level mip chain. The distinct values of 200 and 300 still let the LOD-1 test detect an incorrect array-layer selection. --- <!-- This is an auto-generated comment: tweet message by coderabbit.ai --> If you found this review helpful, would you consider giving us a shout-out on [X](https://twitter.com/intent/tweet?related=CodeRabbitAI&text=1%C3%971%20images%20can%E2%80%99t%20have%202%20mip%20levels.%20Start%20candidates%20at%20width%202%20and%20update%20size-query%20expectations%20so%20Vulkan%20reaches%20the%20indirect-op%20test.%20Try%20%40coderabbitai%20for%20sharp%20review%20catches!%20%F0%9F%8E%AF&url=https%3A%2F%2Fgithub.com%2FKytyPS5%2FKytyPS5%2Fpull%2F1320%23discussion_r4233504928)? Thank you for using CodeRabbit! <!-- end of auto-generated comment: tweet message by coderabbit.ai --> ✅ Review thread resolved. _You are interacting with an AI system._ <!-- This is an auto-generated reply by CodeRabbit -->

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.