perf(graphics): avoid repeated framebuffer uploads in Hades #1094

Closed
github-bot wants to merge 1 commit from gh-pr/1094/head into gh-pr/1094/base
Owner

@⁠juanfariasdev on GitHub · 2026-10-06 02:33 UTC · original
juanfariasdev:fix/hades-texture-uploads → main · +162 −0 · 5 files · 1 commits · closed without merging

Summary

Hades (PPSA03355, 01.003.000) clears its framebuffers with a bounded DWORD pattern-fill compute kernel. When the pattern period is one, the kernel writes a constant value, but its EXEC branches prevent the existing uniform-fill analysis from recognizing it. Running this clear through buffer emulation marks the images dirty and repeatedly uploads the entire framebuffers.

Recognize this kernel's complete executed instruction sequence and route proven, complete period-one fills through the existing native image-clear path. In the same steady scene, texture uploads fell from approximately 5,823 to 128 MiB/s, while presentation remained around 60 FPS.

Changes

  • Shader recompiler: classify the bounded DWORD pattern-fill kernel by matching every executed instruction, operand and branch offset. Padding and metadata after S_ENDPGM are excluded. The matcher does not depend on a game name, shader hash or guest address.
  • Compute renderer: require period one, the expected wave/workgroup layout, compatible write-only DWORD descriptors, matching guest bounds and complete dispatch coverage before consuming the clear. Other shaders, varying patterns and partial dispatches keep the normal compute path.
  • Regression tests: cover recognition, runtime clear-value updates, modified shader instructions, varying/zero periods, partial/extra coverage, mismatched bounds and the existing generic-fill path. Add GPU cases for constant and varying patterns on platforms supported by the test harness.

The PR contains only this optimization and its tests. The earlier mutex optimization, performance panel, macOS compatibility fixes and temporary probes are excluded.

Testing

Apple M4 Pro, macOS, MoltenVK 1.4.2, x86_64 Release build. Hades was tested on the local test/perf-mac branch with #1083 and #1090 merged:

  • Built launcher and shader_recompiler_compute_tests successfully.
  • compute_dword_pattern_clear passed, including SPIR-V validation and the existing generic-fill regression. The new recognition case failed before the implementation was added.
  • Repeated Hades runs confirmed use of the native compute image clear path and the reduction in texture uploads.

Measurements from one-second samples of the same steady scene, selecting 800–900 draws/s and 59–61 FPS:

Metric Before After
Samples 14 9
Average FPS 60.01 59.98
Texture uploads 5,823.23 MiB/s 127.67 MiB/s
Upload per frame 97.03 MiB 2.13 MiB

This is approximately 97.8% less upload traffic. The scene was already around 60 FPS, so these measurements do not establish an FPS increase.

The full GPU test harness requires barycentrics and 64-bit atomics unavailable on this MoltenVK, so its GPU cases could not run locally. VK_LAYER_KHRONOS_validation was also unavailable. Linux/Windows builds were not run locally. The intermittent Hades startup crash and other stutters remain separate issues.

🤖 Generated with Codex

