tests: honor rasterization support in focused modes and enable depthClamp #1154

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

@⁠Nawid3333 on GitHub · 2026-10-07 17:53 UTC · original
Nawid3333:tests/harness-rasterization-skip → main · +40 −9 · 1 files · 3 commits · closed without merging

Problem

On a device without VK_EXT_attachment_feedback_loop_dynamic_state (here AMD's Windows driver 26.8.1 on an RX 9070 XT), VulkanHarness prints "ProductionRasterization unavailable, rasterization cases will be skipped" and creates its device without the rasterization features. The default run then skips the production rasterization checks, but six --xxx-only modes call some of them unconditionally:

  • CheckRasterization creates graphics pipelines with features the device was created without. The validation layer reports:

    • VUID-VkPipelineDynamicStateCreateInfo-pDynamicStates-parameter (VK_DYNAMIC_STATE_COLOR_WRITE_ENABLE_EXT without VK_EXT_color_write_enable)
    • VUID-VkGraphicsPipelineCreateInfo-pDynamicStates-04800
    • VUID-VkPipelineViewportDepthClipControlCreateInfoEXT-negativeOneToOne-06470
    • VUID-VkPipelineRasterizationStateCreateInfo-depthClampEnable-00782

    --image-overlap-only and --polygon-mode-only then crash in the driver.

  • CheckRenderExecutorStencilBindingDiscovery fails its feedback-loop check ("disjoint sampling used inconsistent image layouts or enabled feedback").

Separately, the harness never enables depthClamp, even when it does enable the other rasterization features. Production pipelines always set depthClampEnable (shaders.cpp), and the emulator requires and enables depthClamp (vulkanWindow.cpp). So the last VUID should also apply on devices with full rasterization support. That is inferred from the code: no such GPU was available here.

Fix

  1. In the six modes that call CheckRasterization or CheckRenderExecutorStencilBindingDiscovery, only those calls are guarded, with the default run's skip message. The other calls in those modes still run, for example the render-executor color discovery and metadata-clear checks in --image-overlap-only and --compute-meta-clear-only, and CheckComparisonDepthTexture in --sampled-depth-resource-only. On this driver they run cleanly without these features (measured below). For the same reason the other six focused modes are not changed: DCC clear, BGRA16 readback, push-constant bank, buffer-cache GC, 1D and standard-tile render targets.
  2. depthClamp now counts towards m_rasterization_supported and is enabled together with the other rasterization features. On a device without them, as here, nothing changes: device creation still succeeds and these checks are skipped.

Testing

Windows 11, clang-cl 19.1.5, Release, AMD RX 9070 XT (driver 26.8.1), main 038d2257.

Each of the twelve focused modes that call any check the default run guards was run under VK_LAYER_KHRONOS_validation. That is the six changed modes plus the six unchanged ones as controls:

main this PR
VUIDs 4 distinct, in --image-overlap-only, --polygon-mode-only, --sampled-depth-resource-only none in any mode
--image-overlap-only crash stops at image.cpp:721, format 129 = D24_UNORM_S8_UINT, which this driver doesn't support (#930)
--polygon-mode-only crash exit 0
--sampled-depth-resource-only exit 321 exit 0
--compute-meta-clear-only, --image-rebind-only, --storage-mip-host-only stencil-binding feedback check fails exit 0
--packed-texture-only, --push-constant-bank-only, --dcc-clear-only, --buffer-cache-gc-only, --rt1d-only, --standard-tile-rt-only exit 0, no VUIDs unchanged

To find which checks need the guard, these twelve modes were first run without any guard. On this driver, only the two checks above produced validation errors or failed.

Full ctest (53 tests) and all 107 --xxx-only modes, this PR vs main: compute_meta_clear_classification (abort) and graphics_pipeline_rasterization (SEGFAULT) now pass. texture_cache_image_overlap (SEGFAULT) now stops at the D24S8 check above. The six modes changed as in the table, and every other test and mode is unchanged. CTest: 43 → 45 of 53 pass; modes: 87 → 92 of 107 exit 0.

  • With the guard change reverted, --image-rebind-only, --polygon-mode-only and --storage-mip-host-only fail again (local gate run).
  • Builds on Windows, Linux and macOS (CI on this PR).
  • Rebased onto main 9f25e3c2: the six changed modes give the same results there, with no VUIDs, and the three modes above still fail with the guard change reverted.

Not tested on a GPU that supports all the rasterization features. There, the only code change is that depthClamp is now requested.

The default run guards a wider group of checks than the two above. I left it as it is.

AI use (per the README's AI policy): Claude (Anthropic) traced the crash with the validation layer, measured which checks need the guard, wrote the change and ran the comparisons above on my machine. I reviewed the change and the results before updating this PR.

🤖 Generated with Claude Code

**@⁠Nawid3333** on GitHub · 2026-10-07 17:53 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/1154) `Nawid3333:tests/harness-rasterization-skip` → `main` · +40 −9 · 1 files · 3 commits · closed without merging ## Problem On a device without `VK_EXT_attachment_feedback_loop_dynamic_state` (here AMD's Windows driver 26.8.1 on an RX 9070 XT), `VulkanHarness` prints "ProductionRasterization unavailable, rasterization cases will be skipped" and creates its device without the rasterization features. The default run then skips the production rasterization checks, but six `--xxx-only` modes call some of them unconditionally: - `CheckRasterization` creates graphics pipelines with features the device was created without. The validation layer reports: - `VUID-VkPipelineDynamicStateCreateInfo-pDynamicStates-parameter` (`VK_DYNAMIC_STATE_COLOR_WRITE_ENABLE_EXT` without `VK_EXT_color_write_enable`) - `VUID-VkGraphicsPipelineCreateInfo-pDynamicStates-04800` - `VUID-VkPipelineViewportDepthClipControlCreateInfoEXT-negativeOneToOne-06470` - `VUID-VkPipelineRasterizationStateCreateInfo-depthClampEnable-00782` `--image-overlap-only` and `--polygon-mode-only` then crash in the driver. - `CheckRenderExecutorStencilBindingDiscovery` fails its feedback-loop check ("disjoint sampling used inconsistent image layouts or enabled feedback"). Separately, the harness never enables `depthClamp`, even when it does enable the other rasterization features. Production pipelines always set `depthClampEnable` (`shaders.cpp`), and the emulator requires and enables `depthClamp` (`vulkanWindow.cpp`). So the last VUID should also apply on devices with full rasterization support. That is inferred from the code: no such GPU was available here. ## Fix 1. In the six modes that call `CheckRasterization` or `CheckRenderExecutorStencilBindingDiscovery`, only those calls are guarded, with the default run's skip message. The other calls in those modes still run, for example the render-executor color discovery and metadata-clear checks in `--image-overlap-only` and `--compute-meta-clear-only`, and `CheckComparisonDepthTexture` in `--sampled-depth-resource-only`. On this driver they run cleanly without these features (measured below). For the same reason the other six focused modes are not changed: DCC clear, BGRA16 readback, push-constant bank, buffer-cache GC, 1D and standard-tile render targets. 2. `depthClamp` now counts towards `m_rasterization_supported` and is enabled together with the other rasterization features. On a device without them, as here, nothing changes: device creation still succeeds and these checks are skipped. ## Testing Windows 11, clang-cl 19.1.5, Release, AMD RX 9070 XT (driver 26.8.1), `main` 038d2257. Each of the twelve focused modes that call any check the default run guards was run under `VK_LAYER_KHRONOS_validation`. That is the six changed modes plus the six unchanged ones as controls: | | `main` | this PR | |---|---|---| | VUIDs | 4 distinct, in `--image-overlap-only`, `--polygon-mode-only`, `--sampled-depth-resource-only` | none in any mode | | `--image-overlap-only` | crash | stops at `image.cpp:721`, format 129 = D24_UNORM_S8_UINT, which this driver doesn't support (#930) | | `--polygon-mode-only` | crash | exit 0 | | `--sampled-depth-resource-only` | exit 321 | exit 0 | | `--compute-meta-clear-only`, `--image-rebind-only`, `--storage-mip-host-only` | stencil-binding feedback check fails | exit 0 | | `--packed-texture-only`, `--push-constant-bank-only`, `--dcc-clear-only`, `--buffer-cache-gc-only`, `--rt1d-only`, `--standard-tile-rt-only` | exit 0, no VUIDs | unchanged | To find which checks need the guard, these twelve modes were first run without any guard. On this driver, only the two checks above produced validation errors or failed. Full `ctest` (53 tests) and all 107 `--xxx-only` modes, this PR vs `main`: `compute_meta_clear_classification` (abort) and `graphics_pipeline_rasterization` (SEGFAULT) now pass. `texture_cache_image_overlap` (SEGFAULT) now stops at the D24S8 check above. The six modes changed as in the table, and every other test and mode is unchanged. CTest: 43 → 45 of 53 pass; modes: 87 → 92 of 107 exit 0. - With the guard change reverted, `--image-rebind-only`, `--polygon-mode-only` and `--storage-mip-host-only` fail again (local gate run). - Builds on Windows, Linux and macOS (CI on this PR). - Rebased onto `main` 9f25e3c2: the six changed modes give the same results there, with no VUIDs, and the three modes above still fail with the guard change reverted. Not tested on a GPU that supports all the rasterization features. There, the only code change is that `depthClamp` is now requested. The default run guards a wider group of checks than the two above. I left it as it is. **AI use** (per the README's AI policy): Claude (Anthropic) traced the crash with the validation layer, measured which checks need the guard, wrote the change and ran the comparisons above on my machine. I reviewed the change and the results before updating this PR. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
The default run of shader_recompiler_compute_tests only calls the production
rasterization checks when the device supports the production rasterization
features. Several --xxx-only modes call some of them unconditionally. On a
device without VK_EXT_attachment_feedback_loop_dynamic_state (for example AMD's
driver), CheckRasterization then creates graphics pipelines that use dynamic
color write enable and depth clip control without enabling them (the validation
layer reports it, and --image-overlap-only and --polygon-mode-only crash in the
driver), and CheckRenderExecutorStencilBindingDiscovery fails its feedback-loop
check.

Guard those two checks in the six modes that call them, with the default run's
skip message. The other checks in these modes run cleanly without the
production rasterization features and keep running.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The production renderer always sets depthClampEnable in its graphics pipelines
(shaders.cpp), and the emulator requires and enables the depthClamp feature
(vulkanWindow.cpp). The test harness enabled the other rasterization features
but not this one, so every harness graphics pipeline violates
VUID-VkPipelineRasterizationStateCreateInfo-depthClampEnable-00782. Require and
enable depthClamp together with the other rasterization features.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Production requests depthClampEnable and the depthClamp feature only on
non-Apple builds (shaders.cpp, vulkanWindow.cpp), so the harness should
not require or enable it there either. On MoltenVK this changes nothing
today, because the rasterization checks also require depthBounds, which
MoltenVK doesn't support.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:45:22 +00:00
github-bot closed this pull request 2026-11-26 09:45:22 +00:00
Author
Owner

@⁠coderabbitai[bot] on GitHub · 2026-10-07 18:09 UTC · original · edited 2026-10-08 12:01 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: 57a919d3-5136-4afc-8915-65b766985a11
📥 Commits

Reviewing files that changed from the base of the PR and between d1a9c23f10 and 58967e1322.

📒 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; 7 remain after this review.


📝 Walkthrough

Walkthrough

On Apple platforms, the Vulkan harness no longer requires or enables depthClamp as part of rasterization support. A new helper reports whether rasterization checks are available. Selected test paths use this check to gate rasterization-dependent checks.

Suggested reviewers: nmzik

Priority: ⬇️ Low

Change: Bug fix

Merge Risk: ⚪ Minimal · up to 58967

The reviewed scope identifies no concrete merge-blocking regression; the focused selectors retain their non-rasterization checks.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly summarizes the main changes: focused modes now honor rasterization support, and depthClamp is enabled.
Description check ✅ Passed The description directly explains the rasterization support issue, the depthClamp change, affected modes, testing, and observed results.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
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.
  • Autopilot · 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-07 18:09 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/1154#issuecomment-6043930168) · edited 2026-10-08 12:01 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/1154?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**: `57a919d3-5136-4afc-8915-65b766985a11` </details> <details> <summary>📥 Commits</summary> Reviewing files that changed from the base of the PR and between d1a9c23f10f261b5833d26038977a387021362d8 and 58967e132292e1f755c78be2fd1bc30ba089eaa8. </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; 7 remain after this review. </details> --- <!-- recent_review_end --> <!-- walkthrough_start --> <details> <summary>📝 Walkthrough</summary> ## Walkthrough On Apple platforms, the Vulkan harness no longer requires or enables `depthClamp` as part of rasterization support. A new helper reports whether rasterization checks are available. Selected test paths use this check to gate rasterization-dependent checks. **Suggested reviewers:** `nmzik` </details> <!-- walkthrough_end --> <!-- change_assessment_start --> **Priority:** ⬇️ Low <!-- change_assessment_commit:"58967e132292e1f755c78be2fd1bc30ba089eaa8" --> **Change:** Bug fix <!-- change_assessment_end --> <!-- final_review_risk_start --> **Merge Risk:** **⚪ Minimal** · up to `58967` <!-- final_review_risk_coverage:{"sourceCommitId":"58967e132292e1f755c78be2fd1bc30ba089eaa8","coveredCommitId":"58967e132292e1f755c78be2fd1bc30ba089eaa8","kind":"reviewed"} --> The reviewed scope identifies no concrete merge-blocking regression; the focused selectors retain their non-rasterization checks. <!-- final_review_risk_end --> <!-- pre_merge_checks_walkthrough_start --> <details> <summary>🚥 Pre-merge checks | ✅ 5</summary> <details> <summary>✅ Passed checks (5 passed)</summary> | Check name | Status | Explanation | | :------------------------ | :------- | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Title check | ✅ Passed | The title clearly summarizes the main changes: focused modes now honor rasterization support, and depthClamp is enabled. | | Description check | ✅ Passed | The description directly explains the rasterization support issue, the depthClamp change, affected modes, testing, and observed results. | | Docstring Coverage | ✅ Passed | No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0… | | 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. | </details> </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">Autopilot</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=1154)! 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) </details> <sub>Comment `@coderabbitai help` to get the list of available commands.</sub> <!-- tips_end -->
Author
Owner

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

🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

🔎 Supported by static analysis

🏁 Script executed:

sed -n '18850,18866p' tests/ShaderRecompilerComputeTests.cpp
sed -n '3951,5008p' tests/ShaderRecompilerComputeTests.cpp
sed -n '41955,41972p' tests/ShaderRecompilerComputeTests.cpp
rg -n -C 4 'buffer-cache-gc-only|CheckBufferCacheDirtyGarbageCollection' tests/ShaderRecompilerComputeTests.cpp

Repository: KytyPS5/KytyPS5

Length of output: 42269


Run the host check independently of rasterization support.

RasterizationChecksAvailable returns false on unsupported devices. The current guard then skips CheckBufferCacheDirtyGarbageCollection() and returns success. This check uses host memory and BufferCache; it does not require rasterization.

Suggested fix
   if (argc == 2 && std::strcmp(argv[1], "--buffer-cache-gc-only") == 0) {
     VulkanHarness vulkan;
-    const bool rasterization = RasterizationChecksAvailable(vulkan);
-    if (rasterization) {
-      vulkan.CheckBufferCacheDirtyGarbageCollection();
-    }
+    vulkan.CheckBufferCacheDirtyGarbageCollection();
     return 0;
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

  if (argc == 2 && std::strcmp(argv[1], "--buffer-cache-gc-only") == 0) {
    VulkanHarness vulkan;
    vulkan.CheckBufferCacheDirtyGarbageCollection();
    return 0;
**@⁠coderabbitai[bot]** on GitHub · 2026-10-07 18:15 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/1154#discussion_r4210373398) **🎯 Functional Correctness** | **🟡 Minor** | **⚡ Quick win** <details> <summary>🔎 Supported by static analysis</summary> 🏁 Script executed: ```bash sed -n '18850,18866p' tests/ShaderRecompilerComputeTests.cpp sed -n '3951,5008p' tests/ShaderRecompilerComputeTests.cpp sed -n '41955,41972p' tests/ShaderRecompilerComputeTests.cpp rg -n -C 4 'buffer-cache-gc-only|CheckBufferCacheDirtyGarbageCollection' tests/ShaderRecompilerComputeTests.cpp ``` Repository: KytyPS5/KytyPS5 Length of output: 42269 --- </details> **Run the host check independently of rasterization support.** `RasterizationChecksAvailable` returns `false` on unsupported devices. The current guard then skips `CheckBufferCacheDirtyGarbageCollection()` and returns success. This check uses host memory and `BufferCache`; it does not require rasterization. <details> <summary>Suggested fix</summary> ```diff if (argc == 2 && std::strcmp(argv[1], "--buffer-cache-gc-only") == 0) { VulkanHarness vulkan; - const bool rasterization = RasterizationChecksAvailable(vulkan); - if (rasterization) { - vulkan.CheckBufferCacheDirtyGarbageCollection(); - } + vulkan.CheckBufferCacheDirtyGarbageCollection(); return 0; ``` </details> <!-- suggestion_start --> <details> <summary>📝 Committable suggestion</summary> > ‼️ **IMPORTANT** > Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements. ```suggestion if (argc == 2 && std::strcmp(argv[1], "--buffer-cache-gc-only") == 0) { VulkanHarness vulkan; vulkan.CheckBufferCacheDirtyGarbageCollection(); return 0; ``` </details> <!-- suggestion_end --> <!-- fingerprinting:phantom:medusa:serval --> <!-- cr-indicator-types:potential_issue --> <!-- cr-comment:v1:da364d5a5b9dbe4e281e16e2 --> <!-- This is an auto-generated comment by CodeRabbit -->
Author
Owner

@⁠coderabbitai[bot] on GitHub · 2026-10-07 18:15 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: c39c4080-dad5-44ab-88fc-43564b01d64c
📥 Commits

Reviewing files that changed from the base of the PR and between 038d2257de and a1bc385bc71ba1a194cd4533b3846aa6489b059e.

📒 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-07 18:15 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/1154#pullrequestreview-5446464644) · **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**: `c39c4080-dad5-44ab-88fc-43564b01d64c` </details> <details> <summary>📥 Commits</summary> Reviewing files that changed from the base of the PR and between 038d2257de858517dcca8efae2f1b15d568e1d64 and a1bc385bc71ba1a194cd4533b3846aa6489b059e. </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=d39e5419-7bbb-4cf1-a9fd-20703da19caa attempt=29b1371e-9a94-4d46-8302-65b2f46eae24 batch=1/1 -->
Author
Owner

@⁠coderabbitai[bot] on GitHub · 2026-10-07 19:02 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 · Run CheckComparisonDepthTexture() independently… · ShaderRecompilerComputeTests.cpp:41966-41972

tests/ShaderRecompilerComputeTests.cpp:41966-41972
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

Run CheckComparisonDepthTexture() independently of the rasterization guard.

When RasterizationChecksAvailable(vulkan) is false, the selector skips CheckComparisonDepthTexture() with CheckRasterization(true). CheckComparisonDepthTexture() uses compute dispatch only, so this removes focused-mode comparison-depth coverage unnecessarily.

Suggested fix
+    vulkan.CheckComparisonDepthTexture();
     if (rasterization) {
-      vulkan.CheckComparisonDepthTexture();
       vulkan.CheckRasterization(true);
     }

ℹ️ Review info
⚙️ Run configuration
  • Configuration used: Repository: KytyPS5/KytyPS5/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: ca2196b7-dd3a-4e4f-ae8d-31a07cef1713
📥 Commits

Reviewing files that changed from the base of the PR and between a1bc385bc71ba1a194cd4533b3846aa6489b059e and 47297562f3e114e2c8d3567177e33460c807f808.

📒 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-07 19:02 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/1154#pullrequestreview-5446988731) · **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> · Run <code>CheckComparisonDepthTexture()</code> independently… · <code>ShaderRecompilerComputeTests.cpp:41966-41972</code></summary><blockquote> > > `tests/ShaderRecompilerComputeTests.cpp:41966-41972` > **🎯 Functional Correctness** | **🟡 Minor** | **⚡ Quick win** > > **Run `CheckComparisonDepthTexture()` independently of the rasterization guard.** > > When `RasterizationChecksAvailable(vulkan)` is false, the selector skips `CheckComparisonDepthTexture()` with `CheckRasterization(true)`. `CheckComparisonDepthTexture()` uses compute dispatch only, so this removes focused-mode comparison-depth coverage unnecessarily. > > <details> > <summary>Suggested fix</summary> > > ```diff > + vulkan.CheckComparisonDepthTexture(); > if (rasterization) { > - vulkan.CheckComparisonDepthTexture(); > vulkan.CheckRasterization(true); > } > ``` > > </details> > > <!-- cr-comment:v1:0ed039c03021e8b307298e62 --> > > </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**: `ca2196b7-dd3a-4e4f-ae8d-31a07cef1713` </details> <details> <summary>📥 Commits</summary> Reviewing files that changed from the base of the PR and between a1bc385bc71ba1a194cd4533b3846aa6489b059e and 47297562f3e114e2c8d3567177e33460c807f808. </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=07d6a15a-cc94-42dd-b7ea-0de1e2e0bc65 attempt=c38c2ee5-7ab1-4691-a1da-2e79ed6d7d04 batch=1/1 -->
Author
Owner

@⁠coderabbitai[bot] on GitHub · 2026-10-07 21:57 UTC · original · reviewed

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

18295-18296: 🎯 Functional Correctness | 🔵 Trivial | ⚡ Quick win

Exclude depthClamp from Apple rasterization availability.

When an Apple Vulkan device reports depthClamp == false while the other rasterization features are available, the new unconditional term sets m_rasterization_supported to false. Focused modes then skip CheckRasterization and CheckRenderExecutorStencilBindingDiscovery. The production rasterizer omits rasterizer.depthClampEnable under __APPLE__, so do not require or request this feature on Apple builds.

Suggested fix
     m_rasterization_supported = available_features.fillModeNonSolid &&
+#if !defined(__APPLE__)
+                                available_features.depthClamp &&
+#endif
                                 available_features.tessellationShader &&
                                 available_features.depthBounds &&
                                 available_depth_clip.depthClipEnable &&
@@
     device_features.fillModeNonSolid = m_rasterization_supported;
     device_features.tessellationShader = m_rasterization_supported;
     device_features.depthBounds = m_rasterization_supported;
+#if !defined(__APPLE__)
     device_features.depthClamp = m_rasterization_supported;
+#endif

ℹ️ Review info
⚙️ Run configuration
  • Configuration used: Repository: KytyPS5/KytyPS5/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 5ac69b69-6e05-43f2-b875-597717965479
📥 Commits

Reviewing files that changed from the base of the PR and between b67b1a01d8bb92460f9edf1c516808bedc986039 and d1a9c23f10.

📒 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; 7 remain after this review.

**@⁠coderabbitai[bot]** on GitHub · 2026-10-07 21:57 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/1154#pullrequestreview-5448876330) · **reviewed** <details> <summary>🧹 Nitpick comments (1)</summary><blockquote> <details> <summary>tests/ShaderRecompilerComputeTests.cpp (1)</summary><blockquote> `18295-18296`: **🎯 Functional Correctness** | **🔵 Trivial** | **⚡ Quick win** **Exclude `depthClamp` from Apple rasterization availability.** When an Apple Vulkan device reports `depthClamp == false` while the other rasterization features are available, the new unconditional term sets `m_rasterization_supported` to false. Focused modes then skip `CheckRasterization` and `CheckRenderExecutorStencilBindingDiscovery`. The production rasterizer omits `rasterizer.depthClampEnable` under `__APPLE__`, so do not require or request this feature on Apple builds. <details> <summary>Suggested fix</summary> ```diff m_rasterization_supported = available_features.fillModeNonSolid && +#if !defined(__APPLE__) + available_features.depthClamp && +#endif available_features.tessellationShader && available_features.depthBounds && available_depth_clip.depthClipEnable && @@ device_features.fillModeNonSolid = m_rasterization_supported; device_features.tessellationShader = m_rasterization_supported; device_features.depthBounds = m_rasterization_supported; +#if !defined(__APPLE__) device_features.depthClamp = m_rasterization_supported; +#endif ``` </details> <!-- cr-comment:v1:ffdfc5a17fa05faa24eabadd --> </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**: `5ac69b69-6e05-43f2-b875-597717965479` </details> <details> <summary>📥 Commits</summary> Reviewing files that changed from the base of the PR and between b67b1a01d8bb92460f9edf1c516808bedc986039 and d1a9c23f10f261b5833d26038977a387021362d8. </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; 7 remain after this review. </details> <!-- This is an auto-generated comment by CodeRabbit for review status --> <!-- coderabbit-review-publication v1 publication=56178259-7f04-449d-842c-cb36658bd500 attempt=2d39f258-6c31-4e87-9ad4-527e917017b4 batch=1/1 -->

Pull request closed

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