tests: start the Vulkan harness without byte-granular robust buffer access #2038

Open
github-bot wants to merge 3 commits from github-bot/gh-2038 into main AGit
Owner

@⁠Nawid3333 on GitHub · 2026-10-31 22:35 UTC · original
Nawid3333:fix/harness-robust-optional → main · +73 −13 · 1 files · 3 commits · open

Summary

Fixes #2036. Since ee034be4b the Vulkan harness of shader_recompiler_compute_tests requires robustStorageBufferAccessSizeAlignment == 1 and always requests VK_EXT_pipeline_robustness, so it stops before the first case on AMD GPUs: the drivers here report an alignment of 4 and do not list the extension (pipeline robustness is core in Vulkan 1.4, the harness creates a 1.3 instance). This change uses per-pipeline robust buffer access only where the device supports it and skips only the robust buffer cases elsewhere.

Change

  • The harness looks for VK_EXT_pipeline_robustness in the device extension list. Robust pipelines are used when the extension is listed and robustBufferAccess2, pipelineRobustness and an alignment of 1 are supported.
  • Only then does it request the extension and chain the pipeline robustness features.
  • Otherwise it prints [host] RobustBufferPipelines unavailable, robust buffer cases will be skipped, like the rasterization notice, and RunCase reports the cases whose profile uses robust buffer access as skipped.
  • computeDerivativeGroupQuads is optional in the same way (second commit; RADV reports it as false on gfx11 and gfx12, see lordra9-svg's comment below): the harness requests it, and VK_KHR_compute_shader_derivatives (third commit), only where the device lists the extension and has the feature, prints [host] ComputeDerivativeQuads unavailable, compute derivative cases will be skipped otherwise, and RunCase skips the cases whose compiled program uses compute derivatives (ImageSampleAndGather in the default list).
  • On devices that support all of it, the requested extensions, features and cases stay the same.

Tests

On a Radeon RX 9070 XT (AMD driver 26.10.1) and an AMD Radeon integrated GPU (driver 25.10.42), Windows 11:

  • the harness starts;
  • --robust-buffer-only: CheckedBufferTailAccessesWave32 and CheckedBufferTailAccessesWave64 pass (the shader bounds-check path these GPUs use in games), the five robust buffer cases are reported as skipped;
  • --buffer-cache-gc-only passes;
  • --robust-buffer-only under VK_LAYER_KHRONOS_validation: no validation messages.

Second commit, on the RX 9070 XT with --image-sample-offset-only: all 13 cases pass. With computeDerivativeGroupQuads forced to false after the feature query (a local change, not in this PR), the branch without the second commit stops with VulkanHarness failed at dispatch: image gather, MinLod or compute derivative quads are not supported; with it, ImageSampleAndGather is reported as skipped and the other 12 cases pass. The same with the extension removed from the harness's copy of the device extension list (third commit).

Notes

  • The full suite on the RX 9070 XT then stops at GpuSelectedFormattedRgba16Store (expected 0xc0003c04, got 0xc0003c03: the float16 rounding of formatted stores; #1588, which would have changed that rounding, was closed without being merged), so the checks above use the --*-only groups.

AI use: drafted with AI assistance (Claude Code); verified and tested by me.

**@⁠Nawid3333** on GitHub · 2026-10-31 22:35 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/2038) `Nawid3333:fix/harness-robust-optional` → `main` · +73 −13 · 1 files · 3 commits · open ## Summary Fixes #2036. Since ee034be4b the Vulkan harness of `shader_recompiler_compute_tests` requires `robustStorageBufferAccessSizeAlignment == 1` and always requests `VK_EXT_pipeline_robustness`, so it stops before the first case on AMD GPUs: the drivers here report an alignment of 4 and do not list the extension (pipeline robustness is core in Vulkan 1.4, the harness creates a 1.3 instance). This change uses per-pipeline robust buffer access only where the device supports it and skips only the robust buffer cases elsewhere. ## Change - The harness looks for `VK_EXT_pipeline_robustness` in the device extension list. Robust pipelines are used when the extension is listed and `robustBufferAccess2`, `pipelineRobustness` and an alignment of 1 are supported. - Only then does it request the extension and chain the pipeline robustness features. - Otherwise it prints `[host] RobustBufferPipelines unavailable, robust buffer cases will be skipped`, like the rasterization notice, and `RunCase` reports the cases whose profile uses robust buffer access as skipped. - `computeDerivativeGroupQuads` is optional in the same way (second commit; RADV reports it as false on gfx11 and gfx12, see lordra9-svg's comment below): the harness requests it, and `VK_KHR_compute_shader_derivatives` (third commit), only where the device lists the extension and has the feature, prints `[host] ComputeDerivativeQuads unavailable, compute derivative cases will be skipped` otherwise, and `RunCase` skips the cases whose compiled program uses compute derivatives (`ImageSampleAndGather` in the default list). - On devices that support all of it, the requested extensions, features and cases stay the same. ## Tests On a Radeon RX 9070 XT (AMD driver 26.10.1) and an AMD Radeon integrated GPU (driver 25.10.42), Windows 11: - the harness starts; - `--robust-buffer-only`: `CheckedBufferTailAccessesWave32` and `CheckedBufferTailAccessesWave64` pass (the shader bounds-check path these GPUs use in games), the five robust buffer cases are reported as skipped; - `--buffer-cache-gc-only` passes; - `--robust-buffer-only` under `VK_LAYER_KHRONOS_validation`: no validation messages. Second commit, on the RX 9070 XT with `--image-sample-offset-only`: all 13 cases pass. With `computeDerivativeGroupQuads` forced to false after the feature query (a local change, not in this PR), the branch without the second commit stops with `VulkanHarness failed at dispatch: image gather, MinLod or compute derivative quads are not supported`; with it, `ImageSampleAndGather` is reported as skipped and the other 12 cases pass. The same with the extension removed from the harness's copy of the device extension list (third commit). ## Notes - The full suite on the RX 9070 XT then stops at `GpuSelectedFormattedRgba16Store` (expected `0xc0003c04`, got `0xc0003c03`: the float16 rounding of formatted stores; #1588, which would have changed that rounding, was closed without being merged), so the checks above use the `--*-only` groups. AI use: drafted with AI assistance (Claude Code); verified and tested by me.
The harness reports the skipped robust buffer compute cases in the summary.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
RADV reports computeDerivativeGroupQuads as false on gfx11 and gfx12
(computeDerivativeGroupLinear is true), and the harness required it, so
the suite stopped before its first case on Linux AMD. The harness now
requests quad derivatives only where the device has them and reports the
compute cases whose program uses compute derivatives as skipped
elsewhere, as it does for the robust buffer cases.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
A device that does not list VK_KHR_compute_shader_derivatives failed
device creation, since the harness requested the extension in every
case. Quad derivatives now count as available only when the extension is
listed, and the harness requests the extension and chains its feature
only then.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 10:12:40 +00:00
Author
Owner

@⁠coderabbitai[bot] on GitHub · 2026-10-31 22:42 UTC · original · edited 2026-11-25 17:11 UTC

Explain Change →

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
Walkthrough

The Vulkan harness now detects robust-pipeline support from extension availability, feature bits, and storage-buffer alignment. It configures pipeline robustness only when supported. It also detects compute derivative-quad support and requests related features only when available. Compute cases that require unavailable capabilities are skipped. The test runner reports skipped compute cases separately from skipped graphics cases.

Suggested reviewers: nmzik

Change: Other · Severity of issue fixed: Medium

Merge Risk: Low · previous review e4b4c

The Vulkan test harness now starts on more devices, but a device that does not list the compute-derivatives extension would still abort at device creation before any case runs. The impact is limited to test setup on uncommon drivers. Gate the extension on availability before merging, or accept the limitation explicitly.

Pre-merge checks: Passed 3 · Inconclusive 1

Failed Failed checks: 1 inconclusive

Check name Status Explanation Resolution
Out of Scope Changes check Inconclusive The prior review found only tests/ShaderRecompilerComputeTests.cpp changed, and only robust-buffer gating hunks. The new commit e4b4cbe, titled 'tests: skip only the compute derivative cases without q… Update the PR description to state the derivative-quad change and its reason, or confirm it belongs in this PR. Make the derivative-quad diff readable so the scope can be checked. Confirm that the change only affects the test harness.
Passed Passed checks: 3 passed

Check name Status Explanation
Title check Passed The title names the main change: the Vulkan compute test harness now starts without requiring byte-granular robust buffer access. The changeset matches this. It adds detection of pipeline robustness a…
Description check Passed The description is related to the changeset. It explains the cause (robustStorageBufferAccessSizeAlignment requirement and unconditional VK_EXT_pipeline_robustness request), the fix (detect extension …
Linked Issues check Passed [#2036] requires that byte-granular robust buffer cases run only when robustStorageBufferAccessSizeAlignment is 1, that the harness not request VK_EXT_pipeline_robustness when the driver does not list…
Full details: Title check

Explanation

The title names the main change: the Vulkan compute test harness now starts without requiring byte-granular robust buffer access. The changeset matches this. It adds detection of pipeline robustness and skips robust buffer cases when unsupported. The title is specific and concise, and it fits the objectives, which also cover the related derivative-quad handling. It is 74 characters, which is acceptable.

Full details: Description check

Explanation

The description is related to the changeset. It explains the cause (robustStorageBufferAccessSizeAlignment requirement and unconditional VK_EXT_pipeline_robustness request), the fix (detect extension and features, use robust pipelines only when supported, skip robust buffer cases otherwise), and the testing done on AMD GPUs. It also lists known follow-up failures tied to other issues.

Full details: Linked Issues check

Explanation

[#2036] requires that byte-granular robust buffer cases run only when robustStorageBufferAccessSizeAlignment is 1, that the harness not request VK_EXT_pipeline_robustness when the driver does not list it, and that other cases use the shader bounds-check path. The earlier whole-PR review (merge base 93cce66 to head 7effce5, file tests/ShaderRecompilerComputeTests.cpp) found this gating in place: robust pipelines require the extension to be listed, robustBufferAccess2, pipelineRobustness and alignment 1. Otherwise the harness prints a notice, and RunCase skips only robust buffer cases. The commit history shows the later commit e4b4cbe changes only the compute-derivative handling, so the robust gating is not expected to have changed. The current diff could not be read in this review, so that point rests on commit subjects and the prior review. The author's AMD test runs are not independently verified. The Vulkan 1.4 core query path in the issue is a suggested direction, not an acceptance condition.

Full details: Out of Scope Changes check

Explanation

The prior review found only tests/ShaderRecompilerComputeTests.cpp changed, and only robust-buffer gating hunks. The new commit e4b4cbe, titled 'tests: skip only the compute derivative cases without quad derivatives', adds compute-derivative-quad detection (DerivativeQuadsSupported) and skips compute cases that need quad derivatives. The raw summary describes this change. The objectives say it responds to a Linux/RADV reviewer comment. Issue #2036 concerns Windows device setup and does not mention derivatives. The current PR description does not mention this change. The diff hunks could not be read, so I cannot confirm that the change stays test-only and gated on device capability. No emulator runtime code is shown in the summary. The #1588, #1811 and #2010 issues are not attempted.

Resolution

Update the PR description to state the derivative-quad change and its reason, or confirm it belongs in this PR. Make the derivative-quad diff readable so the scope can be checked. Confirm that the change only affects the test harness.

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

**@⁠coderabbitai[bot]** on GitHub · 2026-10-31 22:42 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/2038#issuecomment-6550115928) · edited 2026-11-25 17:11 UTC <!-- coderabbit-ai-generated:v1 --> <!-- 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/2038?scope=ghh_OusAJGA4HG8ljoOV0wJvVx8NmnZIjc2DdjmxOu0xZWA&amp;cs_source=review_comment"><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-stack-buttons-v1/explain-change-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-stack-buttons-v1/explain-change.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-stack-buttons-v1/explain-change.svg" alt="Explain Change →" height="32"></picture></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. > > - Last reviewed commit: e4b4cbe4a096ffa366652d88b1750b495214a255 > - Latest commit, not reviewed: 3c61f7077246e43a0790887f85b5d6a67abb94b0 > > 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 --> <!-- walkthrough_start --> <details> <summary><strong>Walkthrough</strong></summary> <dl> <dd> <br> The Vulkan harness now detects robust-pipeline support from extension availability, feature bits, and storage-buffer alignment. It configures pipeline robustness only when supported. It also detects compute derivative-quad support and requests related features only when available. Compute cases that require unavailable capabilities are skipped. The test runner reports skipped compute cases separately from skipped graphics cases. **Suggested reviewers:** `nmzik` </dd> </dl> </details> <!-- walkthrough_end --> <!-- change_assessment_start --> <!-- change_assessment_commit:"e4b4cbe4a096ffa366652d88b1750b495214a255" --> <!-- change_assessment_priority:{"version":1,"urgency":"p2","manual":false} --> **Change:** Other · **Severity of issue fixed:** Medium <!-- change_assessment_end --> <details> <summary><strong>Merge Risk:</strong> <strong><picture><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/risk-low-16.svg" width="16" height="16" align="absmiddle" alt=""></picture> Low</strong> · previous review <code>e4b4c</code></summary> <dl> <dd> <br> <!-- final_review_risk_start --> <!-- final_review_risk_label **Merge Risk:** **🔵 Low** · up to `e4b4c` --> <!-- final_review_risk_coverage:{"sourceCommitId":"e4b4cbe4a096ffa366652d88b1750b495214a255","coveredCommitId":"e4b4cbe4a096ffa366652d88b1750b495214a255","kind":"reviewed"} --> The Vulkan test harness now starts on more devices, but a device that does not list the compute-derivatives extension would still abort at device creation before any case runs. The impact is limited to test setup on uncommon drivers. Gate the extension on availability before merging, or accept the limitation explicitly. <!-- final_review_risk_end --> </dd> </dl> </details> <!-- pre_merge_checks_walkthrough_start --> <details> <summary><strong>Pre-merge checks: <sup><picture><img src="https://storage.googleapis.com/coderabbit_public_assets/pre-merge-checks-counter-passed-14-v2.svg" width="14" height="14" align="middle" alt="Passed" title="Passed"></picture></sup> 3 · <sup><picture><img src="https://storage.googleapis.com/coderabbit_public_assets/pre-merge-checks-counter-inconclusive-14-v2.svg" width="14" height="14" align="middle" alt="Inconclusive" title="Inconclusive"></picture></sup> 1</strong></summary> <dl> <dd> <br> <strong><sup><picture><img src="https://storage.googleapis.com/coderabbit_public_assets/pre-merge-checks-counter-failed-14-v2.svg" width="14" height="14" align="middle" alt="Failed" title="Failed"></picture></sup> Failed checks: 1 inconclusive</strong> | Check name | Status | Explanation | Resolution | | :------------------------ | :--------------------------------------------------------------------------------------------------------: | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Out of Scope Changes check | ![Inconclusive](https://storage.googleapis.com/coderabbit_public_assets/pre-merge-checks-inconclusive.svg) | The prior review found only tests/ShaderRecompilerComputeTests.cpp changed, and only robust-buffer gating hunks. The new commit e4b4cbe, titled 'tests: skip only the compute derivative cases without q… | Update the PR description to state the derivative-quad change and its reason, or confirm it belongs in this PR. Make the derivative-quad diff readable so the scope can be checked. Confirm that the change only affects the test harness. | <details> <summary><strong><sup><picture><img src="https://storage.googleapis.com/coderabbit_public_assets/pre-merge-checks-counter-passed-14-v2.svg" width="14" height="14" align="middle" alt="Passed" title="Passed"></picture></sup> Passed checks: 3 passed</strong></summary> <dl> <dd> <br> | Check name | Status | Explanation | | :----------------- | :--------------------------------------------------------------------------------------------: | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Title check | ![Passed](https://storage.googleapis.com/coderabbit_public_assets/pre-merge-checks-passed.svg) | The title names the main change: the Vulkan compute test harness now starts without requiring byte-granular robust buffer access. The changeset matches this. It adds detection of pipeline robustness a… | | Description check | ![Passed](https://storage.googleapis.com/coderabbit_public_assets/pre-merge-checks-passed.svg) | The description is related to the changeset. It explains the cause (robustStorageBufferAccessSizeAlignment requirement and unconditional VK_EXT_pipeline_robustness request), the fix (detect extension … | | Linked Issues check | ![Passed](https://storage.googleapis.com/coderabbit_public_assets/pre-merge-checks-passed.svg) | [`#2036`] requires that byte-granular robust buffer cases run only when robustStorageBufferAccessSizeAlignment is 1, that the harness not request VK_EXT_pipeline_robustness when the driver does not list… | <details> <summary><strong>Full details: Title check</strong></summary> <dl> <dd> <br> **Explanation** The title names the main change: the Vulkan compute test harness now starts without requiring byte-granular robust buffer access. The changeset matches this. It adds detection of pipeline robustness and skips robust buffer cases when unsupported. The title is specific and concise, and it fits the objectives, which also cover the related derivative-quad handling. It is 74 characters, which is acceptable. </dd> </dl> </details> <details> <summary><strong>Full details: Description check</strong></summary> <dl> <dd> <br> **Explanation** The description is related to the changeset. It explains the cause (robustStorageBufferAccessSizeAlignment requirement and unconditional VK_EXT_pipeline_robustness request), the fix (detect extension and features, use robust pipelines only when supported, skip robust buffer cases otherwise), and the testing done on AMD GPUs. It also lists known follow-up failures tied to other issues. </dd> </dl> </details> <details> <summary><strong>Full details: Linked Issues check</strong></summary> <dl> <dd> <br> **Explanation** [`#2036`] requires that byte-granular robust buffer cases run only when robustStorageBufferAccessSizeAlignment is 1, that the harness not request VK_EXT_pipeline_robustness when the driver does not list it, and that other cases use the shader bounds-check path. The earlier whole-PR review (merge base 93cce66 to head 7effce5, file tests/ShaderRecompilerComputeTests.cpp) found this gating in place: robust pipelines require the extension to be listed, robustBufferAccess2, pipelineRobustness and alignment 1. Otherwise the harness prints a notice, and RunCase skips only robust buffer cases. The commit history shows the later commit e4b4cbe changes only the compute-derivative handling, so the robust gating is not expected to have changed. The current diff could not be read in this review, so that point rests on commit subjects and the prior review. The author's AMD test runs are not independently verified. The Vulkan 1.4 core query path in the issue is a suggested direction, not an acceptance condition. </dd> </dl> </details> </dd> </dl> </details> <details> <summary><strong>Full details: Out of Scope Changes check</strong></summary> <dl> <dd> <br> **Explanation** The prior review found only tests/ShaderRecompilerComputeTests.cpp changed, and only robust-buffer gating hunks. The new commit e4b4cbe, titled 'tests: skip only the compute derivative cases without quad derivatives', adds compute-derivative-quad detection (DerivativeQuadsSupported) and skips compute cases that need quad derivatives. The raw summary describes this change. The objectives say it responds to a Linux/RADV reviewer comment. Issue `#2036` concerns Windows device setup and does not mention derivatives. The current PR description does not mention this change. The diff hunks could not be read, so I cannot confirm that the change stays test-only and gated on device capability. No emulator runtime code is shown in the summary. The `#1588`, `#1811` and `#2010` issues are not attempted. **Resolution** Update the PR description to state the derivative-quad change and its reason, or confirm it belongs in this PR. Make the derivative-quad diff readable so the scope can be checked. Confirm that the change only affects the test harness. </dd> </dl> </details> </dd> </dl> </details> <!-- pre_merge_checks_walkthrough_end --> <!-- tips_start --> Thanks for using [CodeRabbit](https://coderabbit.ai?utm_source=oss&utm_medium=github&utm_campaign=KytyPS5/KytyPS5&utm_content=2038)! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. <details> <summary><strong>Share</strong></summary> <dl> <dd> <br> - [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) </dd> </dl> </details> <!-- tips_end -->
@ -25460,0 +25505,4 @@
!vulkan->RobustPipelinesSupported()) {
std::printf("[compute] %-32s skipped, no byte-granular robustBufferAccess2\n", test.name);
vulkan->SkipComputeCase();
return;
Author
Owner

@⁠coderabbitai[bot] on GitHub · 2026-11-01 16:46 UTC · original · edited 2026-11-01 18:23 UTC

Minor · Functional Correctness · Quick win

Include compute skips in the final summary.

When this branch skips a case, the full run can still report all cases passed. SkippedCaseCount() tracks only graphics skips. (raw.githubusercontent.com)

Count compute skips separately and report them in the final summary. The exit status can remain successful.

✅ Addressed in commit 62b48dc

**@⁠coderabbitai[bot]** on GitHub · 2026-11-01 16:46 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/2038#discussion_r4436492498) · edited 2026-11-01 18:23 UTC <!-- coderabbit-ai-generated:v1 --> **<picture><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/amber-16.svg" width="16" height="16" align="absmiddle" alt=""></picture> Minor** · **Functional Correctness** · **Quick win** **Include compute skips in the final summary.** When this branch skips a case, the full run can still report `all cases passed`. `SkippedCaseCount()` tracks only graphics skips. ([raw.githubusercontent.com](https://raw.githubusercontent.com/KytyPS5/KytyPS5/fab15b180fc15124127b8c064dcfb4ce0807e1f9/tests/ShaderRecompilerComputeTests.cpp)) Count compute skips separately and report them in the final summary. The exit status can remain successful. <!-- cr-indicator-types:potential_issue --> <!-- cr-comment:v1:e1525e10f04c98c3b13792e7 --> <!-- This is an auto-generated reply by CodeRabbit --> ✅ Addressed in commit 62b48dc
Author
Owner

@⁠coderabbitai[bot] on GitHub · 2026-11-01 16:46 UTC · original · reviewed

Actionable comments posted: 1


Review info
Run configuration
Commits

Reviewing files that changed from the base of the PR and between 00024caa002cf68848a6be2147cc2506c8d058fe and fab15b180fc15124127b8c064dcfb4ce0807e1f9.

Files selected for processing: 1
  • tests/ShaderRecompilerComputeTests.cpp

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

**@⁠coderabbitai[bot]** on GitHub · 2026-11-01 16:46 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/2038#pullrequestreview-5729184857) · **reviewed** <!-- coderabbit-ai-generated:v1 --> **Actionable comments posted: 1** --- <details> <summary><picture><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/info.svg" width="16" height="16" align="absmiddle" alt=""></picture> Review info</summary> <dl> <dd> <details> <summary><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/cog-dark.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/cog.svg" width="16" height="16" align="absmiddle" alt=""></picture> Run configuration</summary> <dl> <dd> - **Source mode**: Auto - **Repository**: [KytyPS5/KytyPS5](<https://github.com/KytyPS5/KytyPS5>) - **Branch**: [main](<https://github.com/KytyPS5/KytyPS5/tree/main>) - **File**: [.coderabbit.yaml](<https://github.com/KytyPS5/KytyPS5/blob/893b03552699dc873474023bc1f4c69c57fb36b2/.coderabbit.yaml>) - **Commit**: [893b035](<https://github.com/KytyPS5/KytyPS5/commit/893b03552699dc873474023bc1f4c69c57fb36b2>) - **Layers**: Repository YAML - **Review profile**: CHILL - **Plan**: Advanced - **Run ID**: `a321258f-0f3b-45cb-a8c0-a3bb1625609e` </dd> </dl> </details> <details> <summary><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/git-commit-horizontal-dark.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/git-commit-horizontal.svg" width="16" height="16" align="absmiddle" alt=""></picture> Commits</summary> <dl> <dd> Reviewing files that changed from the base of the PR and between 00024caa002cf68848a6be2147cc2506c8d058fe and fab15b180fc15124127b8c064dcfb4ce0807e1f9. </dd> </dl> </details> <details> <summary><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/file-plus-corner-dark.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/file-plus-corner.svg" width="16" height="16" align="absmiddle" alt=""></picture> Files selected for processing: 1</summary> <dl> <dd> * `tests/ShaderRecompilerComputeTests.cpp` </dd> </dl> </details> **Included review availability:** This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review. </dd> </dl> </details> <!-- This is an auto-generated comment by CodeRabbit for review status --> <!-- coderabbit-review-publication v1 publication=cd8fc79b-b0ca-4f9a-8364-f6b2dad03a3a attempt=279c9048-c84b-4d71-a258-cdc07aa5bb84 batch=1/1 -->
@ -25460,0 +25505,4 @@
!vulkan->RobustPipelinesSupported()) {
std::printf("[compute] %-32s skipped, no byte-granular robustBufferAccess2\n", test.name);
vulkan->SkipComputeCase();
return;
Author
Owner

@⁠Nawid3333 on GitHub · 2026-11-01 18:11 UTC · original

Done in 62b48dc9b: compute cases skipped for missing byte-granular robustBufferAccess2 are counted, and the summary prints N compute cases skipped next to the graphics count. The exit status stays 0.

**@⁠Nawid3333** on GitHub · 2026-11-01 18:11 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/2038#discussion_r4436777509) Done in 62b48dc9b: compute cases skipped for missing byte-granular `robustBufferAccess2` are counted, and the summary prints `N compute cases skipped` next to the graphics count. The exit status stays 0.
@ -25460,0 +25505,4 @@
!vulkan->RobustPipelinesSupported()) {
std::printf("[compute] %-32s skipped, no byte-granular robustBufferAccess2\n", test.name);
vulkan->SkipComputeCase();
return;
Author
Owner

@⁠coderabbitai[bot] on GitHub · 2026-11-01 18:19 UTC · original · edited 2026-11-01 18:39 UTC

Minor · Functional Correctness · Quick win

Supported by static analysis

Script executed:

set -eu
file=tests/ShaderRecompilerComputeTests.cpp
printf '%s\n' '--- relevant symbols and case ---'
rg -n -F -- \
  -e 'RobustBufferProfile' \
  -e 'RobustBufferAtomicOutOfRange' \
  -e 'CheckedBuffer' \
  -e 'RunCase' \
  -e 'robust_buffer_access' \
  -e 'OpULessThan' \
  "$file" | sed -n '1,220p'
printf '%s\n' '--- profile and shader-generation blocks ---'
sed -n '18660,18725p;23145,23205p;34350,34520p' "$file"
printf '%s\n' '--- exact base-to-head diff at RunCase and case/profile definitions ---'
git diff --no-ext-diff --unified=80 893b03552699dc873474023bc1f4c69c57fb36b2 62b48dc9bbf7c2c041e3d3fdb85706f9b0ebad7a -- "$file" | sed -n '/RunCase/,+180p'
printf '%s\n' '--- all base-to-head hunks near robust atomic case ---'
git diff --no-ext-diff --unified=30 893b03552699dc873474023bc1f4c69c57fb36b2 62b48dc9bbf7c2c041e3d3fdb85706f9b0ebad7a -- "$file" | grep -n -C 35 -E 'RobustBufferAtomicOutOfRange|RobustBufferProfile|robust_buffer_access|RobustPipelinesSupported' || true

Repository: KytyPS5/KytyPS5

Length of output: 32857


Script executed:

set -eu
file=tests/ShaderRecompilerComputeTests.cpp
printf '%s\n' '--- exact symbol locations ---'
rg -n -F -e 'struct TestCase' -e 'TestCase {' -e 'CompileCase' -e 'RobustBufferProfile' -e 'RobustBufferAtomicOutOfRange' -e 'required_spirv' -e 'profile =' -- "$file" | sed -n '1,240p'
printf '%s\n' '--- TestCase declaration and compile path ---'
sed -n '1800,1945p;21850,22080p;22960,23145p' "$file"
printf '%s\n' '--- atomic registration and nearby MakeCases ---'
rg -n -F -e 'RobustBufferAtomicOutOfRange()' -e 'BufferTailAccesses(' -e 'RobustBufferWrappedAddresses(' -- "$file"
sed -n '34500,34780p;34780,35080p' "$file"
printf '%s\n' '--- profile references in CompileCase and dispatch ---'
rg -n -C 8 -F -e 'test.profile' -e 'robust_buffer_access' -- "$file" | sed -n '1,260p'

Repository: KytyPS5/KytyPS5

Length of output: 42394


Script executed:

set -eu
printf '%s\n' '--- profile declarations ---'
rg -n -F -e 'struct ShaderProfile' -e 'Maintenance8Profile' -e 'robust_buffer_access' --glob '*.{h,hpp,cpp,cc,cxx}' . | sed -n '1,220p'
printf '%s\n' '--- local profile and TestCase context ---'
sed -n '1325,1410p;1660,1760p' tests/ShaderRecompilerComputeTests.cpp
printf '%s\n' '--- emitter branches consuming robust_buffer_access ---'
rg -n -C 12 -F -e 'robust_buffer_access' --glob '*.{h,hpp,cpp,cc,cxx}' . | sed -n '1,360p'

Repository: KytyPS5/KytyPS5

Length of output: 41547


Script executed:

set -eu
file=src/graphics/shader/recompiler/backend/spirv/spirvEmitterMemory.cpp
printf '%s\n' '--- atomic emission symbols ---'
rg -n -F -e 'EmitAtomic' -e 'BUFFER_ATOMIC_ADD' -e 'EmitStorageElementInBounds' -- "$file" | sed -n '1,180p'
printf '%s\n' '--- atomic emitter blocks ---'
sed -n '1180,1325p;1500,1635p' "$file"

Repository: KytyPS5/KytyPS5

Length of output: 16037


Run RobustBufferAtomicOutOfRange with the checked profile.

RobustBufferAtomicOutOfRange requires OpULessThan, so it does not need byte-granular pipeline robustness. Its current RobustBufferProfile assignment makes RunCase skip it on such devices. Remove that assignment so the case uses the default checked profile and remains covered.

Suggested fix
-  test.profile = &RobustBufferProfile;
   test.required_spirv = {"OpULessThan"};
**@⁠coderabbitai[bot]** on GitHub · 2026-11-01 18:19 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/2038#discussion_r4436801065) · edited 2026-11-01 18:39 UTC <!-- coderabbit-ai-generated:v1 --> **<picture><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/amber-16.svg" width="16" height="16" align="absmiddle" alt=""></picture> Minor** · **Functional Correctness** · **Quick win** <details> <summary><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/review-details-dark.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/review-details.svg" width="16" height="16" align="absmiddle" alt=""></picture> Supported by static analysis</summary> <dl> <dd> Script executed: ```bash set -eu file=tests/ShaderRecompilerComputeTests.cpp printf '%s\n' '--- relevant symbols and case ---' rg -n -F -- \ -e 'RobustBufferProfile' \ -e 'RobustBufferAtomicOutOfRange' \ -e 'CheckedBuffer' \ -e 'RunCase' \ -e 'robust_buffer_access' \ -e 'OpULessThan' \ "$file" | sed -n '1,220p' printf '%s\n' '--- profile and shader-generation blocks ---' sed -n '18660,18725p;23145,23205p;34350,34520p' "$file" printf '%s\n' '--- exact base-to-head diff at RunCase and case/profile definitions ---' git diff --no-ext-diff --unified=80 893b03552699dc873474023bc1f4c69c57fb36b2 62b48dc9bbf7c2c041e3d3fdb85706f9b0ebad7a -- "$file" | sed -n '/RunCase/,+180p' printf '%s\n' '--- all base-to-head hunks near robust atomic case ---' git diff --no-ext-diff --unified=30 893b03552699dc873474023bc1f4c69c57fb36b2 62b48dc9bbf7c2c041e3d3fdb85706f9b0ebad7a -- "$file" | grep -n -C 35 -E 'RobustBufferAtomicOutOfRange|RobustBufferProfile|robust_buffer_access|RobustPipelinesSupported' || true ``` Repository: KytyPS5/KytyPS5 Length of output: 32857 --- Script executed: ```bash set -eu file=tests/ShaderRecompilerComputeTests.cpp printf '%s\n' '--- exact symbol locations ---' rg -n -F -e 'struct TestCase' -e 'TestCase {' -e 'CompileCase' -e 'RobustBufferProfile' -e 'RobustBufferAtomicOutOfRange' -e 'required_spirv' -e 'profile =' -- "$file" | sed -n '1,240p' printf '%s\n' '--- TestCase declaration and compile path ---' sed -n '1800,1945p;21850,22080p;22960,23145p' "$file" printf '%s\n' '--- atomic registration and nearby MakeCases ---' rg -n -F -e 'RobustBufferAtomicOutOfRange()' -e 'BufferTailAccesses(' -e 'RobustBufferWrappedAddresses(' -- "$file" sed -n '34500,34780p;34780,35080p' "$file" printf '%s\n' '--- profile references in CompileCase and dispatch ---' rg -n -C 8 -F -e 'test.profile' -e 'robust_buffer_access' -- "$file" | sed -n '1,260p' ``` Repository: KytyPS5/KytyPS5 Length of output: 42394 --- Script executed: ```bash set -eu printf '%s\n' '--- profile declarations ---' rg -n -F -e 'struct ShaderProfile' -e 'Maintenance8Profile' -e 'robust_buffer_access' --glob '*.{h,hpp,cpp,cc,cxx}' . | sed -n '1,220p' printf '%s\n' '--- local profile and TestCase context ---' sed -n '1325,1410p;1660,1760p' tests/ShaderRecompilerComputeTests.cpp printf '%s\n' '--- emitter branches consuming robust_buffer_access ---' rg -n -C 12 -F -e 'robust_buffer_access' --glob '*.{h,hpp,cpp,cc,cxx}' . | sed -n '1,360p' ``` Repository: KytyPS5/KytyPS5 Length of output: 41547 --- Script executed: ```bash set -eu file=src/graphics/shader/recompiler/backend/spirv/spirvEmitterMemory.cpp printf '%s\n' '--- atomic emission symbols ---' rg -n -F -e 'EmitAtomic' -e 'BUFFER_ATOMIC_ADD' -e 'EmitStorageElementInBounds' -- "$file" | sed -n '1,180p' printf '%s\n' '--- atomic emitter blocks ---' sed -n '1180,1325p;1500,1635p' "$file" ``` Repository: KytyPS5/KytyPS5 Length of output: 16037 --- </dd> </dl> </details> **Run `RobustBufferAtomicOutOfRange` with the checked profile.** `RobustBufferAtomicOutOfRange` requires `OpULessThan`, so it does not need byte-granular pipeline robustness. Its current `RobustBufferProfile` assignment makes `RunCase` skip it on such devices. Remove that assignment so the case uses the default checked profile and remains covered. <details> <summary>Suggested fix</summary> <dl> <dd> ```diff - test.profile = &RobustBufferProfile; test.required_spirv = {"OpULessThan"}; ``` </dd> </dl> </details> <!-- fingerprinting:phantom:medusa:caracal --> <!-- cr-indicator-types:potential_issue --> <!-- cr-comment:v1:da8a337c108f7c4d81b8114a --> <!-- This is an auto-generated reply by CodeRabbit -->
Author
Owner

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

Actionable comments posted: 1


Review info
Run configuration
Commits

Reviewing files that changed from the base of the PR and between fab15b180fc15124127b8c064dcfb4ce0807e1f9 and 62b48dc9bbf7c2c041e3d3fdb85706f9b0ebad7a.

Files selected for processing: 1
  • tests/ShaderRecompilerComputeTests.cpp

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

**@⁠coderabbitai[bot]** on GitHub · 2026-11-01 18:19 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/2038#pullrequestreview-5729537817) · **reviewed** <!-- coderabbit-ai-generated:v1 --> **Actionable comments posted: 1** --- <details> <summary><picture><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/info.svg" width="16" height="16" align="absmiddle" alt=""></picture> Review info</summary> <dl> <dd> <details> <summary><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/cog-dark.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/cog.svg" width="16" height="16" align="absmiddle" alt=""></picture> Run configuration</summary> <dl> <dd> - **Source mode**: Auto - **Repository**: [KytyPS5/KytyPS5](<https://github.com/KytyPS5/KytyPS5>) - **Branch**: [main](<https://github.com/KytyPS5/KytyPS5/tree/main>) - **File**: [.coderabbit.yaml](<https://github.com/KytyPS5/KytyPS5/blob/893b03552699dc873474023bc1f4c69c57fb36b2/.coderabbit.yaml>) - **Commit**: [893b035](<https://github.com/KytyPS5/KytyPS5/commit/893b03552699dc873474023bc1f4c69c57fb36b2>) - **Layers**: Repository YAML - **Review profile**: CHILL - **Plan**: Advanced - **Run ID**: `ea3a5607-97f3-416d-a75a-287d2bb8ec2e` </dd> </dl> </details> <details> <summary><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/git-commit-horizontal-dark.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/git-commit-horizontal.svg" width="16" height="16" align="absmiddle" alt=""></picture> Commits</summary> <dl> <dd> Reviewing files that changed from the base of the PR and between fab15b180fc15124127b8c064dcfb4ce0807e1f9 and 62b48dc9bbf7c2c041e3d3fdb85706f9b0ebad7a. </dd> </dl> </details> <details> <summary><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/file-plus-corner-dark.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/file-plus-corner.svg" width="16" height="16" align="absmiddle" alt=""></picture> Files selected for processing: 1</summary> <dl> <dd> * `tests/ShaderRecompilerComputeTests.cpp` </dd> </dl> </details> **Included review availability:** This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review. </dd> </dl> </details> <!-- This is an auto-generated comment by CodeRabbit for review status --> <!-- coderabbit-review-publication v1 publication=08ed884b-de69-4c75-85d8-2a8194607787 attempt=90d4dc24-589f-496f-ba0d-28f1af46e841 batch=1/1 -->
@ -25460,0 +25505,4 @@
!vulkan->RobustPipelinesSupported()) {
std::printf("[compute] %-32s skipped, no byte-granular robustBufferAccess2\n", test.name);
vulkan->SkipComputeCase();
return;
Author
Owner

@⁠coderabbitai[bot] on GitHub · 2026-11-01 18:24 UTC · original

@⁠Nawid3333 Thanks for the fix in 62b48dc9b. The separate compute skip count and summary address this finding. Keeping exit status 0 is appropriate.


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-11-01 18:24 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/2038#discussion_r4436816106) <!-- coderabbit-ai-generated:v1 --> @⁠Nawid3333 Thanks for the fix in `62b48dc9b`. The separate compute skip count and summary address this finding. Keeping exit status 0 is appropriate. --- <!-- 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=Catch%20hidden%20skips%3A%20count%20compute%20cases%20separately%20in%20the%20final%20summary%2C%20so%20%E2%80%9Call%20passed%E2%80%9D%20stays%20honest%20without%20changing%20exit%20status.%20Try%20%40coderabbitai%20%F0%9F%90%87&url=https%3A%2F%2Fgithub.com%2FKytyPS5%2FKytyPS5%2Fpull%2F2038%23discussion_r4436492498)? Thank you for using CodeRabbit! <!-- end of auto-generated comment: tweet message by coderabbit.ai --> Review thread resolved. <sub><i>You are interacting with an AI system.</i></sub> <!-- This is an auto-generated reply by CodeRabbit -->
@ -25460,0 +25505,4 @@
!vulkan->RobustPipelinesSupported()) {
std::printf("[compute] %-32s skipped, no byte-granular robustBufferAccess2\n", test.name);
vulkan->SkipComputeCase();
return;
Author
Owner

@⁠Nawid3333 on GitHub · 2026-11-01 18:38 UTC · original

I'd keep the profile. The case comes from ee034be4b and checks that a buffer atomic keeps its explicit bounds check under the robust profile: with the default profile every access is bounds-checked, so OpULessThan would be there for another reason and the case would no longer test that. The OpULessThan check runs in CompileCase (CheckSpirvEmission), before the skip in RunCase, so it still runs on devices without byte-granular robustBufferAccess2; only the dispatch is skipped.

**@⁠Nawid3333** on GitHub · 2026-11-01 18:38 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/2038#discussion_r4436861340) I'd keep the profile. The case comes from ee034be4b and checks that a buffer atomic keeps its explicit bounds check under the robust profile: with the default profile every access is bounds-checked, so `OpULessThan` would be there for another reason and the case would no longer test that. The `OpULessThan` check runs in `CompileCase` (`CheckSpirvEmission`), before the skip in `RunCase`, so it still runs on devices without byte-granular `robustBufferAccess2`; only the dispatch is skipped.
@ -25460,0 +25505,4 @@
!vulkan->RobustPipelinesSupported()) {
std::printf("[compute] %-32s skipped, no byte-granular robustBufferAccess2\n", test.name);
vulkan->SkipComputeCase();
return;
Author
Owner

@⁠coderabbitai[bot] on GitHub · 2026-11-01 18:39 UTC · original

@⁠Nawid3333 You're right. RobustBufferProfile is essential to the regression test: it checks that atomics retain explicit bounds checks under the robust profile. Switching to the default checked profile would no longer test that behavior.

CompileCase runs CheckSpirvEmission before the RunCase skip, so the OpULessThan assertion remains covered when dispatch is unavailable. Keep the profile assignment. I withdraw this finding.

Review thread resolved.

You are interacting with an AI system.

**@⁠coderabbitai[bot]** on GitHub · 2026-11-01 18:39 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/2038#discussion_r4436862356) <!-- coderabbit-ai-generated:v1 --> @⁠Nawid3333 You're right. `RobustBufferProfile` is essential to the regression test: it checks that atomics retain explicit bounds checks under the robust profile. Switching to the default checked profile would no longer test that behavior. `CompileCase` runs `CheckSpirvEmission` before the `RunCase` skip, so the `OpULessThan` assertion remains covered when dispatch is unavailable. Keep the profile assignment. I withdraw this finding. <!-- <review_comment_withdrawn> --> Review thread resolved. <sub><i>You are interacting with an AI system.</i></sub> <!-- This is an auto-generated reply by CodeRabbit -->
Author
Owner

@⁠lordra9-svg on GitHub · 2026-11-25 13:01 UTC · original

Verified this branch on Linux/RADV (RX 7800 XT, Mesa 25.3.6, Vulkan 1.4.328). The robust-buffer
stop is gone:

[host]    RobustBufferPipelines     unavailable, robust buffer cases will be skipped

but the harness still aborts before the first compute case:

ShaderRecompilerComputeTests: VulkanHarness failed at dispatch: image gather, MinLod or compute
derivative quads are not supported

The missing feature is computeDerivativeGroupQuads. RADV reports it false for both gfx11/gfx12
devices, while shaderImageGatherExtended and shaderResourceMinLod are true:

computeDerivativeGroupQuads  = false
computeDerivativeGroupLinear = true

(RX 7800 XT and Raphael iGPU, vulkaninfo.)

So the suite still cannot start on Linux AMD: the robust-pipeline skip this PR adds has a matching
requirement at tests/ShaderRecompilerComputeTests.cpp:24871, which aborts the whole harness before
any case runs. If the Linux path is in scope, the derivative-quad cases need the same treatment as
the rasterization and robust-buffer cases (run the linear cases; skip only the quad-dependent ones,
such as ComputeDerivativesDevice). If #2036 is meant to be Windows-only, it would help to state
that in the PR.

Repro: build shader_recompiler_compute_tests on this branch and run it without arguments.

**@⁠lordra9-svg** on GitHub · 2026-11-25 13:01 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/2038#issuecomment-7163175800) Verified this branch on Linux/RADV (RX 7800 XT, Mesa 25.3.6, Vulkan 1.4.328). The robust-buffer stop is gone: ``` [host] RobustBufferPipelines unavailable, robust buffer cases will be skipped ``` but the harness still aborts before the first compute case: ``` ShaderRecompilerComputeTests: VulkanHarness failed at dispatch: image gather, MinLod or compute derivative quads are not supported ``` The missing feature is `computeDerivativeGroupQuads`. RADV reports it false for both gfx11/gfx12 devices, while `shaderImageGatherExtended` and `shaderResourceMinLod` are true: ``` computeDerivativeGroupQuads = false computeDerivativeGroupLinear = true ``` (RX 7800 XT and Raphael iGPU, `vulkaninfo`.) So the suite still cannot start on Linux AMD: the robust-pipeline skip this PR adds has a matching requirement at `tests/ShaderRecompilerComputeTests.cpp:24871`, which aborts the whole harness before any case runs. If the Linux path is in scope, the derivative-quad cases need the same treatment as the rasterization and robust-buffer cases (run the linear cases; skip only the quad-dependent ones, such as `ComputeDerivativesDevice`). If #2036 is meant to be Windows-only, it would help to state that in the PR. Repro: build `shader_recompiler_compute_tests` on this branch and run it without arguments.
Author
Owner

@⁠coderabbitai[bot] on GitHub · 2026-11-25 16:55 UTC · original · edited 2026-11-25 17:11 UTC
On tests/ShaderRecompilerComputeTests.cpp line 25000 (outdated):

@@ -24966,7 +24997,7 @@ class VulkanHarness {
     device_features13.synchronization2 = true;
     vk::PhysicalDeviceComputeShaderDerivativesFeaturesKHR derivatives{};
     derivatives.pNext = &device_features13;
-    derivatives.computeDerivativeGroupQuads = true;
+    derivatives.computeDerivativeGroupQuads = m_derivative_quads;

Major · Stability & Availability · Quick win

Make the derivative extension optional with the feature.

If a device does not advertise VK_KHR_compute_shader_derivatives, setting this feature to false does not enable the fallback. device_extensions still requests the extension unconditionally. vkCreateDevice then returns VK_ERROR_EXTENSION_NOT_PRESENT, before any non-derivative case runs. (raw.githubusercontent.com)

Check extension availability and conditionally add the extension and its feature structure. Preserve the current path when quad support is available.

✅ Addressed in commit 3c61f70

**@⁠coderabbitai[bot]** on GitHub · 2026-11-25 16:55 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/2038#discussion_r4698070877) · edited 2026-11-25 17:11 UTC On `tests/ShaderRecompilerComputeTests.cpp` line 25000 (outdated): ```diff @@ -24966,7 +24997,7 @@ class VulkanHarness { device_features13.synchronization2 = true; vk::PhysicalDeviceComputeShaderDerivativesFeaturesKHR derivatives{}; derivatives.pNext = &device_features13; - derivatives.computeDerivativeGroupQuads = true; + derivatives.computeDerivativeGroupQuads = m_derivative_quads; ``` <!-- coderabbit-ai-generated:v1 --> **<picture><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/major-16.svg" width="16" height="16" align="absmiddle" alt=""></picture> Major** · **Stability & Availability** · **Quick win** **Make the derivative extension optional with the feature.** If a device does not advertise `VK_KHR_compute_shader_derivatives`, setting this feature to false does not enable the fallback. `device_extensions` still requests the extension unconditionally. `vkCreateDevice` then returns `VK_ERROR_EXTENSION_NOT_PRESENT`, before any non-derivative case runs. ([raw.githubusercontent.com](https://raw.githubusercontent.com/KytyPS5/KytyPS5/e4b4cbe4a096ffa366652d88b1750b495214a255/tests/ShaderRecompilerComputeTests.cpp)) Check extension availability and conditionally add the extension and its feature structure. Preserve the current path when quad support is available. <!-- fingerprinting:phantom:poseidon:wombat61 --> <!-- cr-indicator-types:potential_issue --> <!-- cr-comment:v1:3c6a4cd16497adf371773202 --> <!-- This is an auto-generated comment by CodeRabbit --> ✅ Addressed in commit 3c61f70
Author
Owner

@⁠coderabbitai[bot] on GitHub · 2026-11-25 16:55 UTC · original · reviewed

Actionable comments posted: 1

Review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 7effce5ddebb497ce8f36e38d418a8b294e9b83c and e4b4cbe4a0.

Files selected for processing: 1

  • tests/ShaderRecompilerComputeTests.cpp

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

**@⁠coderabbitai[bot]** on GitHub · 2026-11-25 16:55 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/2038#pullrequestreview-6061588312) · **reviewed** <!-- coderabbit-ai-generated:v1 --> **Actionable comments posted: 1** <h6> <details> <summary><picture><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/info.svg" width="12" height="12" align="absmiddle" alt=""></picture> Review info</summary> <dl> <dd> <br> <details> <summary><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/cog-dark.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/cog.svg" width="16" height="16" align="absmiddle" alt=""></picture> Run configuration</summary> <dl> <dd> <br> - **Source mode**: Auto - **Repository**: [KytyPS5/KytyPS5](<https://github.com/KytyPS5/KytyPS5>) - **Branch**: [main](<https://github.com/KytyPS5/KytyPS5/tree/main>) - **File**: [.coderabbit.yaml](<https://github.com/KytyPS5/KytyPS5/blob/93cce66564bdced2fc7054ca9794451dfeef4d9d/.coderabbit.yaml>) - **Commit**: [93cce66](<https://github.com/KytyPS5/KytyPS5/commit/93cce66564bdced2fc7054ca9794451dfeef4d9d>) - **Layers**: Repository YAML - **Review profile**: CHILL - **Plan**: Advanced - **Run ID**: `e02ec4d9-d540-43e1-b2d4-7f130ab8acd8` </dd> </dl> </details> <details> <summary><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/git-commit-horizontal-dark.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/git-commit-horizontal.svg" width="16" height="16" align="absmiddle" alt=""></picture> Commits</summary> <dl> <dd> <br> Reviewing files that changed from the base of the PR and between 7effce5ddebb497ce8f36e38d418a8b294e9b83c and e4b4cbe4a096ffa366652d88b1750b495214a255. </dd> </dl> </details> <details> <summary><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/file-plus-corner-dark.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/file-plus-corner.svg" width="16" height="16" align="absmiddle" alt=""></picture> Files selected for processing: 1</summary> <dl> <dd> <br> * `tests/ShaderRecompilerComputeTests.cpp` </dd> </dl> </details> **Included review availability:** This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review. </dd> </dl> </details> </h6> <!-- This is an auto-generated comment by CodeRabbit for review status --> <!-- coderabbit-review-publication v1 publication=b3da96c1-7879-4c87-8ede-964a6397ce37 attempt=6e142512-79a2-4ff0-8e47-facac2211a57 batch=1/1 -->
Author
Owner

@⁠Nawid3333 on GitHub · 2026-11-25 17:31 UTC · original

@⁠lordra9-svg Thanks, that was the next stop: the harness required computeDerivativeGroupQuads. e4b4cbe4a makes it optional like the robust buffer path: without quads it prints a ComputeDerivativeQuads notice, and RunCase skips the cases whose compiled program uses compute derivatives (ImageSampleAndGather in the default list). With quads forced off in the harness here (--image-sample-offset-only), the branch without this commit stops at the harness with your message, and with it that case is skipped and the other 12 pass. With quads, ImageSampleAndGather runs as before. The branch is now three commits on current main (93cce6656); the third requests the extension itself only where it is listed (CodeRabbit's point below).

**@⁠Nawid3333** on GitHub · 2026-11-25 17:31 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/2038#issuecomment-7169628564) @⁠lordra9-svg Thanks, that was the next stop: the harness required `computeDerivativeGroupQuads`. e4b4cbe4a makes it optional like the robust buffer path: without quads it prints a `ComputeDerivativeQuads` notice, and `RunCase` skips the cases whose compiled program uses compute derivatives (`ImageSampleAndGather` in the default list). With quads forced off in the harness here (`--image-sample-offset-only`), the branch without this commit stops at the harness with your message, and with it that case is skipped and the other 12 pass. With quads, `ImageSampleAndGather` runs as before. The branch is now three commits on current main (93cce6656); the third requests the extension itself only where it is listed (CodeRabbit's point below).
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/2038/head:github-bot/gh-2038'
git switch 'github-bot/gh-2038'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-2038'
git switch 'github-bot/gh-2038'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-2038'
git switch 'github-bot/gh-2038'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-2038'
git switch 'main'
git merge --squash 'github-bot/gh-2038'
git switch 'main'
git merge --ff-only 'github-bot/gh-2038'
git switch 'main'
git merge 'github-bot/gh-2038'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.