shader: recompiler fixes for My First Gran Turismo (ForceUnorm samplers, F64 ops, scratch descriptor dwords, z slices, RTE) #1034

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

@⁠defektu on GitHub · 2026-10-04 01:06 UTC · original
defektu:pr/mfgt-shader → main · +457 −22 · 25 files · 13 commits · closed without merging

This is one of a few PRs that together get My First Gran Turismo (PPSA24156) running: #1030 (font), #1031 (hle), #1032 (tess), #1033 (host), #1034 (shader), and the draft #1035 (mixed sample counts), which the game also needs to get past the loading screen after "Start" (without it the game stops with "mixed color/depth sample counts are unsupported"). Each PR builds and passes the tests on its own; the title only works with all of them.

Checked by hand on a combined branch (all of the above) on an RTX 5060 Ti, Windows 11, clean save data: intro, title screen (car, lighting, reflections), main menu and the License Center screen. The individual PRs were not run in the game on their own.

Note: on current main this title waits at the "Sign in to PlayStation Network" dialog until Cancel is pressed; that comes from the sign-in dialog change, not from this PR.

Commits

shader: honor guest ForceUnormCoords samplers in the emitter
shader: add V_TRUNC/CEIL/FLOOR/MIN/MAX_F64 and the CDBG branch opcodes
shader: decode S_ENDPGM at 0x1f
shader: treat sampler S# scratch dwords and wave-mask descriptor words as dead
shader: do not declare RoundingModeRTE for FP64 shaders
shader: unpack snorm16 compressed exports
shader: derive the guest lane id from the lane inside its 64-lane wave
gpu: compile compute shaders per z slice when the workgroup z selects descriptors
gpu: skip dispatches of ray tracing shaders while ray tracing is unsupported

Body

