shader: handle address-backed indirect image descriptors #811

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

@⁠tototomate123 on GitHub · 2026-09-24 19:24 UTC · original
tototomate123:fix/hfw-image-descriptor-specialization → main · +794 −324 · 4 files · 2 commits · closed without merging

An indirect image descriptor pattern in an Horizon Forbidden West shader previously stopped shader compilation. A manual game run with this branch got past that first failure and compiled additional shaders. The run later stopped while refreshing resources for a cached shader. This PR does not fix that later failure.

The diff includes spacing, alignment, and line-wrap changes outside the new shader logic. The repositorys pre commit hook runs clang-format v22.1.3 on whole touched source files, and some existing lines on main differ from its current output.

Summary

  • Recognize image descriptors assembled from scalar address tables whose pointers come through the shader resource table
  • Materialize reachable descriptor candidates for scalar-buffer selectors and lane-selected raw buffer-record keys, preserving the runtime key mapping.
  • Cover 32 bit wrapped buffer offsets, reject formatted record loads, and reject specialization when shader writes may overlap the memory used to build the mapping
  • Add resource tracking regressions for address-backed tables, wrapped keys, formatted-load rejection, and written-buffer aliasing.

Validation

  • Linux: cmake --build _Build/linux --target resource_tracking_tests resource_materialization_tests kyty_emulator -j 4 passed.
  • Linux: ctest --test-dir _Build/linux --output-on-failure -R '^(resource_tracking|resource_materialization)$' passed (2 tests).
  • The configured clang-format pre-commit hook passed
  • Windows build and tests have not been run

AI assistance

AI assistance was used to investigate and partially implement this shader change.

**@⁠tototomate123** on GitHub · 2026-09-24 19:24 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/811) `tototomate123:fix/hfw-image-descriptor-specialization` → `main` · +794 −324 · 4 files · 2 commits · closed without merging An indirect image descriptor pattern in an Horizon Forbidden West shader previously stopped shader compilation. A manual game run with this branch got past that first failure and compiled additional shaders. The run later stopped while refreshing resources for a cached shader. This PR does not fix that later failure. The diff includes spacing, alignment, and line-wrap changes outside the new shader logic. The repositorys pre commit hook runs clang-format v22.1.3 on whole touched source files, and some existing lines on `main` differ from its current output. ### Summary - Recognize image descriptors assembled from scalar address tables whose pointers come through the shader resource table - Materialize reachable descriptor candidates for scalar-buffer selectors and lane-selected raw buffer-record keys, preserving the runtime key mapping. - Cover 32 bit wrapped buffer offsets, reject formatted record loads, and reject specialization when shader writes may overlap the memory used to build the mapping - Add resource tracking regressions for address-backed tables, wrapped keys, formatted-load rejection, and written-buffer aliasing. ### Validation - Linux: `cmake --build _Build/linux --target resource_tracking_tests resource_materialization_tests kyty_emulator -j 4` passed. - Linux: `ctest --test-dir _Build/linux --output-on-failure -R '^(resource_tracking|resource_materialization)$'` passed (2 tests). - The configured `clang-format` pre-commit hook passed - Windows build and tests have *not* been run ### AI assistance AI assistance was used to investigate and partially implement this shader change.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:33:20 +00:00
github-bot closed this pull request 2026-11-26 09:33:20 +00:00
Author
Owner

@⁠coderabbitai[bot] on GitHub · 2026-09-24 19:39 UTC · original · edited 2026-09-27 16:32 UTC

Review in Change Stack →

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

📝 Walkthrough

Walkthrough

Indirect-image tracking recognizes uniform loop-index selectors and keys read from buffer records. Materialization supports scalar material descriptors and buffer descriptors, enumerates wrapped offsets, and validates descriptor reads and protected buffers. Tests cover address-backed selectors, buffer-record keys, flattened mappings, rejected formatted loads, and buffer alias rejection.

Suggested reviewers: nmzik

Priority: ➖ Normal

Change: Feature

Merge Risk: ⚪ Minimal · up to 5a0f6

The previously identified shader-compilation stall paths are addressed. The remaining suggestion does not block merging.

Security Architecture Review

Security architecture risk: 🔵 Low · up to 5a0f6

The new descriptor path has bounds, validation, and failure checks, and no security bypass was established. Risk remains because the path reads mutable guest memory while refreshing cached shader resources, and its behavior has not been validated on Windows.

Retained concerns
No architecture-level concerns identified.

Security review details

Security Blast Radius

  • inferred — The independently controllable input is guest shader resource state. Its observed route is through guest backing-memory reads and shader specialization in the emulator graphics pipeline, not a newly added service or privilege boundary.

Trust Boundaries and Controls

  • observed — Guest-derived addresses and keys reach the guest-memory callback, but scalar reads check address arithmetic; candidate enumeration is capped; invalid descriptors and failed reads reject materialization. Protected indirect images also reject address writes or written images and check captured reads for written-buffer overlap.

Resilience and Maintainability Implications

  • inferred — The checked production caller contains failed-refresh output by stopping before permutation selection or compilation. The available code does not establish a stable memory view across the several selector and descriptor reads in a successful refresh.

Hardening Proposals

  • proposed — Confirm that the guest-memory read contract supplies a sufficiently consistent view for key enumeration and descriptor reads, or explicitly detect a changed view before reusing a cached specialization.
🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 3.39% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 59 functions across 4 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 clearly and concisely describes the main change: support for address-backed indirect image descriptors.
Description check ✅ Passed The description directly explains the shader changes, tests, validation results, and known limitations.
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.

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-09-24 19:39 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/811#issuecomment-5820943994) · edited 2026-09-27 16:32 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/811"><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 Indirect-image tracking recognizes uniform loop-index selectors and keys read from buffer records. Materialization supports scalar material descriptors and buffer descriptors, enumerates wrapped offsets, and validates descriptor reads and protected buffers. Tests cover address-backed selectors, buffer-record keys, flattened mappings, rejected formatted loads, and buffer alias rejection. **Suggested reviewers:** `nmzik` </details> <!-- walkthrough_end --> <!-- change_assessment_start --> **Priority:** ➖ Normal <!-- change_assessment_commit:"5a0f65f32698a942d25564032be33898ca7e4c85" --> **Change:** Feature <!-- change_assessment_end --> <!-- final_review_risk_start --> **Merge Risk:** _⚪ Minimal_ · up to `5a0f6` <!-- final_review_risk_coverage:{"sourceCommitId":"5a0f65f32698a942d25564032be33898ca7e4c85","coveredCommitId":"5a0f65f32698a942d25564032be33898ca7e4c85","kind":"reviewed"} --> The previously identified shader-compilation stall paths are addressed. The remaining suggestion does not block merging. <!-- final_review_risk_end --> <!-- architecture_review_start --> ### Security Architecture Review **Security architecture risk:** _🔵 Low_ · up to `5a0f6` The new descriptor path has bounds, validation, and failure checks, and no security bypass was established. Risk remains because the path reads mutable guest memory while refreshing cached shader resources, and its behavior has not been validated on Windows. **Retained concerns** No architecture-level concerns identified. <details> <summary>Security review details</summary> **Security Blast Radius** - _inferred_ — The independently controllable input is guest shader resource state. Its observed route is through guest backing-memory reads and shader specialization in the emulator graphics pipeline, not a newly added service or privilege boundary. **Trust Boundaries and Controls** - _observed_ — Guest-derived addresses and keys reach the guest-memory callback, but scalar reads check address arithmetic; candidate enumeration is capped; invalid descriptors and failed reads reject materialization. Protected indirect images also reject address writes or written images and check captured reads for written-buffer overlap. **Resilience and Maintainability Implications** - _inferred_ — The checked production caller contains failed-refresh output by stopping before permutation selection or compilation. The available code does not establish a stable memory view across the several selector and descriptor reads in a successful refresh. **Hardening Proposals** - _proposed_ — Confirm that the guest-memory read contract supplies a sufficiently consistent view for key enumeration and descriptor reads, or explicitly detect a changed view before reusing a cached specialization. </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 3.39% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 59 functions across 4 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 clearly and concisely describes the main change: support for address-backed indirect image descriptors. | | Description check | ✅ Passed | The description directly explains the shader changes, tests, validation results, and known limitations. | | 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 --> <!-- tips_start --> --- Thanks for using [CodeRabbit](https://coderabbit.ai?utm_source=oss&utm_medium=github&utm_campaign=KytyPS5/KytyPS5&utm_content=811)! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. <details> <summary>❤️ Share</summary> - [X](https://twitter.com/intent/tweet?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A&url=https%3A//coderabbit.ai) - [Mastodon](https://mastodon.social/share?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A%20https%3A%2F%2Fcoderabbit.ai) - [Reddit](https://www.reddit.com/submit?title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&text=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code.%20Check%20it%20out%3A%20https%3A//coderabbit.ai) - [LinkedIn](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fcoderabbit.ai&mini=true&title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&summary=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code) </details> <sub>Comment `@coderabbitai help` to get the list of available commands.</sub> <!-- tips_end -->
Author
Owner

@⁠coderabbitai[bot] on GitHub · 2026-09-24 19:39 UTC · original
On src/graphics/shader/recompiler/ir/passes/ResourceTracking.cpp line 448 (outdated):

@@ -373,12 +373,87 @@ class Tracker {
 			return nullptr;
 		}
 		const auto& memory = m_program.memory_info[index];
-		return memory.kind == (address ? ResourceKind::ScalarAddress : ResourceKind::ScalarBuffer) &&
+		return memory.kind ==
+		                   (address ? ResourceKind::ScalarAddress : ResourceKind::ScalarBuffer) &&
 		               memory.data_bits == 32u && memory.data_dwords == 1u
 		           ? &memory
 		           : nullptr;
 	}
 