**@⁠juanfariasdev** on GitHub · 2026-10-06 02:33 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/1094) `juanfariasdev:fix/hades-texture-uploads` → `main` · +162 −0 · 5 files · 1 commits · closed without merging ## Summary Hades (PPSA03355, 01.003.000) clears its framebuffers with a bounded DWORD pattern-fill compute kernel. When the pattern period is one, the kernel writes a constant value, but its EXEC branches prevent the existing uniform-fill analysis from recognizing it. Running this clear through buffer emulation marks the images dirty and repeatedly uploads the entire framebuffers. Recognize this kernel's complete executed instruction sequence and route proven, complete period-one fills through the existing native image-clear path. In the same steady scene, texture uploads fell from approximately **5,823 to 128 MiB/s**, while presentation remained around **60 FPS**. ## Changes - **Shader recompiler**: classify the bounded DWORD pattern-fill kernel by matching every executed instruction, operand and branch offset. Padding and metadata after `S_ENDPGM` are excluded. The matcher does not depend on a game name, shader hash or guest address. - **Compute renderer**: require period one, the expected wave/workgroup layout, compatible write-only DWORD descriptors, matching guest bounds and complete dispatch coverage before consuming the clear. Other shaders, varying patterns and partial dispatches keep the normal compute path. - **Regression tests**: cover recognition, runtime clear-value updates, modified shader instructions, varying/zero periods, partial/extra coverage, mismatched bounds and the existing generic-fill path. Add GPU cases for constant and varying patterns on platforms supported by the test harness. The PR contains only this optimization and its tests. The earlier mutex optimization, performance panel, macOS compatibility fixes and temporary probes are excluded. ## Testing Apple M4 Pro, macOS, MoltenVK 1.4.2, x86_64 Release build. Hades was tested on the local `test/perf-mac` branch with #1083 and #1090 merged: - Built `launcher` and `shader_recompiler_compute_tests` successfully. - `compute_dword_pattern_clear` passed, including SPIR-V validation and the existing generic-fill regression. The new recognition case failed before the implementation was added. - Repeated Hades runs confirmed use of the native `compute image clear` path and the reduction in texture uploads. Measurements from one-second samples of the same steady scene, selecting 800–900 draws/s and 59–61 FPS: | Metric | Before | After | | --- | ---: | ---: | | Samples | 14 | 9 | | Average FPS | 60.01 | 59.98 | | Texture uploads | 5,823.23 MiB/s | 127.67 MiB/s | | Upload per frame | 97.03 MiB | 2.13 MiB | This is approximately **97.8% less upload traffic**. The scene was already around 60 FPS, so these measurements do not establish an FPS increase. The full GPU test harness requires barycentrics and 64-bit atomics unavailable on this MoltenVK, so its GPU cases could not run locally. `VK_LAYER_KHRONOS_validation` was also unavailable. Linux/Windows builds were not run locally. The intermittent Hades startup crash and other stutters remain separate issues. 🤖 Generated with [Codex](https://openai.com/codex/)
Hades clears its framebuffers with a bounded four-arm DWORD pattern
kernel. Its period-one dispatch writes a uniform value, but the EXEC
branches defeat the generic uniform-fill analysis. Running the shader
through buffer emulation dirties the images and uploads them repeatedly.

Recognize the complete instruction sequence and require period one,
matching descriptor bounds, and complete 64-thread dispatch coverage
before using the existing native image-clear path. Other shapes retain
the normal compute path.

Add host regression coverage and GPU cases for capable Vulkan devices.
The host checks pass on macOS. In the same steady Hades scene, texture
uploads fall from about 5,823 to 128 MB/s while presentation stays at
60 FPS. MoltenVK cannot run the existing GPU test harness's required
barycentric and 64-bit atomic features.

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

@⁠coderabbitai[bot] on GitHub · 2026-10-06 02:39 UTC · original · edited 2026-10-06 02:44 UTC

Review in Change Stack →

📝 Walkthrough

Walkthrough

The recompiler marks matching compute shaders with a dword_pattern_fill flag. ResolveComputeBufferFill uses that flag to resolve eligible period-one dispatches as buffer fills. Tests cover supported and rejected shapes, runtime clear values, and GPU cases. CTest registers host-only coverage and adds the GPU test only on non-Apple platforms.

Suggested reviewers: nmzik

Priority: ➖ Normal

Change: Bug fix

Merge Risk: 🟡 Moderate · up to 50945

Non-Apple test suites can fail on runners without the required Vulkan support. Make unsupported GPU environments skip this test before merging.

Security Architecture Review

Security architecture risk: 🔵 Low · up to 50945

The optimization accepts only narrowly validated complete fills and reuses existing clearing behavior. No introduced security flaw was established, but broader memory-authorization and exceptional-recovery guarantees remain incompletely verified.

Retained concerns
No architecture-level concerns identified.

Security review details

Security Blast Radius

  • observed — A successful fast-path invocation clears a selected registered image or associated stencil subresources. Selection requires the requested guest address and size to exactly match the cached image data range; conflicting image or subresource selections are rejected. This bounds the inspected sink without proving external allocation authorization.

Security Findings and Attack Paths

  • inferred — The inspected guest-input-to-image-clear path does not establish an introduced arbitrary-write or authorization-bypass attack. The new branch changes which shaders reach an existing sink, while retaining exact image-range selection and normal-compute fallback. Broader memory ownership and authorization remain unresolved rather than verified safe.

Trust Boundaries and Controls

  • observed — Guest register values and descriptor words cross into host-managed graphics resources through the existing resource snapshot. Normal FindBuffers performs host-buffer discovery or creation, whereas the clear sink uses texture-cache registration and exact extent matching. Neither inspected operation establishes a separate process or tenant authorization policy.