Shared recompiler changes needed by My First Gran Turismo:

  • ForceUnormCoords (S# bit 15) is recorded per snapshot sampler and applied in the emitter by normalizing the
    coordinate, because Vulkan forbids unnormalized coordinates with implicit LOD;
  • F64 trunc/ceil/floor/min/max and the S_CBRANCH_CDBG* opcodes; S_ENDPGM at 0x1f (RDNA pads the code tail with
    it);
  • sampler S# dword 3 is dead unless an address mode clamps to a border: when dword 0 proves that, a non-runtime dword 3
    is replaced by zero. Image/sampler words that trace to a subgroup ballot are stale lane masks and are zeroed too;
  • no RoundingModeRTE declaration for FP64 shaders (round-to-nearest-even is the FP32 default; the NVIDIA compiler
    never returned from vkCreateComputePipelines for a large module that carried it);
  • compressed exports in SPI_SHADER_COL_FORMAT snorm16 mode are unpacked as snorm16 (they were read as half floats);
  • the guest lane id spans the 64-lane wave, so it is derived from the lane inside the wave;
  • compute shaders whose workgroup z index selects descriptors are compiled once per z slice (descriptors are resolved
    once per dispatch on the host, so z cannot be known otherwise);
  • a compute shader that calls through S_SWAPPC_B64 with a return address is skipped with one log line. The one My First Gran Turismo
    runs every frame (CS 0x2218a07ab01d4f46) holds six IMAGE_BVH_INTERSECT_RAY, i.e. it is a ray tracing shader.
    Any other unsupported instruction still exits. The ray tracing work replaces the unconditional skip with a check of
    its --raytracing option.

Review notes

  • This touches the shared recompiler and was only run with My First Gran Turismo. It has not been run against other
    titles, so a regression check on a few of them (for example their menus, which exercise the sampler and
    barrier paths) from someone with those games would be very welcome before merging.
  • Sampler scratch handling follows ResourceMaterialization.cpp after nmzik's "Share sampler descriptor snapshots"
    (7f158c65); the unnormalized flag is looked up by binding.source.

Testing: builds, 23 test executables pass.

🤖 Generated with Claude Code

**@⁠defektu** on GitHub · 2026-10-04 01:06 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/1034) `defektu:pr/mfgt-shader` → `main` · +457 −22 · 25 files · 13 commits · closed without merging This is one of a few PRs that together get My First Gran Turismo (PPSA24156) running: #1030 (font), #1031 (hle), #1032 (tess), #1033 (host), #1034 (shader), and the draft #1035 (mixed sample counts), which the game also needs to get past the loading screen after "Start" (without it the game stops with "mixed color/depth sample counts are unsupported"). Each PR builds and passes the tests on its own; the title only works with all of them. Checked by hand on a combined branch (all of the above) on an RTX 5060 Ti, Windows 11, clean save data: intro, title screen (car, lighting, reflections), main menu and the License Center screen. The individual PRs were not run in the game on their own. Note: on current `main` this title waits at the "Sign in to PlayStation Network" dialog until `Cancel` is pressed; that comes from the sign-in dialog change, not from this PR. **Commits** ``` shader: honor guest ForceUnormCoords samplers in the emitter shader: add V_TRUNC/CEIL/FLOOR/MIN/MAX_F64 and the CDBG branch opcodes shader: decode S_ENDPGM at 0x1f shader: treat sampler S# scratch dwords and wave-mask descriptor words as dead shader: do not declare RoundingModeRTE for FP64 shaders shader: unpack snorm16 compressed exports shader: derive the guest lane id from the lane inside its 64-lane wave gpu: compile compute shaders per z slice when the workgroup z selects descriptors gpu: skip dispatches of ray tracing shaders while ray tracing is unsupported ``` **Body** Shared recompiler changes needed by My First Gran Turismo: - `ForceUnormCoords` (S# bit 15) is recorded per snapshot sampler and applied in the emitter by normalizing the coordinate, because Vulkan forbids unnormalized coordinates with implicit LOD; - F64 trunc/ceil/floor/min/max and the `S_CBRANCH_CDBG*` opcodes; `S_ENDPGM` at `0x1f` (RDNA pads the code tail with it); - sampler S# dword 3 is dead unless an address mode clamps to a border: when dword 0 proves that, a non-runtime dword 3 is replaced by zero. Image/sampler words that trace to a subgroup ballot are stale lane masks and are zeroed too; - no `RoundingModeRTE` declaration for FP64 shaders (round-to-nearest-even is the FP32 default; the NVIDIA compiler never returned from `vkCreateComputePipelines` for a large module that carried it); - compressed exports in `SPI_SHADER_COL_FORMAT` snorm16 mode are unpacked as snorm16 (they were read as half floats); - the guest lane id spans the 64-lane wave, so it is derived from the lane inside the wave; - compute shaders whose workgroup z index selects descriptors are compiled once per z slice (descriptors are resolved once per dispatch on the host, so z cannot be known otherwise); - a compute shader that calls through `S_SWAPPC_B64` with a return address is skipped with one log line. The one My First Gran Turismo runs every frame (`CS 0x2218a07ab01d4f46`) holds six `IMAGE_BVH_INTERSECT_RAY`, i.e. it is a ray tracing shader. Any other unsupported instruction still exits. The ray tracing work replaces the unconditional skip with a check of its `--raytracing` option. **Review notes** - This touches the shared recompiler and was only run with My First Gran Turismo. It has not been run against other titles, so a regression check on a few of them (for example their menus, which exercise the sampler and barrier paths) from someone with those games would be very welcome before merging. - Sampler scratch handling follows `ResourceMaterialization.cpp` after nmzik's "Share sampler descriptor snapshots" (`7f158c65`); the unnormalized flag is looked up by `binding.source`. **Testing:** builds, 23 test executables pass. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
The host sampler cannot be unnormalized with implicit LOD (VUID-vkCmdDrawMeshTasksEXT-None-08610;
NVIDIA's compiler breaks into the debugger), so a sampler whose S# sets bit 15 must be handled in
the shader. The bit is captured per sampler in ResourceSpecialization (part of the permutation
key), carried to SamplerResource::force_unnormalized, and the emitter divides the spatial
coordinates by the level 0 extent (OpImageQuerySizeLod) before sampling. Cube and multisampled
images are left as they were. The host sampler is never created unnormalized.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
(cherry picked from commit 30d3bc9b11e0dd07394db99f1db82b42e5409977)
(cherry picked from commit 94c06db7f53520e644e53bf6ae56da3479b2b898)
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
(cherry picked from commit af5ea346312d66d3acd750c1c20f5cfa600762a3)
RDNA pads the tail of the code section with it; without the entry the decoder ran into the
padding and the literal pool.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
(cherry picked from commit 23909d6c2770cd47e7caec66760ae4e24193f5a1)
Dword 3 of a sampler is only read for border clamp modes; when dword 0 proves no border mode
is used it is replaced by zero. Image/sampler words that trace to a subgroup ballot are stale
lane masks and are zeroed as well. SrtWalker folds BitReverse32 and accepts u32x4 extracts.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
(cherry picked from commit 9604144d523f8e815a8ecc8f7676a363e3bf9fd0)
Round-to-nearest-even is the default for FP32 anyway, and the NVIDIA compiler never returns from
vkCreateComputePipelines for a large compute module that carries the declaration.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
(cherry picked from commit 0af2150e529f6cc83c91bdba3b0315be5d54548b)
SPI_SHADER_COL_FORMAT 6 was read as half floats, which turned packed normals into garbage.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
(cherry picked from commit b0fa25c7937f6793d3b3f6bd23d2128e75e2c1d6)
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
(cherry picked from commit a9998846fc743caebcb00b1717fd99326d4a249f)
The host resolves descriptors once per dispatch, so a descriptor chosen by the workgroup z index
cannot be known. The recompiler detects such a shader before resource tracking, the dispatch is
split into one dispatch per z slice and each slice is compiled with z folded in.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
(cherry picked from commit b7e257412bb7a4d96e674f45dee6255351d4c6a2)
My First Gran Turismo dispatches a compute shader (CS 0x2218a07ab01d4f46) every frame that
does BVH traversal: its ISA holds six IMAGE_BVH_INTERSECT_RAY and calls a
subroutine through S_SWAPPC_B64 with a return address. Function calls are
not translated, so the recompiler hit "SOP1 opcode 0x21 is not
implemented" and the session ended a few minutes into loading.

The decoder now reports such a program (uses_function_calls) before the
CFG is built, the program cache remembers it, and the dispatch is skipped
with a single log line. Any other unsupported instruction still exits.

The ray tracing work replaces the unconditional skip with a check of the
--raytracing option, so the skip applies only while that option is off.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
(cherry picked from commit a5afefdb312c71e2eb3885d17632a6e6f00e20e8)
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
DispatchDirect gained an indirect_args parameter (a dispatchIndirect path and
special cases for it) that nothing calls with a nonzero value. It is not needed
for splitting a dispatch into z slices and its buffer acquisition ordering and
stale-count handling would not be right if it were used, so remove it.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
The walker accepted CompositeExtractU32x4 (and ...ConstructU32x4) as runtime
uniform ops when validating a descriptor word but EvaluateInst had no case for
it, so such a word could be validated yet never evaluated. Evaluate an extract
of a vector built by CompositeConstructU32x4 through the component.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
ForceUnormCoords samplers are sampled as normalized by the host, so the shader
divides the texel-space coordinate by the level 0 extent. That was done for
plain and explicit-LOD samples only: gathers (including the 1D gather helper)
passed texel coordinates to OpImageGather/OpImageDrefGather, and explicit
gradients stayed in texel units next to a normalized coordinate. Normalize both.

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

@⁠coderabbitai[bot] on GitHub · 2026-10-04 01:12 UTC · original · edited 2026-10-04 02:20 UTC

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

📝 Walkthrough

Walkthrough

The changes add compute-shader handling for per-z-slice specialization and unsupported function calls. They move forced unnormalized sampler handling into shader specialization and coordinate normalization. They add FP64 shader operations and update descriptor validation, runtime operation handling, opcode decoding, and SPIR-V lane and export emission.

Suggested reviewers: francoisatt, nmzik

Priority: ➖ Normal

Change: Bug fix

Merge Risk: 🟡 Moderate · up to 8d415

Some affected dispatches can terminate the emulator or select the wrong resource, and a narrower sampler case can fail shader generation. Address these issues before merging.

Security Architecture Review

Security architecture risk: 🟡 Moderate · up to 8d415

Unsupported resource-selection expressions can now be replaced with different, accepted descriptors. This creates a risk of incorrect resource reads or writes within the running game. Access beyond the game's existing authority has not been demonstrated.

Retained concerns

  • Medium · reliability · inferred: The new retry treats any ballot ancestry as proof that an invalid image or sampler descriptor word is scratch and replaces the entire word with zero. A ballot-dependent selection or arithmetic expression can instead determine a live descriptor address or field. Such expressions previously failed validation; accepting their replacements can change resource identity and permit incorrect reads or writes. Downstream format checks do not prove identity preservation. This is a resource-integrity and validation-control concern, not a demonstrated host-isolation bypass.
Security review details

Security Blast Radius

  • inferred — The descriptor-rewrite concern reaches ordinary image and sampled-image resource tracking, including writable images. Its supported impact is incorrect guest-resource selection; host memory exposure, cross-process access, and additional privileges have not been established.

Security Findings and Attack Paths

  • inferred — A guest shader can supply a descriptor expression with ballot ancestry. Recursive uniform-value validation rejects that dependency, but the new retry substitutes zero and interns the replacement source. This establishes a static path to altered resource identity, not an executed exploit or a verified host-security vulnerability.

Trust Boundaries and Controls

  • observed — Materialization still evaluates descriptor sources and clears invalid image encodings. Those checks constrain descriptor shape but do not compare a rewritten descriptor with the resource intended by the guest expression.

Resilience and Maintainability Implications

  • observed — Unsupported function-call outcomes reset bindings and return without dispatch. Unsliceable Z-dependent direct dispatches instead take a process-termination path. The inspected source does not establish the fate of previously recorded or submitted GPU work during that termination, so durable partial-write effects are not asserted.
🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 18.37% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 49 functions across 24 files. 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 accurately names several major shader-recompiler changes, but it is longer than preferred.
Description check ✅ Passed The description explains the changes, their purpose, and the reported testing. It is 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.
  • 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-04 01:12 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/1034#issuecomment-5975286742) · edited 2026-10-04 02:20 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/1034?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> Navigate logical layers of code changes, visualize relationships, and explore their blast radius. <!-- review_stack_entry_end --> <!-- walkthrough_start --> <details> <summary>📝 Walkthrough</summary> ## Walkthrough The changes add compute-shader handling for per-z-slice specialization and unsupported function calls. They move forced unnormalized sampler handling into shader specialization and coordinate normalization. They add FP64 shader operations and update descriptor validation, runtime operation handling, opcode decoding, and SPIR-V lane and export emission. **Suggested reviewers:** `francoisatt`, `nmzik` </details> <!-- walkthrough_end --> <!-- change_assessment_start --> **Priority:** ➖ Normal <!-- change_assessment_commit:"8d415360796d022cc1ead735ad23b6833ec7d6a8" --> **Change:** Bug fix <!-- change_assessment_end --> <!-- final_review_risk_start --> **Merge Risk:** _🟡 Moderate_ · up to `8d415` <!-- final_review_risk_coverage:{"sourceCommitId":"8d415360796d022cc1ead735ad23b6833ec7d6a8","coveredCommitId":"8d415360796d022cc1ead735ad23b6833ec7d6a8","kind":"reviewed"} --> Some affected dispatches can terminate the emulator or select the wrong resource, and a narrower sampler case can fail shader generation. Address these issues before merging. <!-- final_review_risk_end --> <!-- architecture_review_start --> ### Security Architecture Review **Security architecture risk:** _🟡 Moderate_ · up to `8d415` Unsupported resource-selection expressions can now be replaced with different, accepted descriptors. This creates a risk of incorrect resource reads or writes within the running game. Access beyond the game's existing authority has not been demonstrated. **Retained concerns** - **Medium · reliability · inferred:** The new retry treats any ballot ancestry as proof that an invalid image or sampler descriptor word is scratch and replaces the entire word with zero. A ballot-dependent selection or arithmetic expression can instead determine a live descriptor address or field. Such expressions previously failed validation; accepting their replacements can change resource identity and permit incorrect reads or writes. Downstream format checks do not prove identity preservation. This is a resource-integrity and validation-control concern, not a demonstrated host-isolation bypass. <details> <summary>Security review details</summary> **Security Blast Radius** - _inferred_ — The descriptor-rewrite concern reaches ordinary image and sampled-image resource tracking, including writable images. Its supported impact is incorrect guest-resource selection; host memory exposure, cross-process access, and additional privileges have not been established. **Security Findings and Attack Paths** - _inferred_ — A guest shader can supply a descriptor expression with ballot ancestry. Recursive uniform-value validation rejects that dependency, but the new retry substitutes zero and interns the replacement source. This establishes a static path to altered resource identity, not an executed exploit or a verified host-security vulnerability. **Trust Boundaries and Controls** - _observed_ — Materialization still evaluates descriptor sources and clears invalid image encodings. Those checks constrain descriptor shape but do not compare a rewritten descriptor with the resource intended by the guest expression. **Resilience and Maintainability Implications** - _observed_ — Unsupported function-call outcomes reset bindings and return without dispatch. Unsliceable Z-dependent direct dispatches instead take a process-termination path. The inspected source does not establish the fate of previously recorded or submitted GPU work during that termination, so durable partial-write effects are not asserted. </details> <!-- architecture_review_end --> <!-- pre_merge_checks_walkthrough_start --> <details> <summary>🚥 Pre-merge checks | ✅ 4 | ❌ 1</summary> ### ❌ Failed checks (1 warning) | Check name | Status | Explanation | Resolution | | :----------------: | :--------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :--------------------------------------------------------------------------------- | | Docstring Coverage | ⚠️ Warning | Docstring coverage is 18.37% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 49 functions across 24 files. | 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 accurately names several major shader-recompiler changes, but it is longer than preferred. | | Description check | ✅ Passed | The description explains the changes, their purpose, and the reported testing. It is 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> <!-- 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=1034)! 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 -->
@ -139,0 +141,4 @@
// S# bit 15 (ForceUnormCoords) from uniform data, known only at bind time, so the decision lives
// in the shader: the bit is recorded in ResourceSpecialization::unnormalized_samplers and the
// emitter divides the texel-space coordinates by the level 0 extent (NormalizeForcedUnormCoord).
sampler_info.unnormalizedCoordinates = VK_FALSE;
Author
Owner

@⁠coderabbitai[bot] on GitHub · 2026-10-04 01:12 UTC · original

🎯 Functional Correctness | 🟠 Major | ⚡ Quick win

Normalize forced-unnormalized gather coordinates.

When ForceUnormCoords is set, this sampler now expects normalized coordinates. spirvEmitterImage.cpp still passes texel-space coordinates to OpImageGather and OpImageDrefGather at Lines 722–769. For example, an x coordinate of 8 on a 64-texel image reaches the host as 8 instead of 8/64. Apply the conversion to gathers, including the 1D gather helper, before switching the host sampler to normalized coordinates. (docs.vulkan.org)

**@⁠coderabbitai[bot]** on GitHub · 2026-10-04 01:12 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/1034#discussion_r4175639648) _🎯 Functional Correctness_ | _🟠 Major_ | _⚡ Quick win_ **Normalize forced-unnormalized gather coordinates.** When `ForceUnormCoords` is set, this sampler now expects normalized coordinates. `spirvEmitterImage.cpp` still passes texel-space coordinates to `OpImageGather` and `OpImageDrefGather` at Lines 722–769. For example, an x coordinate of 8 on a 64-texel image reaches the host as 8 instead of 8/64. Apply the conversion to gathers, including the 1D gather helper, before switching the host sampler to normalized coordinates. ([docs.vulkan.org](https://docs.vulkan.org/glsl/latest/chapters/builtinfunctions.html?utm_source=openai)) <!-- fingerprinting:phantom:poseidon:wombat --> <!-- cr-indicator-types:potential_issue --> <!-- cr-comment:v1:6ffe93d11a3ddaa57d645698 --> <!-- This is an auto-generated comment by CodeRabbit -->
Author
Owner

@⁠coderabbitai[bot] on GitHub · 2026-10-04 01:12 UTC · original
On src/graphics/host_gpu/renderer/renderCompute.cpp line 395 (outdated):

@@ -334,6 +381,19 @@ void RenderExecutor::DispatchDirect(uint64_t submit_id, CommandBuffer& buffer,
 		}
 	}
 