+	Inst* UnderlyingRead(Value value) const {
+		for (uint32_t depth = 0; depth < 8u; depth++) {
+			auto* inst = value.Resolve().TryInstruction();
+			if (inst == nullptr || inst->GetOpcode() != ValueOpcode::ReadConst ||
+			    inst->NumArgs() != 2u) {
+				return inst;
+			}
+			const auto  slot     = inst->Arg(1).Resolve();
+			const auto* resource = inst->Arg(0).Resolve().TryInstruction();
+			if (resource == nullptr || resource->GetOpcode() != ValueOpcode::GetSrtResource ||
+			    !slot.IsImmediate() || slot.GetType() != Type::U32 ||
+			    slot.U32() >= m_program.srt_reads.size()) {
+				return nullptr;
+			}
+			value = m_program.srt_reads[slot.U32()].value;
+		}
+		return nullptr;
+	}
+
+	bool IsUniformLoopIndex(Value value, std::vector<const Inst*>& active, bool& saw_loop,
+	                        bool& saw_leaf) const {
+		value = value.Resolve();
+		if (value.IsImmediate()) {
+			if (value.GetType() != Type::U32) {
+				return false;
+			}
+			saw_leaf = true;
+			return true;
+		}
+		const auto* inst = value.TryInstruction();
+		if (inst == nullptr) {
+			return false;
+		}
+		if (std::ranges::find(active, inst) != active.end()) {
+			if (inst->GetOpcode() == ValueOpcode::Phi) {
+				saw_loop = true;
+				return true;
+			}
+			return false;
+		}
+		if (inst->GetOpcode() == ValueOpcode::GetUserData) {
+			if (inst->NumArgs() != 1u || inst->Arg(0).GetType() != Type::ScalarReg) {
+				return false;
+			}
+			saw_leaf = true;
+			return true;
+		}
+		const auto op          = inst->GetOpcode();
+		const bool is_loop_phi = op == ValueOpcode::Phi;
+		const bool is_scalar_op =
+		    is_loop_phi || op == ValueOpcode::IAdd32 || op == ValueOpcode::ISub32 ||
+		    op == ValueOpcode::IMul32 || op == ValueOpcode::UMin32 ||
+		    op == ValueOpcode::ShiftLeftLogical32 || op == ValueOpcode::ShiftRightLogical32 ||
+		    op == ValueOpcode::ShiftRightArithmetic32 || op == ValueOpcode::BitwiseAnd32 ||
+		    op == ValueOpcode::BitwiseOr32 || op == ValueOpcode::BitwiseXor32;
+		if (!is_scalar_op || inst->NumArgs() == 0u) {
+			return false;
+		}
+		active.push_back(inst);
+		bool valid = true;
+		for (size_t index = 0; index < inst->NumArgs(); index++) {
+			valid = IsUniformLoopIndex(inst->Arg(index), active, saw_loop, saw_leaf) && valid;
+		}
+		active.pop_back();
+		return valid;
+	}

🩺 Stability & Availability | 🟡 Minor | ⚡ Quick win

Add a depth limit to IsUniformLoopIndex, and skip operands that were already checked.

IsUniformLoopIndex visits each operand again for every path that reaches it. The active list stops endless cycles through a Phi. It does not stop repeated visits to shared operands. For a chain such as x1 = x0 + x0, x2 = x1 + x1, the number of visits doubles at each step (2^n). The function also has no depth limit, so a long scalar chain can use up the stack during resource tracking. MatchAffineOffset stops at depth 16, but this function has no such limit. MatchMaterialOffset calls this function on the fallback path for every indirect image, so one bad shader can stall or crash shader compilation.

Record operands that already passed, and add a depth limit.