Resilience and Maintainability Implications

  • observed — Image selection and clearing are serialized by the cache lock, with selection and decoding failures returning before clear-state mutation. Successful clears record an image transition and clear command, then mark GPU ownership. Image barriers explicitly handle repeated writes, and queue submission is mutex-serialized. Submission errors enter fatal handling rather than a demonstrated recoverable rollback; exceptional recovery remains incompletely verified.
🚥 Pre-merge checks | ✅ 4 | ❓ 1

❌ Failed checks (1 inconclusive)

Check name Status Explanation Resolution
Docstring Coverage ❓ Inconclusive Docstring coverage is 16.67% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 6 functions across 3 files. (2 skipped: 1… Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly summarizes the main change: a graphics performance optimization that avoids repeated framebuffer uploads in Hades.
Description check ✅ Passed The description explains the pattern-fill recognition, native image-clear path, safeguards, tests, and reported performance results. It is directly related to the changeset.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage

Explanation

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

  • 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-06 02:39 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/1094#issuecomment-6008212932) · edited 2026-10-06 02:44 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/1094?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 --> <!-- walkthrough_start --> <details> <summary>📝 Walkthrough</summary> ## Walkthrough The recompiler marks matching compute shaders with a `dword_pattern_fill` flag. `ResolveComputeBufferFill` uses that flag to resolve eligible period-one dispatches as buffer fills. Tests cover supported and rejected shapes, runtime clear values, and GPU cases. CTest registers host-only coverage and adds the GPU test only on non-Apple platforms. **Suggested reviewers:** `nmzik` </details> <!-- walkthrough_end --> <!-- change_assessment_start --> **Priority:** ➖ Normal <!-- change_assessment_commit:"50945f85230823c1ee597f793ee4d2d7d36f0f0f" --> **Change:** Bug fix <!-- change_assessment_end --> <!-- final_review_risk_start --> **Merge Risk:** _🟡 Moderate_ · up to `50945` <!-- final_review_risk_coverage:{"sourceCommitId":"50945f85230823c1ee597f793ee4d2d7d36f0f0f","coveredCommitId":"50945f85230823c1ee597f793ee4d2d7d36f0f0f","kind":"reviewed"} --> Non-Apple test suites can fail on runners without the required Vulkan support. Make unsupported GPU environments skip this test before merging. <!-- final_review_risk_end --> <!-- architecture_review_start --> ### Security Architecture Review **Security architecture risk:** _🔵 Low_ · up to `50945` The optimization accepts only narrowly validated complete fills and reuses existing clearing behavior. No introduced security flaw was established, but broader memory-authorization and exceptional-recovery guarantees remain incompletely verified. **Retained concerns** No architecture-level concerns identified. <details> <summary>Security review details</summary> **Security Blast Radius** - _observed_ — A successful fast-path invocation clears a selected registered image or associated stencil subresources. Selection requires the requested guest address and size to exactly match the cached image data range; conflicting image or subresource selections are rejected. This bounds the inspected sink without proving external allocation authorization. **Security Findings and Attack Paths** - _inferred_ — The inspected guest-input-to-image-clear path does not establish an introduced arbitrary-write or authorization-bypass attack. The new branch changes which shaders reach an existing sink, while retaining exact image-range selection and normal-compute fallback. Broader memory ownership and authorization remain unresolved rather than verified safe. **Trust Boundaries and Controls** - _observed_ — Guest register values and descriptor words cross into host-managed graphics resources through the existing resource snapshot. Normal FindBuffers performs host-buffer discovery or creation, whereas the clear sink uses texture-cache registration and exact extent matching. Neither inspected operation establishes a separate process or tenant authorization policy. **Resilience and Maintainability Implications** - _observed_ — Image selection and clearing are serialized by the cache lock, with selection and decoding failures returning before clear-state mutation. Successful clears record an image transition and clear command, then mark GPU ownership. Image barriers explicitly handle repeated writes, and queue submission is mutex-serialized. Submission errors enter fatal handling rather than a demonstrated recoverable rollback; exceptional recovery remains incompletely verified. </details> <!-- architecture_review_end --> <!-- pre_merge_checks_walkthrough_start --> <details> <summary>🚥 Pre-merge checks | ✅ 4 | ❓ 1</summary> ### ❌ Failed checks (1 inconclusive) | Check name | Status | Explanation | Resolution | | :----------------: | :------------- | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :--------------------------------------------------------------------------------- | | Docstring Coverage | ❓ Inconclusive | Docstring coverage is 16.67% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 6 functions across 3 files. (2 skipped: 1… | Write docstrings for the functions missing them to satisfy the coverage threshold. | <details> <summary>✅ Passed checks (4 passed)</summary> | Check name | Status | Explanation | | :------------------------: | :------- | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Title check | ✅ Passed | The title clearly summarizes the main change: a graphics performance optimization that avoids repeated framebuffer uploads in Hades. | | Description check | ✅ Passed | The description explains the pattern-fill recognition, native image-clear path, safeguards, tests, and reported performance results. It is directly related to the changeset. | | 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> <summary>Full details: Docstring Coverage</summary> **Explanation** Docstring coverage is 16.67% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 6 functions across 3 files. (2 skipped: 1 unsupported, 1 too large.) </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=1094)! 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 -->
@ -662,0 +663,4 @@
COMMAND $<TARGET_FILE:shader_recompiler_compute_tests> --dword-pattern-clear-host-only)
if(NOT APPLE)
add_test(NAME compute_dword_pattern_clear_gpu
COMMAND $<TARGET_FILE:shader_recompiler_compute_tests> --dword-pattern-clear-only)
Author
Owner