+	if (use_thread_dimensions && indirect_args != 0) {
+		// USE_THREAD_DIMENSIONS wants thread counts converted through the workgroup size, but an
+		// indirect dispatch only has group counts, and they live in a GPU-written buffer we cannot
+		// trust on the CPU. Hand the address to the device and let it do both steps.
+		static std::atomic<uint32_t> indirect_thread_log_count {0};
+		if (indirect_thread_log_count.fetch_add(1, std::memory_order_relaxed) < 16) {
+			LOGF("GraphicsRenderDispatchDirect: indirect dispatch with thread dimensions at "
+			     "0x%016" PRIx64 " uses host-read counts\n",
+			     indirect_args);
+		}
+		indirect_args = 0;
+	}

🎯 Functional Correctness | 🟠 Major | ⚡ Quick win

The thread-dimensions indirect path dispatches with possibly stale host counts.

The comment says the device handles the dispatch: "Hand the address to the device and let it do both steps." The code does the opposite. It sets indirect_args = 0, so the CPU-side thread_group_* values are used for the dispatch.

Lines 235-237 state that these values "can be stale or zero" for indirect dispatches. The zero-count skip was also bypassed for this case. As a result, this path can dispatch the wrong number of groups, or silently dispatch zero groups.

Choose one fix:

  • Read the counts from guest memory at this point.
  • Emit an explicit unsupported diagnostic.

In either case, update the comment to match the behavior.

**@⁠coderabbitai[bot]** on GitHub · 2026-10-04 01:12 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/1034#discussion_r4175639650) On `src/graphics/host_gpu/renderer/renderCompute.cpp` line 395 (outdated): ```diff @@ -334,6 +381,19 @@ void RenderExecutor::DispatchDirect(uint64_t submit_id, CommandBuffer& buffer, } } + if (use_thread_dimensions && indirect_args != 0) { + // USE_THREAD_DIMENSIONS wants thread counts converted through the workgroup size, but an + // indirect dispatch only has group counts, and they live in a GPU-written buffer we cannot + // trust on the CPU. Hand the address to the device and let it do both steps. + static std::atomic<uint32_t> indirect_thread_log_count {0}; + if (indirect_thread_log_count.fetch_add(1, std::memory_order_relaxed) < 16) { + LOGF("GraphicsRenderDispatchDirect: indirect dispatch with thread dimensions at " + "0x%016" PRIx64 " uses host-read counts\n", + indirect_args); + } + indirect_args = 0; + } ``` _🎯 Functional Correctness_ | _🟠 Major_ | _⚡ Quick win_ **The thread-dimensions indirect path dispatches with possibly stale host counts.** The comment says the device handles the dispatch: "Hand the address to the device and let it do both steps." The code does the opposite. It sets `indirect_args = 0`, so the CPU-side `thread_group_*` values are used for the dispatch. Lines 235-237 state that these values "can be stale or zero" for indirect dispatches. The zero-count skip was also bypassed for this case. As a result, this path can dispatch the wrong number of groups, or silently dispatch zero groups. Choose one fix: - Read the counts from guest memory at this point. - Emit an explicit unsupported diagnostic. In either case, update the comment to match the behavior. <!-- fingerprinting:phantom:medusa:pangolin --> <!-- cr-indicator-types:potential_issue --> <!-- cr-comment:v1:4cc2b09de15e47b63b34834b --> <!-- This is an auto-generated comment by CodeRabbit -->
Author
Owner

@⁠coderabbitai[bot] on GitHub · 2026-10-04 01:12 UTC · original
On src/graphics/host_gpu/renderer/renderCompute.cpp line 457 (outdated):

@@ -390,7 +450,29 @@ void RenderExecutor::DispatchDirect(uint64_t submit_id, CommandBuffer& buffer,
 		ShaderWriteHazardBarrier(vk_buffer, vk::PipelineStageFlagBits::eComputeShader);
 	}
 	vk_buffer.bindPipeline(vk::PipelineBindPoint::eCompute, pipeline.pipeline);