♻️ Proposed fix
-	bool IsUniformLoopIndex(Value value, std::vector<const Inst*>& active, bool& saw_loop,
-	                        bool& saw_leaf) const {
+	bool IsUniformLoopIndex(Value value, std::vector<const Inst*>& active,
+	                        std::vector<const Inst*>& accepted, bool& saw_loop,
+	                        bool& saw_leaf) const {
+		if (active.size() > 32u) {
+			return false;
+		}
 		value = value.Resolve();
 ...
 		if (std::ranges::find(active, inst) != active.end()) {
 ...
 		}
+		if (std::ranges::find(accepted, inst) != accepted.end()) {
+			return true;
+		}
 ...
 		active.pop_back();
+		if (valid) {
+			accepted.push_back(inst);
+		}
 		return valid;
 	}

A skipped operand has already set saw_loop or saw_leaf in an earlier visit. For this reason, the final saw_loop && saw_leaf check does not change.

📝 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.

	bool IsUniformLoopIndex(Value value, std::vector<const Inst*>& active,
	                        std::vector<const Inst*>& accepted, bool& saw_loop,
	                        bool& saw_leaf) const {
		if (active.size() > 32u) {
			return false;
		}
		value = value.Resolve();
		if (value.IsImmediate()) {
			if (value.GetType() != Type::U32) {
				return false;
			}
			saw_leaf = true;
			return true;
		}
		const auto* inst = value.TryInstruction();
		if (inst == nullptr) {
			return false;
		}
		if (std::ranges::find(active, inst) != active.end()) {
			if (inst->GetOpcode() == ValueOpcode::Phi) {
				saw_loop = true;
				return true;
			}
			return false;
		}
		if (std::ranges::find(accepted, inst) != accepted.end()) {
			return true;
		}
		if (inst->GetOpcode() == ValueOpcode::GetUserData) {
			if (inst->NumArgs() != 1u || inst->Arg(0).GetType() != Type::ScalarReg) {
				return false;
			}
			saw_leaf = true;
			return true;
		}
		const auto op          = inst->GetOpcode();
		const bool is_loop_phi = op == ValueOpcode::Phi;
		const bool is_scalar_op =
		    is_loop_phi || op == ValueOpcode::IAdd32 || op == ValueOpcode::ISub32 ||
		    op == ValueOpcode::IMul32 || op == ValueOpcode::UMin32 ||
		    op == ValueOpcode::ShiftLeftLogical32 || op == ValueOpcode::ShiftRightLogical32 ||
		    op == ValueOpcode::ShiftRightArithmetic32 || op == ValueOpcode::BitwiseAnd32 ||
		    op == ValueOpcode::BitwiseOr32 || op == ValueOpcode::BitwiseXor32;
		if (!is_scalar_op || inst->NumArgs() == 0u) {
			return false;
		}
		active.push_back(inst);
		bool valid = true;
		for (size_t index = 0; index < inst->NumArgs(); index++) {
			valid = IsUniformLoopIndex(inst->Arg(index), active, accepted, saw_loop, saw_leaf) && valid;
		}
		active.pop_back();
		if (valid) {
			accepted.push_back(inst);
		}
		return valid;
	}
**@⁠coderabbitai[bot]** on GitHub · 2026-09-24 19:39 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/811#discussion_r4097706291) On `src/graphics/shader/recompiler/ir/passes/ResourceTracking.cpp` line 448 (outdated): ```diff @@ -373,12 +373,87 @@ class Tracker { return nullptr; } const auto& memory = m_program.memory_info[index]; - return memory.kind == (address ? ResourceKind::ScalarAddress : ResourceKind::ScalarBuffer) && + return memory.kind == + (address ? ResourceKind::ScalarAddress : ResourceKind::ScalarBuffer) && memory.data_bits == 32u && memory.data_dwords == 1u ? &memory : nullptr; } + Inst* UnderlyingRead(Value value) const { + for (uint32_t depth = 0; depth < 8u; depth++) { + auto* inst = value.Resolve().TryInstruction(); + if (inst == nullptr || inst->GetOpcode() != ValueOpcode::ReadConst || + inst->NumArgs() != 2u) { + return inst; + } + const auto slot = inst->Arg(1).Resolve(); + const auto* resource = inst->Arg(0).Resolve().TryInstruction(); + if (resource == nullptr || resource->GetOpcode() != ValueOpcode::GetSrtResource || + !slot.IsImmediate() || slot.GetType() != Type::U32 || + slot.U32() >= m_program.srt_reads.size()) { + return nullptr; + } + value = m_program.srt_reads[slot.U32()].value; + } + return nullptr; + } + + bool IsUniformLoopIndex(Value value, std::vector<const Inst*>& active, bool& saw_loop, + bool& saw_leaf) const { + value = value.Resolve(); + if (value.IsImmediate()) { + if (value.GetType() != Type::U32) { + return false; + } + saw_leaf = true; + return true; + } + const auto* inst = value.TryInstruction(); + if (inst == nullptr) { + return false; + } + if (std::ranges::find(active, inst) != active.end()) { + if (inst->GetOpcode() == ValueOpcode::Phi) { + saw_loop = true; + return true; + } + return false; + } + if (inst->GetOpcode() == ValueOpcode::GetUserData) { + if (inst->NumArgs() != 1u || inst->Arg(0).GetType() != Type::ScalarReg) { + return false; + } + saw_leaf = true; + return true; + } + const auto op = inst->GetOpcode(); + const bool is_loop_phi = op == ValueOpcode::Phi; + const bool is_scalar_op = + is_loop_phi || op == ValueOpcode::IAdd32 || op == ValueOpcode::ISub32 || + op == ValueOpcode::IMul32 || op == ValueOpcode::UMin32 || + op == ValueOpcode::ShiftLeftLogical32 || op == ValueOpcode::ShiftRightLogical32 || + op == ValueOpcode::ShiftRightArithmetic32 || op == ValueOpcode::BitwiseAnd32 || + op == ValueOpcode::BitwiseOr32 || op == ValueOpcode::BitwiseXor32; + if (!is_scalar_op || inst->NumArgs() == 0u) { + return false; + } + active.push_back(inst); + bool valid = true; + for (size_t index = 0; index < inst->NumArgs(); index++) { + valid = IsUniformLoopIndex(inst->Arg(index), active, saw_loop, saw_leaf) && valid; + } + active.pop_back(); + return valid; + } ``` _🩺 Stability & Availability_ | _🟡 Minor_ | _⚡ Quick win_ **Add a depth limit to `IsUniformLoopIndex`, and skip operands that were already checked.** `IsUniformLoopIndex` visits each operand again for every path that reaches it. The `active` list stops endless cycles through a Phi. It does not stop repeated visits to shared operands. For a chain such as `x1 = x0 + x0`, `x2 = x1 + x1`, the number of visits doubles at each step (2^n). The function also has no depth limit, so a long scalar chain can use up the stack during resource tracking. `MatchAffineOffset` stops at depth 16, but this function has no such limit. `MatchMaterialOffset` calls this function on the fallback path for every indirect image, so one bad shader can stall or crash shader compilation. Record operands that already passed, and add a depth limit. <details> <summary>♻️ Proposed fix</summary> ```diff - bool IsUniformLoopIndex(Value value, std::vector<const Inst*>& active, bool& saw_loop, - bool& saw_leaf) const { + bool IsUniformLoopIndex(Value value, std::vector<const Inst*>& active, + std::vector<const Inst*>& accepted, bool& saw_loop, + bool& saw_leaf) const { + if (active.size() > 32u) { + return false; + } value = value.Resolve(); ... if (std::ranges::find(active, inst) != active.end()) { ... } + if (std::ranges::find(accepted, inst) != accepted.end()) { + return true; + } ... active.pop_back(); + if (valid) { + accepted.push_back(inst); + } return valid; } ``` </details> A skipped operand has already set `saw_loop` or `saw_leaf` in an earlier visit. For this reason, the final `saw_loop && saw_leaf` check does not change. <!-- 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 bool IsUniformLoopIndex(Value value, std::vector<const Inst*>& active, std::vector<const Inst*>& accepted, bool& saw_loop, bool& saw_leaf) const { if (active.size() > 32u) { return false; } value = value.Resolve(); if (value.IsImmediate()) { if (value.GetType() != Type::U32) { return false; } saw_leaf = true; return true; } const auto* inst = value.TryInstruction(); if (inst == nullptr) { return false; } if (std::ranges::find(active, inst) != active.end()) { if (inst->GetOpcode() == ValueOpcode::Phi) { saw_loop = true; return true; } return false; } if (std::ranges::find(accepted, inst) != accepted.end()) { return true; } if (inst->GetOpcode() == ValueOpcode::GetUserData) { if (inst->NumArgs() != 1u || inst->Arg(0).GetType() != Type::ScalarReg) { return false; } saw_leaf = true; return true; } const auto op = inst->GetOpcode(); const bool is_loop_phi = op == ValueOpcode::Phi; const bool is_scalar_op = is_loop_phi || op == ValueOpcode::IAdd32 || op == ValueOpcode::ISub32 || op == ValueOpcode::IMul32 || op == ValueOpcode::UMin32 || op == ValueOpcode::ShiftLeftLogical32 || op == ValueOpcode::ShiftRightLogical32 || op == ValueOpcode::ShiftRightArithmetic32 || op == ValueOpcode::BitwiseAnd32 || op == ValueOpcode::BitwiseOr32 || op == ValueOpcode::BitwiseXor32; if (!is_scalar_op || inst->NumArgs() == 0u) { return false; } active.push_back(inst); bool valid = true; for (size_t index = 0; index < inst->NumArgs(); index++) { valid = IsUniformLoopIndex(inst->Arg(index), active, accepted, saw_loop, saw_leaf) && valid; } active.pop_back(); if (valid) { accepted.push_back(inst); } return valid; } ``` </details> <!-- suggestion_end --> <!-- fingerprinting:phantom:medusa:pangolin --> <!-- cr-indicator-types:potential_issue --> <!-- cr-comment:v1:5056d7c506e86534d273c9ab --> <!-- This is an auto-generated comment by CodeRabbit -->
Author
Owner

@⁠coderabbitai[bot] on GitHub · 2026-09-24 19:39 UTC · original · reviewed

Actionable comments posted: 1

🧹 Nitpick comments (1)
src/graphics/shader/recompiler/ir/passes/ResourceMaterialization.cpp (1)

305-356: 🚀 Performance & Scalability | 🔵 Trivial | ⚡ Quick win

Extract the shared enumeration and batch complete dwords only.

The two branches use identical enumeration logic. Only the stride source differs.

When step <= 4 and the probe count passes the existing limit, aligned probes cover the same complete dwords as one read from offset zero, including nonzero residues. The initial zero key preserves partial and out-of-bounds results.

Use only complete dwords for the batched read. The proposed ceiling calculation can request padding beyond the material range and fail near AddressMask, while individual probes would return zero. In capture mode, one contiguous complete-dword range also preserves WrittenBuffersDisjoint overlap checks while reducing callbacks and captured entries.

♻️ Corrected batch length
-		std::vector<uint32_t> words(static_cast<size_t>(
-		    (std::min<uint64_t>(size, UINT32_MAX) + 3u) / 4u));
+		const auto full_dword_count = std::min<uint64_t>(size, UINT32_MAX) / 4u;
+		std::vector<uint32_t> words(static_cast<size_t>(full_dword_count));

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository: KytyPS5/KytyPS5/.coderabbit.yaml

Review profile: CHILL

Plan: Advanced

Run ID: f26b3803-a3db-4a57-bb28-51dcb788f869

📥 Commits

Reviewing files that changed from the base of the PR and between 83628a436e and 50698e2e808230feeb76c3477ee532b1f1442df5.

📒 Files selected for processing (4)
  • src/graphics/shader/recompiler/ir/ShaderIR.h
  • src/graphics/shader/recompiler/ir/passes/ResourceMaterialization.cpp
  • src/graphics/shader/recompiler/ir/passes/ResourceTracking.cpp
  • tests/ResourceTrackingTests.cpp

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

**@⁠coderabbitai[bot]** on GitHub · 2026-09-24 19:39 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/811#pullrequestreview-5309294872) · **reviewed** **Actionable comments posted: 1** <details> <summary>🧹 Nitpick comments (1)</summary><blockquote> <details> <summary>src/graphics/shader/recompiler/ir/passes/ResourceMaterialization.cpp (1)</summary><blockquote> `305-356`: _🚀 Performance & Scalability_ | _🔵 Trivial_ | _⚡ Quick win_ **Extract the shared enumeration and batch complete dwords only.** The two branches use identical enumeration logic. Only the stride source differs. When `step <= 4` and the probe count passes the existing limit, aligned probes cover the same complete dwords as one read from offset zero, including nonzero residues. The initial zero key preserves partial and out-of-bounds results. Use only complete dwords for the batched read. The proposed ceiling calculation can request padding beyond the material range and fail near `AddressMask`, while individual probes would return zero. In capture mode, one contiguous complete-dword range also preserves `WrittenBuffersDisjoint` overlap checks while reducing callbacks and captured entries. <details> <summary>♻️ Corrected batch length</summary> ```diff - std::vector<uint32_t> words(static_cast<size_t>( - (std::min<uint64_t>(size, UINT32_MAX) + 3u) / 4u)); + const auto full_dword_count = std::min<uint64_t>(size, UINT32_MAX) / 4u; + std::vector<uint32_t> words(static_cast<size_t>(full_dword_count)); ``` </details> <!-- cr-comment:v1:68d0bebbe565181cff090ba8 --> </blockquote></details> </blockquote></details> --- <details> <summary>ℹ️ Review info</summary> <details> <summary>⚙️ Run configuration</summary> **Configuration used**: Repository: KytyPS5/KytyPS5/.coderabbit.yaml **Review profile**: CHILL **Plan**: Advanced **Run ID**: `f26b3803-a3db-4a57-bb28-51dcb788f869` </details> <details> <summary>📥 Commits</summary> Reviewing files that changed from the base of the PR and between 83628a436e58a52814a5322dd5ba91d4d86479d2 and 50698e2e808230feeb76c3477ee532b1f1442df5. </details> <details> <summary>📒 Files selected for processing (4)</summary> * `src/graphics/shader/recompiler/ir/ShaderIR.h` * `src/graphics/shader/recompiler/ir/passes/ResourceMaterialization.cpp` * `src/graphics/shader/recompiler/ir/passes/ResourceTracking.cpp` * `tests/ResourceTrackingTests.cpp` </details> **Included review availability:** Your plan provides up to 10 included reviews per hour; 9 remain after this review. </details> <!-- This is an auto-generated comment by CodeRabbit for review status -->
Author
Owner

@⁠tototomate123 on GitHub · 2026-09-24 20:32 UTC · original · edited 2026-09-24 20:36 UTC

The Linux build completed successfully, but CI failed during virtual_memory_allocation: SmallFiberStacksAndMigration reported a write outside its supplied stack. This PR changes shader resource tracking and tests, not the fiber code.

Recent runs on main also fail virtual_memory_allocation in SmallFiberStacksAndMigration with the same stack error.

The fiber failure was reproduced with Ubuntu 24.04 and Clang 18 locally, and i added a focused fix on the separate fix/linux-small-fiber-stack branch. I'd appreciate review of the shader change while the fiber failure is handled separately.

**@⁠tototomate123** on GitHub · 2026-09-24 20:32 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/811#issuecomment-5821780898) · edited 2026-09-24 20:36 UTC The Linux build completed successfully, but CI failed during `virtual_memory_allocation`: SmallFiberStacksAndMigration reported a write outside its supplied stack. This PR changes shader resource tracking and tests, not the fiber code. Recent runs on main also fail `virtual_memory_allocation` in SmallFiberStacksAndMigration with the same stack error. The fiber failure was reproduced with Ubuntu 24.04 and Clang 18 locally, and i added a focused fix on the separate [fix/linux-small-fiber-stack branch](https://github.com/tototomate123/KytyPS5/tree/fix/linux-small-fiber-stack). I'd appreciate review of the shader change while the fiber failure is handled separately.
Author
Owner

@⁠coderabbitai[bot] on GitHub · 2026-09-24 20:37 UTC · original
On src/graphics/shader/recompiler/ir/passes/ResourceTracking.cpp line 453 (outdated):

@@ -373,12 +373,100 @@ class Tracker {
 			return nullptr;
 		}
 		const auto& memory = m_program.memory_info[index];
-		return memory.kind == (address ? ResourceKind::ScalarAddress : ResourceKind::ScalarBuffer) &&
+		return memory.kind ==
+		                   (address ? ResourceKind::ScalarAddress : ResourceKind::ScalarBuffer) &&
 		               memory.data_bits == 32u && memory.data_dwords == 1u
 		           ? &memory
 		           : nullptr;
 	}
 