@⁠coderabbitai[bot] on GitHub · 2026-10-06 02:39 UTC · original

🩺 Stability & Availability | 🟡 Minor | ⚡ Quick win

🔎 Supported by static analysis

🏁 Script executed:

#!/bin/bash
set -euo pipefail

ast-grep outline tests/ShaderRecompilerComputeTests.cpp --items all
rg -n -C 8 -i -- 'dword-pattern-clear|skip|unsupported|feature' \
  tests/ShaderRecompilerComputeTests.cpp CMakeLists.txt
rg -n -C 8 -- 'SKIP_RETURN_CODE|compute_dword_pattern_clear_gpu' CMakeLists.txt

Repository: KytyPS5/KytyPS5

Length of output: 40400


🏁 Script executed:

set -euo pipefail
printf '%s\n' '--- CMake test/property context ---'
sed -n '645,685p' CMakeLists.txt
printf '%s\n' '--- VulkanHarness constructor and feature state ---'
rg -n -F 'VulkanHarness()' tests/ShaderRecompilerComputeTests.cpp
rg -n -F 'RasterizationSupported()' tests/ShaderRecompilerComputeTests.cpp
rg -n -F 'void RunCase(' tests/ShaderRecompilerComputeTests.cpp
printf '%s\n' '--- harness constructor block ---'
sed -n '1910,2075p' tests/ShaderRecompilerComputeTests.cpp
printf '%s\n' '--- RunCase block ---'
sed -n '18505,18655p' tests/ShaderRecompilerComputeTests.cpp
printf '%s\n' '--- selector block ---'
sed -n '41165,41188p' tests/ShaderRecompilerComputeTests.cpp
printf '%s\n' '--- CTest skip configuration search ---'
rg -n -C 2 -- 'SKIP_RETURN_CODE|compute_dword_pattern_clear_gpu' CMakeLists.txt || test "$?" -eq 1

Repository: KytyPS5/KytyPS5

Length of output: 17827


🏁 Script executed:

set -euo pipefail
printf '%s\n' '--- initialization and test case locations ---'
rg -n -F 'void Init()' tests/ShaderRecompilerComputeTests.cpp
rg -n -F 'TestCase DwordPatternFill(' tests/ShaderRecompilerComputeTests.cpp
printf '%s\n' '--- relevant initialization blocks ---'
python3 - <<'PY'
from pathlib import Path
p = Path("tests/ShaderRecompilerComputeTests.cpp")
lines = p.read_text().splitlines()
for i, line in enumerate(lines):
    if "void Init()" in line:
        start = i
        depth = 0
        begun = False
        for j in range(i, len(lines)):
            for c in lines[j]:
                if c == "{":
                    depth += 1
                    begun = True
                elif c == "}":
                    depth -= 1
            if begun and depth == 0:
                print(f"--- {p}:{start+1}-{j+1} ---")
                for k in range(start, j+1):
                    print(f"{k+1:>6} {lines[k]}")
                break