-	vk_buffer.dispatch(thread_group_x, thread_group_y, thread_group_z);
+	if (indirect_args != 0) {
+		// The counts sit in a buffer the GPU wrote; reading them with dispatchIndirect is what
+		// makes the dispatch see the values that dispatch was actually issued with.
+		auto [args_buffer, args_offset] = m_context.GetBufferCache().ObtainBuffer(
+		    indirect_args, 3u * sizeof(uint32_t), false, false, BufferId {});

🩺 Stability & Availability | 🟠 Major | ⚡ Quick win

Obtain the indirect argument buffer before you finalize the bindings, and check the result.

ObtainBuffer runs here, after RebindBuffers and CommitBindings. DispatchIndirect (Lines 513-517) explains why that order is unsafe: "Acquiring arguments can merge cache buffers; finalize shader bindings afterward." If a merge happens here, the descriptors that are already committed can reference a stale or destroyed buffer.

This path also does not check for args_buffer == nullptr or a misaligned args_offset, while DispatchIndirect does.

Move the ObtainBuffer call between RebindImages and RebindBuffers. Then add the same EXIT_IF checks that DispatchIndirect uses.

Proposed fix
 	RebindImages(bindings);
+	BufferPtr args_buffer {}; uint64_t args_offset = 0; // use the actual ObtainBuffer return types
+	if (indirect_args != 0) {
+		std::tie(args_buffer, args_offset) = m_context.GetBufferCache().ObtainBuffer(
+		    indirect_args, 3u * sizeof(uint32_t), false, false, BufferId {});
+		EXIT_IF(args_buffer == nullptr || (args_offset & 3u) != 0);
+	}
 	RebindBuffers(bindings);

Then use the prefetched args_buffer and args_offset in the indirect_args != 0 branch.

**@⁠coderabbitai[bot]** on GitHub · 2026-10-04 01:12 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/1034#discussion_r4175639651) On `src/graphics/host_gpu/renderer/renderCompute.cpp` line 457 (outdated): ```diff @@ -390,7 +450,29 @@ void RenderExecutor::DispatchDirect(uint64_t submit_id, CommandBuffer& buffer, ShaderWriteHazardBarrier(vk_buffer, vk::PipelineStageFlagBits::eComputeShader); } vk_buffer.bindPipeline(vk::PipelineBindPoint::eCompute, pipeline.pipeline); - vk_buffer.dispatch(thread_group_x, thread_group_y, thread_group_z); + if (indirect_args != 0) { + // The counts sit in a buffer the GPU wrote; reading them with dispatchIndirect is what + // makes the dispatch see the values that dispatch was actually issued with. + auto [args_buffer, args_offset] = m_context.GetBufferCache().ObtainBuffer( + indirect_args, 3u * sizeof(uint32_t), false, false, BufferId {}); ``` _🩺 Stability & Availability_ | _🟠 Major_ | _⚡ Quick win_ **Obtain the indirect argument buffer before you finalize the bindings, and check the result.** `ObtainBuffer` runs here, after `RebindBuffers` and `CommitBindings`. `DispatchIndirect` (Lines 513-517) explains why that order is unsafe: "Acquiring arguments can merge cache buffers; finalize shader bindings afterward." If a merge happens here, the descriptors that are already committed can reference a stale or destroyed buffer. This path also does not check for `args_buffer == nullptr` or a misaligned `args_offset`, while `DispatchIndirect` does. Move the `ObtainBuffer` call between `RebindImages` and `RebindBuffers`. Then add the same `EXIT_IF` checks that `DispatchIndirect` uses. <details> <summary>Proposed fix</summary> ```diff RebindImages(bindings); + BufferPtr args_buffer {}; uint64_t args_offset = 0; // use the actual ObtainBuffer return types + if (indirect_args != 0) { + std::tie(args_buffer, args_offset) = m_context.GetBufferCache().ObtainBuffer( + indirect_args, 3u * sizeof(uint32_t), false, false, BufferId {}); + EXIT_IF(args_buffer == nullptr || (args_offset & 3u) != 0); + } RebindBuffers(bindings); ``` Then use the prefetched `args_buffer` and `args_offset` in the `indirect_args != 0` branch. </details> <!-- fingerprinting:phantom:medusa:pangolin --> <!-- cr-indicator-types:potential_issue --> <!-- cr-comment:v1:e640245be3d7c6cb31fbe8fe --> <!-- This is an auto-generated comment by CodeRabbit -->
@ -780,2 +843,3 @@
const auto& candidate = state.program.info.images[resource];
const auto coord =
const auto coord = NormalizeForcedUnormCoord(
ctx, resource, mem.sampler,
Author
Owner

@⁠coderabbitai[bot] on GitHub · 2026-10-04 01:12 UTC · original · edited 2026-10-04 02:05 UTC

🎯 Functional Correctness | 🟠 Major | ⚡ Quick win

Scale explicit gradients with the sample coordinate.

When ImageSampleFlagDerivative and force_unnormalized are both set, this call divides the coordinate by the image extent. The Grad operands built at Lines 808–813 remain in texel-space units. Those operands describe the sampling derivatives, so the host receives an incorrect footprint even though it receives the corrected coordinate. Divide each spatial gradient component by the same extent. (registry.khronos.org)

✅ Addressed in commits d78c73c to 8d41536

**@⁠coderabbitai[bot]** on GitHub · 2026-10-04 01:12 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/1034#discussion_r4175639655) · edited 2026-10-04 02:05 UTC _🎯 Functional Correctness_ | _🟠 Major_ | _⚡ Quick win_ **Scale explicit gradients with the sample coordinate.** When `ImageSampleFlagDerivative` and `force_unnormalized` are both set, this call divides the coordinate by the image extent. The `Grad` operands built at Lines 808–813 remain in texel-space units. Those operands describe the sampling derivatives, so the host receives an incorrect footprint even though it receives the corrected coordinate. Divide each spatial gradient component by the same extent. ([registry.khronos.org](https://registry.khronos.org/SPIR-V/specs/unified1/SPIRV.html?utm_source=openai)) <!-- fingerprinting:phantom:poseidon:wombat --> <!-- cr-indicator-types:potential_issue --> <!-- cr-comment:v1:b57ae8e4fe78583a4def7149 --> <!-- This is an auto-generated comment by CodeRabbit --> ✅ Addressed in commits d78c73c to 8d41536
Author
Owner

@⁠coderabbitai[bot] on GitHub · 2026-10-04 01:12 UTC · original · edited 2026-10-04 01:50 UTC
On src/graphics/shader/recompiler/frontend/decode/ScalarAluOps.cpp line 100 (outdated):

@@ -94,6 +94,10 @@ constexpr OpcodeMap SOPK_OPCODE_LIST[] = {
 constexpr OpcodeMap SOPP_OPCODE_LIST[] = {
     {0x00u, Opcode::S_NOP},
     {0x01u, Opcode::S_ENDPGM},
+    // RDNA keeps s_endpgm at 0x1f and pads the tail of the code section with it. Without this
+    // entry the decode runs past the real code into the padding and the literal pool, and the
+    // translator turns that filler into a huge pile of nonsense instructions.
+    {0x1fu, Opcode::S_ENDPGM},

📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

Describe 0x1f as the S_CODE_END padding marker.

RDNA assigns SOPP opcode 0x1f to S_CODE_END; this table already maps 0x01 to S_ENDPGM. The alias may be intentional to stop decoding at padding, but the comment currently misstates the ISA. Clarify that intent. (amd.com)

Proposed comment correction
-    // RDNA keeps s_endpgm at 0x1f and pads the tail of the code section with it. Without this
-    // entry the decode runs past the real code into the padding and the literal pool, and the
-    // translator turns that filler into a huge pile of nonsense instructions.
+    // RDNA uses SOPP opcode 0x1f (S_CODE_END) to pad the shader buffer. Treat it as a decode
+    // terminator so the padding and following literal data are not translated.
📝 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.

    // RDNA uses SOPP opcode 0x1f (S_CODE_END) to pad the shader buffer. Treat it as a decode
    // terminator so the padding and following literal data are not translated.
    {0x1fu, Opcode::S_ENDPGM},

✅ Addressed in commits e1dd200 to 11343ef

**@⁠coderabbitai[bot]** on GitHub · 2026-10-04 01:12 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/1034#discussion_r4175639660) · edited 2026-10-04 01:50 UTC On `src/graphics/shader/recompiler/frontend/decode/ScalarAluOps.cpp` line 100 (outdated): ```diff @@ -94,6 +94,10 @@ constexpr OpcodeMap SOPK_OPCODE_LIST[] = { constexpr OpcodeMap SOPP_OPCODE_LIST[] = { {0x00u, Opcode::S_NOP}, {0x01u, Opcode::S_ENDPGM}, + // RDNA keeps s_endpgm at 0x1f and pads the tail of the code section with it. Without this + // entry the decode runs past the real code into the padding and the literal pool, and the + // translator turns that filler into a huge pile of nonsense instructions. + {0x1fu, Opcode::S_ENDPGM}, ``` _📐 Maintainability & Code Quality_ | _🟡 Minor_ | _⚡ Quick win_ **Describe `0x1f` as the `S_CODE_END` padding marker.** RDNA assigns SOPP opcode `0x1f` to `S_CODE_END`; this table already maps `0x01` to `S_ENDPGM`. The alias may be intentional to stop decoding at padding, but the comment currently misstates the ISA. Clarify that intent. ([amd.com](https://www.amd.com/content/dam/amd/en/documents/radeon-tech-docs/instruction-set-architectures/rdna-shader-instruction-set-architecture.pdf?utm_source=openai)) <details> <summary>Proposed comment correction</summary> ```diff - // RDNA keeps s_endpgm at 0x1f and pads the tail of the code section with it. Without this - // entry the decode runs past the real code into the padding and the literal pool, and the - // translator turns that filler into a huge pile of nonsense instructions. + // RDNA uses SOPP opcode 0x1f (S_CODE_END) to pad the shader buffer. Treat it as a decode + // terminator so the padding and following literal data are not translated. ``` </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 // RDNA uses SOPP opcode 0x1f (S_CODE_END) to pad the shader buffer. Treat it as a decode // terminator so the padding and following literal data are not translated. {0x1fu, Opcode::S_ENDPGM}, ``` </details> <!-- suggestion_end --> <!-- fingerprinting:phantom:triton:serval --> <!-- cr-indicator-types:potential_issue --> <!-- cr-comment:v1:373bc70291968a0cf67c188d --> <!-- This is an auto-generated comment by CodeRabbit --> ✅ Addressed in commits e1dd200 to 11343ef
@ -1676,0 +1731,4 @@
std::unordered_set<const Inst*> visited;
if (TracesToWaveMask(descriptor.dwords[bad_dword], visited, 0u)) {
descriptor.dwords[bad_dword] = Value(0u);
handle->SetArg(bad_dword, Value(0u));
Author
Owner

@⁠coderabbitai[bot] on GitHub · 2026-10-04 01:12 UTC · original

🎯 Functional Correctness | 🟠 Major | ⚡ Quick win

Do not treat ballot ancestry as proof of a scratch descriptor word.

If a shader uses a ballot result to select or address an image descriptor, TracesToWaveMask also finds that ballot through the descriptor word’s operands. The retry then replaces the selected descriptor word with zero. This can silently select the wrong image instead of preserving or rejecting the dynamic descriptor. Require proof that the word itself is dead scratch before substituting zero.

**@⁠coderabbitai[bot]** on GitHub · 2026-10-04 01:12 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/1034#discussion_r4175639666) _🎯 Functional Correctness_ | _🟠 Major_ | _⚡ Quick win_ **Do not treat ballot ancestry as proof of a scratch descriptor word.** If a shader uses a ballot result to select or address an image descriptor, `TracesToWaveMask` also finds that ballot through the descriptor word’s operands. The retry then replaces the selected descriptor word with zero. This can silently select the wrong image instead of preserving or rejecting the dynamic descriptor. Require proof that the *word itself* is dead scratch before substituting zero. <!-- fingerprinting:phantom:poseidon:wombat --> <!-- cr-indicator-types:potential_issue --> <!-- cr-comment:v1:b81665cf8986f7739c10d667 --> <!-- This is an auto-generated comment by CodeRabbit -->
@ -272,6 +275,18 @@ private:
source->GetOpcode() != ValueOpcode::IAddCarry32)) {
return finish(false);
}
} else if (op == ValueOpcode::CompositeExtractU32x4) {
Author
Owner

@⁠coderabbitai[bot] on GitHub · 2026-10-04 01:12 UTC · original · edited 2026-10-04 02:05 UTC

🎯 Functional Correctness | 🟠 Major | ⚡ Quick win

Implement evaluation for accepted U32x4 extracts.

When a validated descriptor word uses CompositeExtractU32x4, SrtWalker::EvaluateInst has no matching case and returns false. Adding the opcode to IsRuntimeUniformOp does not make the value evaluable. Add U32x4 extraction evaluation, including the accepted source forms, so these descriptor values can reach EvaluateDescriptor successfully.

✅ Addressed in commits d78c73c to 8d41536

**@⁠coderabbitai[bot]** on GitHub · 2026-10-04 01:12 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/1034#discussion_r4175639669) · edited 2026-10-04 02:05 UTC _🎯 Functional Correctness_ | _🟠 Major_ | _⚡ Quick win_ **Implement evaluation for accepted U32x4 extracts.** When a validated descriptor word uses `CompositeExtractU32x4`, `SrtWalker::EvaluateInst` has no matching case and returns `false`. Adding the opcode to `IsRuntimeUniformOp` does not make the value evaluable. Add U32x4 extraction evaluation, including the accepted source forms, so these descriptor values can reach `EvaluateDescriptor` successfully. <!-- fingerprinting:phantom:poseidon:wombat --> <!-- cr-indicator-types:potential_issue --> <!-- cr-comment:v1:ec8623c74e17b5377d6df228 --> <!-- This is an auto-generated comment by CodeRabbit --> ✅ Addressed in commits d78c73c to 8d41536
Author
Owner

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

Actionable comments posted: 7


ℹ️ Review info
⚙️ Run configuration
  • Configuration used: Repository: KytyPS5/KytyPS5/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 923e1010-0f0b-401a-bc43-f7de51526f2e
📥 Commits

Reviewing files that changed from the base of the PR and between db17585277 and aafa72eeb7.

📒 Files selected for processing (25)
  • src/graphics/host_gpu/renderer/cache/samplerCache.cpp
  • src/graphics/host_gpu/renderer/pipeline/pipelineCache.cpp
  • src/graphics/host_gpu/renderer/render.h
  • src/graphics/host_gpu/renderer/renderCompute.cpp
  • src/graphics/shader/recompiler/ShaderRecompiler.cpp
  • src/graphics/shader/recompiler/ShaderRecompiler.h
  • src/graphics/shader/recompiler/backend/spirv/spirvEmitterFlow.cpp
  • src/graphics/shader/recompiler/backend/spirv/spirvEmitterHelpers.cpp
  • src/graphics/shader/recompiler/backend/spirv/spirvEmitterImage.cpp
  • src/graphics/shader/recompiler/backend/spirv/spirvEmitterInstructions.h
  • src/graphics/shader/recompiler/backend/spirv/spirvEmitterInternal.h
  • src/graphics/shader/recompiler/backend/spirv/spirvEmitterModule.cpp
  • src/graphics/shader/recompiler/frontend/decode/ScalarAluOps.cpp
  • src/graphics/shader/recompiler/frontend/decode/ShaderDecoder.h
  • src/graphics/shader/recompiler/frontend/decode/VectorAluOps.cpp
  • src/graphics/shader/recompiler/frontend/translate/Translate.cpp
  • src/graphics/shader/recompiler/frontend/translate/Vector.cpp
  • src/graphics/shader/recompiler/ir/ShaderIR.h
  • src/graphics/shader/recompiler/ir/opcodes/ValueOpcodes.inc
  • src/graphics/shader/recompiler/ir/passes/ResourceMaterialization.cpp
  • src/graphics/shader/recompiler/ir/passes/ResourceMaterialization.h
  • src/graphics/shader/recompiler/ir/passes/ResourceTracking.cpp
  • src/graphics/shader/recompiler/ir/passes/SrtWalker.cpp
  • src/graphics/shader/shader.cpp
  • src/graphics/shader/shader.h

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

**@⁠coderabbitai[bot]** on GitHub · 2026-10-04 01:12 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/1034#pullrequestreview-5403710384) · **reviewed** **Actionable comments posted: 7** --- <details> <summary>ℹ️ Review info</summary> <details> <summary>⚙️ Run configuration</summary> - **Configuration used**: Repository: KytyPS5/KytyPS5/.coderabbit.yaml - **Review profile**: CHILL - **Plan**: Advanced - **Run ID**: `923e1010-0f0b-401a-bc43-f7de51526f2e` </details> <details> <summary>📥 Commits</summary> Reviewing files that changed from the base of the PR and between db1758527751125592f57bf02f29616fa0643159 and aafa72eeb766c6e5ae0e99592b3fd32dbb2148d9. </details> <details> <summary>📒 Files selected for processing (25)</summary> * `src/graphics/host_gpu/renderer/cache/samplerCache.cpp` * `src/graphics/host_gpu/renderer/pipeline/pipelineCache.cpp` * `src/graphics/host_gpu/renderer/render.h` * `src/graphics/host_gpu/renderer/renderCompute.cpp` * `src/graphics/shader/recompiler/ShaderRecompiler.cpp` * `src/graphics/shader/recompiler/ShaderRecompiler.h` * `src/graphics/shader/recompiler/backend/spirv/spirvEmitterFlow.cpp` * `src/graphics/shader/recompiler/backend/spirv/spirvEmitterHelpers.cpp` * `src/graphics/shader/recompiler/backend/spirv/spirvEmitterImage.cpp` * `src/graphics/shader/recompiler/backend/spirv/spirvEmitterInstructions.h` * `src/graphics/shader/recompiler/backend/spirv/spirvEmitterInternal.h` * `src/graphics/shader/recompiler/backend/spirv/spirvEmitterModule.cpp` * `src/graphics/shader/recompiler/frontend/decode/ScalarAluOps.cpp` * `src/graphics/shader/recompiler/frontend/decode/ShaderDecoder.h` * `src/graphics/shader/recompiler/frontend/decode/VectorAluOps.cpp` * `src/graphics/shader/recompiler/frontend/translate/Translate.cpp` * `src/graphics/shader/recompiler/frontend/translate/Vector.cpp` * `src/graphics/shader/recompiler/ir/ShaderIR.h` * `src/graphics/shader/recompiler/ir/opcodes/ValueOpcodes.inc` * `src/graphics/shader/recompiler/ir/passes/ResourceMaterialization.cpp` * `src/graphics/shader/recompiler/ir/passes/ResourceMaterialization.h` * `src/graphics/shader/recompiler/ir/passes/ResourceTracking.cpp` * `src/graphics/shader/recompiler/ir/passes/SrtWalker.cpp` * `src/graphics/shader/shader.cpp` * `src/graphics/shader/shader.h` </details> **Included review availability:** This review used your included allowance. Your plan provides up to 8 included reviews per hour; 3 remain after this review. </details> <!-- This is an auto-generated comment by CodeRabbit for review status -->
@ -259,0 +294,4 @@
EXIT("compute shader 0x%016" PRIx64 " needs per-slice compilation that this dispatch cannot use "
"(thread dimensions or more than 16 z groups)\n",
sh_ctx.GetCs().cs_regs.data_addr);
}
Author
Owner

@⁠coderabbitai[bot] on GitHub · 2026-10-04 01:59 UTC · original

🩺 Stability & Availability | 🟠 Major | ⚡ Quick win

🔎 Supported by static analysis

🏁 Script executed:

rg -n 'DispatchDirect\(|COMPUTE_DISPATCH_INITIATOR_USE_THREAD_DIMENSIONS' src/graphics/guest_gpu src/graphics/host_gpu/renderer/renderCompute.cpp

Repository: KytyPS5/KytyPS5

Length of output: 1465


🏁 Script executed:

printf '%s\n' '--- guest dispatch handler ---'; sed -n '990,1055p' src/graphics/guest_gpu/graphicsRun.cpp; printf '%s\n' '--- PM4 handler ---'; sed -n '1300,1335p' src/graphics/guest_gpu/command_processor/pm4Handlers.cpp; printf '%s\n' '--- host direct dispatch ---'; sed -n '190,280p' src/graphics/host_gpu/renderer/renderCompute.cpp; printf '%s\n' '--- host slice and failure branch ---'; sed -n '270,310p' src/graphics/host_gpu/renderer/renderCompute.cpp; printf '%s\n' '--- PM4 packet definitions/usages ---'; rg -n -C 4 'COMPUTE_DISPATCH_DIRECT|DispatchDirect\\(' src/graphics/guest_gpu/command_processor src/graphics/guest_gpu/pm4.h

Repository: KytyPS5/KytyPS5

Length of output: 9989


🏁 Script executed:

rg -n '#[[:space:]]*define[[:space:]]+EXIT|EXIT\\(' src --glob '*.{h,hpp,c,cc,cpp,inl}' | head -80

Repository: KytyPS5/KytyPS5

Length of output: 256


🏁 Script executed:

rg -n -F -e '#define EXIT' -e 'EXIT(' src | head -80

Repository: KytyPS5/KytyPS5

Length of output: 8550


🏁 Script executed:

rg -n -F 'define EXIT' . --glob '*.{h,hpp,c,cc,cpp,inl}' | head -40; printf '%s\n' '--- EXIT declarations ---'; rg -n -w 'EXIT' . --glob '*.{h,hpp,c,cc,cpp,inl}' | head -40

Repository: KytyPS5/KytyPS5

Length of output: 5653


🏁 Script executed:

sed -n '25,62p' src/common/assert.h | cat -n -v

Repository: KytyPS5/KytyPS5

Length of output: 2492


🏁 Script executed:

rg -n 'DbgExitHandler|DbgExit\\(' src/common --glob '*.{h,hpp,c,cc,cpp,inl}'

Repository: KytyPS5/KytyPS5

Length of output: 238


🏁 Script executed:

rg -n -F -e 'DbgExitHandler' -e 'DbgExit(' src/common

Repository: KytyPS5/KytyPS5

Length of output: 1282


🏁 Script executed:

sed -n '1,60p' src/common/assert.cpp | cat -n -v

Repository: KytyPS5/KytyPS5

Length of output: 2062


🏁 Script executed:

git diff --unified=6 db1758527751125592f57bf02f29616fa0643159 11343ef63f1d4b13d7bfab57df1417cfd2a27beb -- src/graphics/host_gpu/renderer/renderCompute.cpp | rg -n -C 12 'needs per-slice|DispatchDirectSlice|want_slices'

Repository: KytyPS5/KytyPS5

Length of output: 3804


Skip unsupported group-Z dispatches instead of exiting.

CpOpDispatchDirect forwards the packet’s Z count and mode unchanged. When the initial GetComputeProgram probe returns no program for a non-function-call shader marked needs_group_z, thread-dimensions mode or a Z count above 16 prevents slicing and reaches EXIT. EXIT invokes std::_Exit(321), so a guest dispatch can terminate the emulator process. Log, reset bindings, and return instead.

🐛 Suggested fix
 	if (!compute_program) {
-		EXIT("compute shader 0x%016" PRIx64 " needs per-slice compilation that this dispatch cannot use "
-		     "(thread dimensions or more than 16 z groups)\n",
-		     sh_ctx.GetCs().cs_regs.data_addr);
+		LOGF("GraphicsRenderDispatchDirect: shader 0x%016" PRIx64
+		     " cannot be compiled for this dispatch; skipping\n",
+		     sh_ctx.GetCs().cs_regs.data_addr);
+		ResetBindings();
+		return;
 	}
📝 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 (!compute_program) {
		LOGF("GraphicsRenderDispatchDirect: shader 0x%016" PRIx64
		     " cannot be compiled for this dispatch; skipping\n",
		     sh_ctx.GetCs().cs_regs.data_addr);
		ResetBindings();
		return;
	}
**@⁠coderabbitai[bot]** on GitHub · 2026-10-04 01:59 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/1034#discussion_r4175762333) _🩺 Stability & Availability_ | _🟠 Major_ | _⚡ Quick win_ <details> <summary>🔎 Supported by static analysis</summary> 🏁 Script executed: ```bash rg -n 'DispatchDirect\(|COMPUTE_DISPATCH_INITIATOR_USE_THREAD_DIMENSIONS' src/graphics/guest_gpu src/graphics/host_gpu/renderer/renderCompute.cpp ``` Repository: KytyPS5/KytyPS5 Length of output: 1465 --- 🏁 Script executed: ```bash printf '%s\n' '--- guest dispatch handler ---'; sed -n '990,1055p' src/graphics/guest_gpu/graphicsRun.cpp; printf '%s\n' '--- PM4 handler ---'; sed -n '1300,1335p' src/graphics/guest_gpu/command_processor/pm4Handlers.cpp; printf '%s\n' '--- host direct dispatch ---'; sed -n '190,280p' src/graphics/host_gpu/renderer/renderCompute.cpp; printf '%s\n' '--- host slice and failure branch ---'; sed -n '270,310p' src/graphics/host_gpu/renderer/renderCompute.cpp; printf '%s\n' '--- PM4 packet definitions/usages ---'; rg -n -C 4 'COMPUTE_DISPATCH_DIRECT|DispatchDirect\\(' src/graphics/guest_gpu/command_processor src/graphics/guest_gpu/pm4.h ``` Repository: KytyPS5/KytyPS5 Length of output: 9989 --- 🏁 Script executed: ```bash rg -n '#[[:space:]]*define[[:space:]]+EXIT|EXIT\\(' src --glob '*.{h,hpp,c,cc,cpp,inl}' | head -80 ``` Repository: KytyPS5/KytyPS5 Length of output: 256 --- 🏁 Script executed: ```bash rg -n -F -e '#define EXIT' -e 'EXIT(' src | head -80 ``` Repository: KytyPS5/KytyPS5 Length of output: 8550 --- 🏁 Script executed: ```bash rg -n -F 'define EXIT' . --glob '*.{h,hpp,c,cc,cpp,inl}' | head -40; printf '%s\n' '--- EXIT declarations ---'; rg -n -w 'EXIT' . --glob '*.{h,hpp,c,cc,cpp,inl}' | head -40 ``` Repository: KytyPS5/KytyPS5 Length of output: 5653 --- 🏁 Script executed: ```bash sed -n '25,62p' src/common/assert.h | cat -n -v ``` Repository: KytyPS5/KytyPS5 Length of output: 2492 --- 🏁 Script executed: ```bash rg -n 'DbgExitHandler|DbgExit\\(' src/common --glob '*.{h,hpp,c,cc,cpp,inl}' ``` Repository: KytyPS5/KytyPS5 Length of output: 238 --- 🏁 Script executed: ```bash rg -n -F -e 'DbgExitHandler' -e 'DbgExit(' src/common ``` Repository: KytyPS5/KytyPS5 Length of output: 1282 --- 🏁 Script executed: ```bash sed -n '1,60p' src/common/assert.cpp | cat -n -v ``` Repository: KytyPS5/KytyPS5 Length of output: 2062 --- 🏁 Script executed: ```bash git diff --unified=6 db1758527751125592f57bf02f29616fa0643159 11343ef63f1d4b13d7bfab57df1417cfd2a27beb -- src/graphics/host_gpu/renderer/renderCompute.cpp | rg -n -C 12 'needs per-slice|DispatchDirectSlice|want_slices' ``` Repository: KytyPS5/KytyPS5 Length of output: 3804 --- </details> **Skip unsupported group-Z dispatches instead of exiting.** `CpOpDispatchDirect` forwards the packet’s Z count and mode unchanged. When the initial `GetComputeProgram` probe returns no program for a non-function-call shader marked `needs_group_z`, thread-dimensions mode or a Z count above 16 prevents slicing and reaches `EXIT`. `EXIT` invokes `std::_Exit(321)`, so a guest dispatch can terminate the emulator process. Log, reset bindings, and return instead. <details> <summary>🐛 Suggested fix</summary> ```diff if (!compute_program) { - EXIT("compute shader 0x%016" PRIx64 " needs per-slice compilation that this dispatch cannot use " - "(thread dimensions or more than 16 z groups)\n", - sh_ctx.GetCs().cs_regs.data_addr); + LOGF("GraphicsRenderDispatchDirect: shader 0x%016" PRIx64 + " cannot be compiled for this dispatch; skipping\n", + sh_ctx.GetCs().cs_regs.data_addr); + ResetBindings(); + return; } ``` </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 (!compute_program) { LOGF("GraphicsRenderDispatchDirect: shader 0x%016" PRIx64 " cannot be compiled for this dispatch; skipping\n", sh_ctx.GetCs().cs_regs.data_addr); ResetBindings(); return; } ``` </details> <!-- suggestion_end --> <!-- fingerprinting:phantom:medusa:wombat --> <!-- cr-indicator-types:potential_issue --> <!-- cr-comment:v1:4d2ba910b601dfca82ac0e4a --> <!-- This is an auto-generated comment by CodeRabbit -->
Author
Owner

@⁠coderabbitai[bot] on GitHub · 2026-10-04 01:59 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: e8d127ea-0e88-47a3-86c8-478997775116
📥 Commits

Reviewing files that changed from the base of the PR and between aafa72eeb7 and 11343ef63f.

📒 Files selected for processing (3)
  • src/graphics/host_gpu/renderer/render.h
  • src/graphics/host_gpu/renderer/renderCompute.cpp
  • src/graphics/shader/recompiler/frontend/decode/ScalarAluOps.cpp
🚧 Files skipped from review as they are similar to previous changes (1)
  • src/graphics/shader/recompiler/frontend/decode/ScalarAluOps.cpp

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

**@⁠coderabbitai[bot]** on GitHub · 2026-10-04 01:59 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/1034#pullrequestreview-5403843429) · **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**: `e8d127ea-0e88-47a3-86c8-478997775116` </details> <details> <summary>📥 Commits</summary> Reviewing files that changed from the base of the PR and between aafa72eeb766c6e5ae0e99592b3fd32dbb2148d9 and 11343ef63f1d4b13d7bfab57df1417cfd2a27beb. </details> <details> <summary>📒 Files selected for processing (3)</summary> * `src/graphics/host_gpu/renderer/render.h` * `src/graphics/host_gpu/renderer/renderCompute.cpp` * `src/graphics/shader/recompiler/frontend/decode/ScalarAluOps.cpp` </details> <details> <summary>🚧 Files skipped from review as they are similar to previous changes (1)</summary> * src/graphics/shader/recompiler/frontend/decode/ScalarAluOps.cpp </details> **Included review availability:** This review used your included allowance. Your plan provides up to 8 included reviews per hour; 0 remain after this review. </details> <!-- This is an auto-generated comment by CodeRabbit for review status -->
@ -470,0 +514,4 @@
words.insert(words.end(), parts, parts + components);
state.builder.AddFunction(spv::OpCompositeConstruct, words);
return result;
}
Author
Owner

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

🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

🔎 Supported by static analysis

🏁 Script executed:

#!/bin/bash
set -e
file=src/graphics/shader/recompiler/backend/spirv/spirvEmitterImage.cpp
echo '--- head source ---'
git show 8d415360796d022cc1ead735ad23b6833ec7d6a8:"$file" | nl -ba | sed -n '450,535p'
echo '--- base-to-head diff ---'
git diff --unified=8 db1758527751125592f57bf02f29616fa0643159 8d415360796d022cc1ead735ad23b6833ec7d6a8 -- "$file" | sed -n '1,180p'
echo '--- dimension metadata and direct callers ---'
rg -n -C 4 'ImageDimensionInfoFor|struct ImageDimensionInfo|NormalizeForcedUnormValue' src/graphics/shader/recompiler

Repository: KytyPS5/KytyPS5

Length of output: 32412


🏁 Script executed:

#!/bin/bash
set -e
head=8d415360796d022cc1ead735ad23b6833ec7d6a8
for file in \
  src/graphics/shader/recompiler/backend/spirv/spirvEmitterInternal.h \
  src/graphics/shader/recompiler/backend/spirv/spirvEmitterAnalysis.cpp \
  src/graphics/shader/recompiler/backend/spirv/spirvEmitterImage.cpp
do
  echo "--- $file ---"
  git show "$head:$file" | nl -ba | case "$file" in
    *spirvEmitterInternal.h) sed -n '38,59p' ;;
    *spirvEmitterAnalysis.cpp) sed -n '142,154p' ;;
    *spirvEmitterImage.cpp) sed -n '115,168p;810,842p' ;;
  esac