+	Inst* UnderlyingRead(Value value) const {
+		for (uint32_t depth = 0; depth < 8u; depth++) {
+			auto* inst = value.Resolve().TryInstruction();
+			if (inst == nullptr || inst->GetOpcode() != ValueOpcode::ReadConst ||
+			    inst->NumArgs() != 2u) {
+				return inst;
+			}
+			const auto  slot     = inst->Arg(1).Resolve();
+			const auto* resource = inst->Arg(0).Resolve().TryInstruction();
+			if (resource == nullptr || resource->GetOpcode() != ValueOpcode::GetSrtResource ||
+			    !slot.IsImmediate() || slot.GetType() != Type::U32 ||
+			    slot.U32() >= m_program.srt_reads.size()) {
+				return nullptr;
+			}
+			value = m_program.srt_reads[slot.U32()].value;
+		}
+		return nullptr;
+	}
+
+	bool IsUniformLoopIndex(Value value, std::vector<const Inst*>& active,
+	                        std::vector<const Inst*>& accepted, bool& saw_loop,
+	                        bool& saw_leaf) const {
+		if (active.size() > 32u) {
+			return false;
+		}
+		value = value.Resolve();
+		if (value.IsImmediate()) {
+			if (value.GetType() != Type::U32) {
+				return false;
+			}
+			saw_leaf = true;
+			return true;
+		}
+		const auto* inst = value.TryInstruction();
+		if (inst == nullptr) {
+			return false;
+		}
+		if (std::ranges::find(active, inst) != active.end()) {
+			if (inst->GetOpcode() == ValueOpcode::Phi) {
+				saw_loop = true;
+				return true;
+			}
+			return false;
+		}
+		if (std::ranges::find(accepted, inst) != accepted.end()) {
+			return true;
+		}
+		if (inst->GetOpcode() == ValueOpcode::GetUserData) {
+			if (inst->NumArgs() != 1u || inst->Arg(0).GetType() != Type::ScalarReg) {
+				return false;
+			}
+			saw_leaf = true;
+			return true;
+		}
+		const auto op          = inst->GetOpcode();
+		const bool is_loop_phi = op == ValueOpcode::Phi;
+		const bool is_scalar_op =
+		    is_loop_phi || op == ValueOpcode::IAdd32 || op == ValueOpcode::ISub32 ||
+		    op == ValueOpcode::IMul32 || op == ValueOpcode::UMin32 ||
+		    op == ValueOpcode::ShiftLeftLogical32 || op == ValueOpcode::ShiftRightLogical32 ||
+		    op == ValueOpcode::ShiftRightArithmetic32 || op == ValueOpcode::BitwiseAnd32 ||
+		    op == ValueOpcode::BitwiseOr32 || op == ValueOpcode::BitwiseXor32;
+		if (!is_scalar_op || inst->NumArgs() == 0u) {
+			return false;
+		}
+		active.push_back(inst);
+		bool valid = true;
+		for (size_t index = 0; index < inst->NumArgs(); index++) {
+			valid =
+			    IsUniformLoopIndex(inst->Arg(index), active, accepted, saw_loop, saw_leaf) && valid;
+		}

🩺 Stability & Availability | 🟠 Major | ⚡ Quick win

Stop checking operands after the first failure in IsUniformLoopIndex.

The earlier fix added accepted, so operands that pass are checked only once. Operands that fail are still checked again on every path that reaches them.

Line 452 writes the check as IsUniformLoopIndex(...) && valid. Because the call comes first, it always runs, even after valid is already false. The function also never records instructions that failed.

Example: take a chain like x1 = x0 + x0, x2 = x1 + x1, where x0 fails the check (for example, a ReadFirstLane operand or an unsupported opcode). Each level visits both operands, so the number of visits doubles per level. The active.size() > 32u limit allows about 2^33 visits.

MatchMaterialOffset calls this function on the fallback path for every indirect image selector that is not a direct ReadFirstLane. One such shader can therefore stall shader compilation.

Return as soon as one operand fails. saw_loop and saw_leaf only matter when the whole check returns true, so stopping early does not change any accepted result.

🐛 Proposed fix
 		active.push_back(inst);
-		bool valid = true;
 		for (size_t index = 0; index < inst->NumArgs(); index++) {
-			valid =
-			    IsUniformLoopIndex(inst->Arg(index), active, accepted, saw_loop, saw_leaf) && valid;
+			if (!IsUniformLoopIndex(inst->Arg(index), active, accepted, saw_loop, saw_leaf)) {
+				active.pop_back();
+				return false;
+			}
 		}
 		active.pop_back();
-		if (valid) {
-			accepted.push_back(inst);
-		}
-		return valid;
+		accepted.push_back(inst);
+		return true;
**@⁠coderabbitai[bot]** on GitHub · 2026-09-24 20:37 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/811#discussion_r4098230714) On `src/graphics/shader/recompiler/ir/passes/ResourceTracking.cpp` line 453 (outdated): ```diff @@ -373,12 +373,100 @@ class Tracker { return nullptr; } const auto& memory = m_program.memory_info[index]; - return memory.kind == (address ? ResourceKind::ScalarAddress : ResourceKind::ScalarBuffer) && + return memory.kind == + (address ? ResourceKind::ScalarAddress : ResourceKind::ScalarBuffer) && memory.data_bits == 32u && memory.data_dwords == 1u ? &memory : nullptr; } + Inst* UnderlyingRead(Value value) const { + for (uint32_t depth = 0; depth < 8u; depth++) { + auto* inst = value.Resolve().TryInstruction(); + if (inst == nullptr || inst->GetOpcode() != ValueOpcode::ReadConst || + inst->NumArgs() != 2u) { + return inst; + } + const auto slot = inst->Arg(1).Resolve(); + const auto* resource = inst->Arg(0).Resolve().TryInstruction(); + if (resource == nullptr || resource->GetOpcode() != ValueOpcode::GetSrtResource || + !slot.IsImmediate() || slot.GetType() != Type::U32 || + slot.U32() >= m_program.srt_reads.size()) { + return nullptr; + } + value = m_program.srt_reads[slot.U32()].value; + } + return nullptr; + } + + bool IsUniformLoopIndex(Value value, std::vector<const Inst*>& active, + std::vector<const Inst*>& accepted, bool& saw_loop, + bool& saw_leaf) const { + if (active.size() > 32u) { + return false; + } + value = value.Resolve(); + if (value.IsImmediate()) { + if (value.GetType() != Type::U32) { + return false; + } + saw_leaf = true; + return true; + } + const auto* inst = value.TryInstruction(); + if (inst == nullptr) { + return false; + } + if (std::ranges::find(active, inst) != active.end()) { + if (inst->GetOpcode() == ValueOpcode::Phi) { + saw_loop = true; + return true; + } + return false; + } + if (std::ranges::find(accepted, inst) != accepted.end()) { + return true; + } + if (inst->GetOpcode() == ValueOpcode::GetUserData) { + if (inst->NumArgs() != 1u || inst->Arg(0).GetType() != Type::ScalarReg) { + return false; + } + saw_leaf = true; + return true; + } + const auto op = inst->GetOpcode(); + const bool is_loop_phi = op == ValueOpcode::Phi; + const bool is_scalar_op = + is_loop_phi || op == ValueOpcode::IAdd32 || op == ValueOpcode::ISub32 || + op == ValueOpcode::IMul32 || op == ValueOpcode::UMin32 || + op == ValueOpcode::ShiftLeftLogical32 || op == ValueOpcode::ShiftRightLogical32 || + op == ValueOpcode::ShiftRightArithmetic32 || op == ValueOpcode::BitwiseAnd32 || + op == ValueOpcode::BitwiseOr32 || op == ValueOpcode::BitwiseXor32; + if (!is_scalar_op || inst->NumArgs() == 0u) { + return false; + } + active.push_back(inst); + bool valid = true; + for (size_t index = 0; index < inst->NumArgs(); index++) { + valid = + IsUniformLoopIndex(inst->Arg(index), active, accepted, saw_loop, saw_leaf) && valid; + } ``` _🩺 Stability & Availability_ | _🟠 Major_ | _⚡ Quick win_ **Stop checking operands after the first failure in `IsUniformLoopIndex`.** The earlier fix added `accepted`, so operands that pass are checked only once. Operands that fail are still checked again on every path that reaches them. Line 452 writes the check as `IsUniformLoopIndex(...) && valid`. Because the call comes first, it always runs, even after `valid` is already false. The function also never records instructions that failed. Example: take a chain like `x1 = x0 + x0`, `x2 = x1 + x1`, where `x0` fails the check (for example, a `ReadFirstLane` operand or an unsupported opcode). Each level visits both operands, so the number of visits doubles per level. The `active.size() > 32u` limit allows about 2^33 visits. `MatchMaterialOffset` calls this function on the fallback path for every indirect image selector that is not a direct `ReadFirstLane`. One such shader can therefore stall shader compilation. Return as soon as one operand fails. `saw_loop` and `saw_leaf` only matter when the whole check returns true, so stopping early does not change any accepted result. <details> <summary>🐛 Proposed fix</summary> ```diff active.push_back(inst); - bool valid = true; for (size_t index = 0; index < inst->NumArgs(); index++) { - valid = - IsUniformLoopIndex(inst->Arg(index), active, accepted, saw_loop, saw_leaf) && valid; + if (!IsUniformLoopIndex(inst->Arg(index), active, accepted, saw_loop, saw_leaf)) { + active.pop_back(); + return false; + } } active.pop_back(); - if (valid) { - accepted.push_back(inst); - } - return valid; + accepted.push_back(inst); + return true; ``` </details> <!-- fingerprinting:phantom:medusa:pangolin --> <!-- cr-indicator-types:potential_issue --> <!-- cr-comment:v1:66493ee51a8628a87f540230 --> <!-- This is an auto-generated comment by CodeRabbit -->
Author
Owner

@⁠coderabbitai[bot] on GitHub · 2026-09-24 20:37 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: f6877721-f075-4bd3-ad31-b3e4c2b8a932

📥 Commits

Reviewing files that changed from the base of the PR and between 50698e2e808230feeb76c3477ee532b1f1442df5 and 9a88cec8b6d819c2b72a14758317b7ff56e86528.

📒 Files selected for processing (2)
  • src/graphics/shader/recompiler/ir/passes/ResourceTracking.cpp
  • tests/ResourceTrackingTests.cpp

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

**@⁠coderabbitai[bot]** on GitHub · 2026-09-24 20:37 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/811#pullrequestreview-5309937369) · **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**: `f6877721-f075-4bd3-ad31-b3e4c2b8a932` </details> <details> <summary>📥 Commits</summary> Reviewing files that changed from the base of the PR and between 50698e2e808230feeb76c3477ee532b1f1442df5 and 9a88cec8b6d819c2b72a14758317b7ff56e86528. </details> <details> <summary>📒 Files selected for processing (2)</summary> * `src/graphics/shader/recompiler/ir/passes/ResourceTracking.cpp` * `tests/ResourceTrackingTests.cpp` </details> **Included review availability:** Your plan provides up to 10 included reviews per hour; 9 remain after this review. </details> <!-- This is an auto-generated comment by CodeRabbit for review status -->
Author
Owner

@⁠coderabbitai[bot] on GitHub · 2026-09-27 16:29 UTC · original · reviewed

🧹 Nitpick comments (1)
src/graphics/shader/recompiler/ir/passes/ResourceMaterialization.cpp (1)

306-357: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low value

Merge the two wrapped-offset enumeration branches into one.

This is an optional refactor. Both branches compute the same wrapped offsets, apply the same probe limit, read and deduplicate keys, and differ only in their stride source and record_key validation. A future change to the shared enumeration rules could otherwise update one branch and miss the other.

Choose the stride in the branch-specific code, keep the record_key checks there, and use one shared enumeration block.


ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository: KytyPS5/KytyPS5/.coderabbit.yaml

Review profile: CHILL

Plan: Advanced

Run ID: 8d5b6bdd-4871-429c-a295-2f26f74166d9

📥 Commits

Reviewing files that changed from the base of the PR and between 2135a90bdb and 5a0f65f326.

📒 Files selected for processing (2)
  • src/graphics/shader/recompiler/ir/passes/ResourceMaterialization.cpp
  • src/graphics/shader/recompiler/ir/passes/ResourceTracking.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-09-27 16:29 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/811#pullrequestreview-5331154223) · **reviewed** <details> <summary>🧹 Nitpick comments (1)</summary><blockquote> <details> <summary>src/graphics/shader/recompiler/ir/passes/ResourceMaterialization.cpp (1)</summary><blockquote> `306-357`: _📐 Maintainability & Code Quality_ | _🔵 Trivial_ | _💤 Low value_ **Merge the two wrapped-offset enumeration branches into one.** This is an optional refactor. Both branches compute the same wrapped offsets, apply the same probe limit, read and deduplicate keys, and differ only in their stride source and `record_key` validation. A future change to the shared enumeration rules could otherwise update one branch and miss the other. Choose the stride in the branch-specific code, keep the `record_key` checks there, and use one shared enumeration block. <!-- cr-comment:v1:e63eda129aafdfc563eb2e1e --> </blockquote></details> </blockquote></details> --- <details> <summary>ℹ️ Review info</summary> <details> <summary>⚙️ Run configuration</summary> **Configuration used**: Repository: KytyPS5/KytyPS5/.coderabbit.yaml **Review profile**: CHILL **Plan**: Advanced **Run ID**: `8d5b6bdd-4871-429c-a295-2f26f74166d9` </details> <details> <summary>📥 Commits</summary> Reviewing files that changed from the base of the PR and between 2135a90bdb1a2563f54c778f83ade6eecc4ae00a and 5a0f65f32698a942d25564032be33898ca7e4c85. </details> <details> <summary>📒 Files selected for processing (2)</summary> * `src/graphics/shader/recompiler/ir/passes/ResourceMaterialization.cpp` * `src/graphics/shader/recompiler/ir/passes/ResourceTracking.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 -->

Pull request closed

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