for i, line in enumerate(lines):
    if "TestCase DwordPatternFill(" in line:
        start = i
        depth = 0
        begun = False
        for j in range(i, len(lines)):
            for c in lines[j]:
                if c == "{":
                    depth += 1
                    begun = True
                elif c == "}":
                    depth -= 1
            if begun and depth == 0:
                print(f"--- {p}:{start+1}-{j+1} ---")
                for k in range(start, j+1):
                    print(f"{k+1:>6} {lines[k]}")
                break
PY

Repository: KytyPS5/KytyPS5

Length of output: 18350


🏁 Script executed:

set -euo pipefail
sed -n '925,985p' tests/ShaderRecompilerComputeTests.cpp

Repository: KytyPS5/KytyPS5

Length of output: 2116


🏁 Script executed:

rg -n -i -- 'SKIP_RETURN_CODE|SKIP_REGULAR_EXPRESSION|compute_dword_pattern_clear_gpu' -g 'CMakeLists.txt' -g '*.cmake' . || test "$?" -eq 1

Repository: KytyPS5/KytyPS5

Length of output: 435


🏁 Script executed:

set +e
rg -n -i -g 'CMakeLists.txt' -g '*.cmake' -- 'SKIP_RETURN_CODE|SKIP_REGULAR_EXPRESSION|compute_dword_pattern_clear_gpu' .
status=$?
if [ "$status" -gt 1 ]; then exit "$status"; fi
exit 0

Repository: KytyPS5/KytyPS5

Length of output: 222


Skip the GPU test when its Vulkan prerequisites are unavailable.

if(NOT APPLE) registers this test for every non-Apple build. The selected test path constructs VulkanHarness, whose initialization aborts when no Vulkan device is available or no device meets its required feature checks. The test has no CTest skip property, so an unsupported runner can fail the test suite instead of skipping this test. Return a dedicated skip code for unavailable prerequisites and configure this test’s SKIP_RETURN_CODE.

**@⁠coderabbitai[bot]** on GitHub · 2026-10-06 02:39 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/1094#discussion_r4190990897) **🩺 Stability & Availability** | **🟡 Minor** | **⚡ Quick win** <details> <summary>🔎 Supported by static analysis</summary> 🏁 Script executed: ```bash #!/bin/bash set -euo pipefail ast-grep outline tests/ShaderRecompilerComputeTests.cpp --items all rg -n -C 8 -i -- 'dword-pattern-clear|skip|unsupported|feature' \ tests/ShaderRecompilerComputeTests.cpp CMakeLists.txt rg -n -C 8 -- 'SKIP_RETURN_CODE|compute_dword_pattern_clear_gpu' CMakeLists.txt ``` Repository: KytyPS5/KytyPS5 Length of output: 40400 --- 🏁 Script executed: ```bash set -euo pipefail printf '%s\n' '--- CMake test/property context ---' sed -n '645,685p' CMakeLists.txt printf '%s\n' '--- VulkanHarness constructor and feature state ---' rg -n -F 'VulkanHarness()' tests/ShaderRecompilerComputeTests.cpp rg -n -F 'RasterizationSupported()' tests/ShaderRecompilerComputeTests.cpp rg -n -F 'void RunCase(' tests/ShaderRecompilerComputeTests.cpp printf '%s\n' '--- harness constructor block ---' sed -n '1910,2075p' tests/ShaderRecompilerComputeTests.cpp printf '%s\n' '--- RunCase block ---' sed -n '18505,18655p' tests/ShaderRecompilerComputeTests.cpp printf '%s\n' '--- selector block ---' sed -n '41165,41188p' tests/ShaderRecompilerComputeTests.cpp printf '%s\n' '--- CTest skip configuration search ---' rg -n -C 2 -- 'SKIP_RETURN_CODE|compute_dword_pattern_clear_gpu' CMakeLists.txt || test "$?" -eq 1 ``` Repository: KytyPS5/KytyPS5 Length of output: 17827 --- 🏁 Script executed: ```bash set -euo pipefail printf '%s\n' '--- initialization and test case locations ---' rg -n -F 'void Init()' tests/ShaderRecompilerComputeTests.cpp rg -n -F 'TestCase DwordPatternFill(' tests/ShaderRecompilerComputeTests.cpp printf '%s\n' '--- relevant initialization blocks ---' python3 - <<'PY' from pathlib import Path p = Path("tests/ShaderRecompilerComputeTests.cpp") lines = p.read_text().splitlines() for i, line in enumerate(lines): if "void Init()" in line: start = i depth = 0 begun = False for j in range(i, len(lines)): for c in lines[j]: if c == "{": depth += 1 begun = True elif c == "}": depth -= 1 if begun and depth == 0: print(f"--- {p}:{start+1}-{j+1} ---") for k in range(start, j+1): print(f"{k+1:>6} {lines[k]}") break for i, line in enumerate(lines): if "TestCase DwordPatternFill(" in line: start = i depth = 0 begun = False for j in range(i, len(lines)): for c in lines[j]: if c == "{": depth += 1 begun = True elif c == "}": depth -= 1 if begun and depth == 0: print(f"--- {p}:{start+1}-{j+1} ---") for k in range(start, j+1): print(f"{k+1:>6} {lines[k]}") break PY ``` Repository: KytyPS5/KytyPS5 Length of output: 18350 --- 🏁 Script executed: ```bash set -euo pipefail sed -n '925,985p' tests/ShaderRecompilerComputeTests.cpp ``` Repository: KytyPS5/KytyPS5 Length of output: 2116 --- 🏁 Script executed: ```bash rg -n -i -- 'SKIP_RETURN_CODE|SKIP_REGULAR_EXPRESSION|compute_dword_pattern_clear_gpu' -g 'CMakeLists.txt' -g '*.cmake' . || test "$?" -eq 1 ``` Repository: KytyPS5/KytyPS5 Length of output: 435 --- 🏁 Script executed: ```bash set +e rg -n -i -g 'CMakeLists.txt' -g '*.cmake' -- 'SKIP_RETURN_CODE|SKIP_REGULAR_EXPRESSION|compute_dword_pattern_clear_gpu' . status=$? if [ "$status" -gt 1 ]; then exit "$status"; fi exit 0 ``` Repository: KytyPS5/KytyPS5 Length of output: 222 --- </details> **Skip the GPU test when its Vulkan prerequisites are unavailable.** `if(NOT APPLE)` registers this test for every non-Apple build. The selected test path constructs `VulkanHarness`, whose initialization aborts when no Vulkan device is available or no device meets its required feature checks. The test has no CTest skip property, so an unsupported runner can fail the test suite instead of skipping this test. Return a dedicated skip code for unavailable prerequisites and configure this test’s `SKIP_RETURN_CODE`. <!-- fingerprinting:phantom:triton:serval --> <!-- cr-indicator-types:potential_issue --> <!-- cr-comment:v1:2a6b28afe01a55fcd03a7838 --> <!-- This is an auto-generated comment by CodeRabbit -->
Author
Owner