done

Repository: KytyPS5/KytyPS5

Length of output: 6473


Extract the 1D-array extent before converting gradients.

For Dim1DArray samples with explicit gradients and a force_unnormalized sampler, components is 1, so the code skips extracting from size. ImageViewSizeType returns a uvec2, which then reaches OpConvertUToF with a scalar f32 result type. Extract the extent whenever coordinate_components is greater than 1.

🐛 Suggested fix
 		if (components != 1u) {
 			value = state.builder.AllocateId();
 			state.builder.AddFunction(spv::OpCompositeExtract, TypeF32(state), value, coord, index);
+		}
+		if (info.coordinate_components != 1u) {
 			extent = state.builder.AllocateId();
 			state.builder.AddFunction(spv::OpCompositeExtract, TypeU32(state), extent, size, index);
 		}
📝 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.

uint32_t NormalizeForcedUnormValue(ValueEmitContext& ctx, uint32_t resource, uint32_t sampler,
                                   uint32_t coord, bool gradient) {
	auto&       state     = ctx.state;
	const auto& samplers  = state.program.info.samplers;
	const auto& candidate = state.program.info.images[resource];
	if (sampler >= samplers.size() || !samplers[sampler].force_unnormalized || candidate.cube) {
		return coord;
	}
	const auto& info = ImageDimensionInfoFor(candidate.dimension);
	if (info.multisampled != 0u) {
		return coord;
	}
	state.builder.RequireCapability(spv::CapabilityImageQuery);
	const auto image = LoadImageDescriptor(state, resource);
	const auto size  = state.builder.AllocateId();
	state.builder.AddFunction(spv::OpImageQuerySizeLod, ImageViewSizeType(state, candidate.dimension),
	                          size, image, ConstantU32(state, 0));
	const uint32_t components = gradient ? info.spatial_components : info.coordinate_components;
	uint32_t       parts[4]   = {};
	for (uint32_t index = 0; index < components; index++) {
		auto value = coord;
		auto extent = size;
		if (components != 1u) {
			value = state.builder.AllocateId();
			state.builder.AddFunction(spv::OpCompositeExtract, TypeF32(state), value, coord, index);
		}
		if (info.coordinate_components != 1u) {
			extent = state.builder.AllocateId();
			state.builder.AddFunction(spv::OpCompositeExtract, TypeU32(state), extent, size, index);
		}
		if (index < info.spatial_components) {
			const auto extent_f = state.builder.AllocateId();
			state.builder.AddFunction(spv::OpConvertUToF, TypeF32(state), extent_f, extent);
			value = Binary(state, spv::OpFDiv, TypeF32(state), value, extent_f);
		}
		parts[index] = value;
	}
	if (components == 1u) {
		return parts[0];
	}
	const auto result = state.builder.AllocateId();
	std::vector<uint32_t> words {TypeF32Vector(state, components), result};
	words.insert(words.end(), parts, parts + components);
	state.builder.AddFunction(spv::OpCompositeConstruct, words);
	return result;
}
**@⁠coderabbitai[bot]** on GitHub · 2026-10-04 02:16 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/1034#discussion_r4175806115) _🎯 Functional Correctness_ | _🟡 Minor_ | _⚡ Quick win_ <details> <summary>🔎 Supported by static analysis</summary> 🏁 Script executed: ```bash #!/bin/bash set -e file=src/graphics/shader/recompiler/backend/spirv/spirvEmitterImage.cpp echo '--- head source ---' git show 8d415360796d022cc1ead735ad23b6833ec7d6a8:"$file" | nl -ba | sed -n '450,535p' echo '--- base-to-head diff ---' git diff --unified=8 db1758527751125592f57bf02f29616fa0643159 8d415360796d022cc1ead735ad23b6833ec7d6a8 -- "$file" | sed -n '1,180p' echo '--- dimension metadata and direct callers ---' rg -n -C 4 'ImageDimensionInfoFor|struct ImageDimensionInfo|NormalizeForcedUnormValue' src/graphics/shader/recompiler ``` Repository: KytyPS5/KytyPS5 Length of output: 32412 --- 🏁 Script executed: ```bash #!/bin/bash set -e head=8d415360796d022cc1ead735ad23b6833ec7d6a8 for file in \ src/graphics/shader/recompiler/backend/spirv/spirvEmitterInternal.h \ src/graphics/shader/recompiler/backend/spirv/spirvEmitterAnalysis.cpp \ src/graphics/shader/recompiler/backend/spirv/spirvEmitterImage.cpp do echo "--- $file ---" git show "$head:$file" | nl -ba | case "$file" in *spirvEmitterInternal.h) sed -n '38,59p' ;; *spirvEmitterAnalysis.cpp) sed -n '142,154p' ;; *spirvEmitterImage.cpp) sed -n '115,168p;810,842p' ;; esac done ``` Repository: KytyPS5/KytyPS5 Length of output: 6473 --- </details> **Extract the 1D-array extent before converting gradients.** For `Dim1DArray` samples with explicit gradients and a `force_unnormalized` sampler, `components` is 1, so the code skips extracting from `size`. `ImageViewSizeType` returns a `uvec2`, which then reaches `OpConvertUToF` with a scalar `f32` result type. Extract the extent whenever `coordinate_components` is greater than 1. <details> <summary>🐛 Suggested fix</summary> ```diff if (components != 1u) { value = state.builder.AllocateId(); state.builder.AddFunction(spv::OpCompositeExtract, TypeF32(state), value, coord, index); + } + if (info.coordinate_components != 1u) { extent = state.builder.AllocateId(); state.builder.AddFunction(spv::OpCompositeExtract, TypeU32(state), extent, size, index); } ``` </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 uint32_t NormalizeForcedUnormValue(ValueEmitContext& ctx, uint32_t resource, uint32_t sampler, uint32_t coord, bool gradient) { auto& state = ctx.state; const auto& samplers = state.program.info.samplers; const auto& candidate = state.program.info.images[resource]; if (sampler >= samplers.size() || !samplers[sampler].force_unnormalized || candidate.cube) { return coord; } const auto& info = ImageDimensionInfoFor(candidate.dimension); if (info.multisampled != 0u) { return coord; } state.builder.RequireCapability(spv::CapabilityImageQuery); const auto image = LoadImageDescriptor(state, resource); const auto size = state.builder.AllocateId(); state.builder.AddFunction(spv::OpImageQuerySizeLod, ImageViewSizeType(state, candidate.dimension), size, image, ConstantU32(state, 0)); const uint32_t components = gradient ? info.spatial_components : info.coordinate_components; uint32_t parts[4] = {}; for (uint32_t index = 0; index < components; index++) { auto value = coord; auto extent = size; if (components != 1u) { value = state.builder.AllocateId(); state.builder.AddFunction(spv::OpCompositeExtract, TypeF32(state), value, coord, index); } if (info.coordinate_components != 1u) { extent = state.builder.AllocateId(); state.builder.AddFunction(spv::OpCompositeExtract, TypeU32(state), extent, size, index); } if (index < info.spatial_components) { const auto extent_f = state.builder.AllocateId(); state.builder.AddFunction(spv::OpConvertUToF, TypeF32(state), extent_f, extent); value = Binary(state, spv::OpFDiv, TypeF32(state), value, extent_f); } parts[index] = value; } if (components == 1u) { return parts[0]; } const auto result = state.builder.AllocateId(); std::vector<uint32_t> words {TypeF32Vector(state, components), result}; words.insert(words.end(), parts, parts + components); state.builder.AddFunction(spv::OpCompositeConstruct, words); return result; } ``` </details> <!-- suggestion_end --> <!-- fingerprinting:phantom:poseidon:beignet55 --> <!-- cr-indicator-types:potential_issue --> <!-- cr-comment:v1:51dce1c567720a3f46e34d6b --> <!-- This is an auto-generated comment by CodeRabbit -->
Author
Owner