@⁠coderabbitai[bot] on GitHub · 2026-10-06 02:39 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: 81a23160-0424-43a0-9395-e4f26bd62acc
📥 Commits

Reviewing files that changed from the base of the PR and between cdb64bfd4f and 50945f8523.

📒 Files selected for processing (5)
  • CMakeLists.txt
  • src/graphics/host_gpu/renderer/renderCompute.cpp
  • src/graphics/shader/recompiler/ShaderRecompiler.cpp
  • src/graphics/shader/recompiler/ir/ShaderIR.h
  • 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-06 02:39 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/1094#pullrequestreview-5423179906) · **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**: `81a23160-0424-43a0-9395-e4f26bd62acc` </details> <details> <summary>📥 Commits</summary> Reviewing files that changed from the base of the PR and between cdb64bfd4fb4d5312b2542a41a0070f25663166a and 50945f85230823c1ee597f793ee4d2d7d36f0f0f. </details> <details> <summary>📒 Files selected for processing (5)</summary> * `CMakeLists.txt` * `src/graphics/host_gpu/renderer/renderCompute.cpp` * `src/graphics/shader/recompiler/ShaderRecompiler.cpp` * `src/graphics/shader/recompiler/ir/ShaderIR.h` * `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=cf29bb58-75b5-4dd7-b062-a44ab4555ae4 attempt=d44419f6-f52d-4376-ae1b-8883ca6ca09f batch=1/1 -->
Author
Owner

@⁠Nmzik on GitHub · 2026-10-17 02:27 UTC · original

@⁠juanfariasdev fixed & credited 9202bddad2 Thanks!

**@⁠Nmzik** on GitHub · 2026-10-17 02:27 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/1094#issuecomment-6228496006) @⁠juanfariasdev fixed & credited 9202bddad2c6fa66e7f0e864228aa63110c2e991 Thanks!

Pull request closed

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