@⁠coderabbitai[bot] on GitHub · 2026-10-04 02:16 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: 4dd9b6d2-459f-4e8a-bea9-a898cc2f51fc
📥 Commits

Reviewing files that changed from the base of the PR and between 11343ef63f and 8d41536079.

📒 Files selected for processing (2)
  • src/graphics/shader/recompiler/backend/spirv/spirvEmitterImage.cpp
  • src/graphics/shader/recompiler/ir/passes/SrtWalker.cpp
🚧 Files skipped from review as they are similar to previous changes (1)
  • src/graphics/shader/recompiler/ir/passes/SrtWalker.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-04 02:16 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/1034#pullrequestreview-5403893394) · **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**: `4dd9b6d2-459f-4e8a-bea9-a898cc2f51fc` </details> <details> <summary>📥 Commits</summary> Reviewing files that changed from the base of the PR and between 11343ef63f1d4b13d7bfab57df1417cfd2a27beb and 8d415360796d022cc1ead735ad23b6833ec7d6a8. </details> <details> <summary>📒 Files selected for processing (2)</summary> * `src/graphics/shader/recompiler/backend/spirv/spirvEmitterImage.cpp` * `src/graphics/shader/recompiler/ir/passes/SrtWalker.cpp` </details> <details> <summary>🚧 Files skipped from review as they are similar to previous changes (1)</summary> * src/graphics/shader/recompiler/ir/passes/SrtWalker.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 -->
Author
Owner

@⁠Nmzik on GitHub · 2026-10-04 23:06 UTC · original

@⁠defektu Most of changes are in main(some were hacks). Credited

**@⁠Nmzik** on GitHub · 2026-10-04 23:06 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/1034#issuecomment-5985429870) @⁠defektu Most of changes are in main(some were hacks). Credited
Author
Owner

@⁠Nmzik on GitHub · 2026-10-10 23:50 UTC · original

@⁠defektu this was merged into main. Forgot to close. Credited ofc

**@⁠Nmzik** on GitHub · 2026-10-10 23:50 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/1034#issuecomment-6103472285) @⁠defektu this was merged into main. Forgot to close. Credited ofc

Pull request closed

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