graphics: make CP copies and fills reach every image they overlap #2225

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

@⁠Nawid3333 on GitHub · 2026-11-12 01:28 UTC · original
Nawid3333:fix/partial-cp-copy-into-gpu-image-r3 → main · +182 −2 · 5 files · 2 commits · closed without merging

Cause

BufferCache::CopyBuffer and BufferCache::FillBuffer have CPU paths and a GPU path. The CPU paths — a std::memcpy copy and a guest-memory fill — run while the involved ranges are not GPU-modified in the buffer tracker, and a copy whose source backs an image also stays off them (bufferCache.cpp:592-597 at bc934ef03). Otherwise the transfer runs on the GPU scheduler, and both GPU branches invalidate the destination first with TextureCache::InvalidateMemoryFromGPU (bufferCache.cpp:568, 600-602).

InvalidateMemoryFromGPU walks the images over the range but skips every image whose base address is not exactly the destination address (textureCache.cpp:1862-1871). A copy or fill that starts inside a GPU-written image therefore invalidates nothing: the image stays GpuModified and not BufferModified, RefreshImage uploads nothing (textureCache.cpp:1145-1167), and later samples keep the old texels. The written words never reach the image.

Whole-level, single-layer copies are intercepted earlier by TextureCache::CopyToImage (bufferCache.cpp:586-591), but that path rejects partial ranges and every linear image (!info.IsTiled()) (textureCache.cpp:1873-1915), so a partial copy into a linear image falls through to the branches above. A rejected copy may then take the memcpy branch, and there the copy itself survives: the memcpy write-faults on the tracked image pages, RenderContext::HandleFault routes to TextureCache::InvalidateMemory, which marks the image CpuDirty and untracks it, so SafeToDownload() is false (image.h:111-113) and the next RefreshImage re-uploads the guest bytes (renderContext.cpp:57-71, textureCache.cpp:1942-1954). The loss is specific to the GPU branch: when the source or the destination is GPU-modified in the buffer tracker (or the source is a GPU image), CopyBuffer takes the GPU path and InvalidateMemoryFromGPU skips the image that starts before the destination. FillBuffer's GPU branch has the same hole.

Side finding, not touched here: on the memcpy branch the copy survives, but the image's other GPU texels are lost when it is re-uploaded from stale guest memory (MarkCpuDirty without a prior readback), and CPU stores into a partly untracked image have the same effect (UntrackImageHead/Tail leave a page unprotected while the image stays GpuModified). Upstream treats that as deliberate; 7816ac790's test asserts "copies the image cannot take".

Change

CopyBuffer's and FillBuffer's GPU branches call the new TextureCache::PrepareBufferWrite(address, size) instead of InvalidateMemoryFromGPU (bufferCache.cpp:568, 601 at 665b874f9). PrepareBufferWrite (textureCache.cpp:1873-1891) walks every image the destination overlaps, under the texture-cache lock like InvalidateMemoryFromGPU. An image the write covers whole — the destination starts at or before its base and its end is at or before the write's end — is cleared GpuModified and marked BufferModified, so it re-uploads from the buffer cache at its next use. A readable GPU-written image the write covers only in part first publishes its contents into the buffer cache with BcAlias::Publish (textureCache.cpp:695-706: ObtainBuffer over the image marked written, then DownloadImage), so its other texels survive; when the publish is not possible, the plain invalidation remains. Images that cannot be read back (stencil associations, MSAA, compressed video-out) keep the old base-address rule.

The storage buffer path is unchanged: NativeStorageBuffer still invalidates for written resources (descriptors.cpp:136), where the invalidated range is the descriptor's range, not the bytes the shader writes.

Related work: gh search of PRs/issues for "CP copy image", "partial copy", "CopyToImage", "DMA image" finds no hits; items near these symbols are #2102 (memmove for overlapping DMA copies; touches CopyBuffer, different bug), #2067 (opt-in partial refresh for storage-buffer writes at an image's base), #2012, #1781, #931 (closed) and #937 (narrows the storage-buffer invalidation range). #2063 changes the CPU branches of the same two functions (it invalidates the whole range before a CPU fill or copy instead of taking one write fault per page); this change touches only their GPU branches. PR #1518 (FxDrops, draft) "preserve GPU contents across image aliases and buffer transfers" is prior work this builds on: it removes the base-address rule from InvalidateMemoryFromGPU and adds a PrepareBufferWrite / PublishImageToBuffer pair before partial Fill/Copy — the same root, reached with a much larger series on an older base, and it conflicts with this change. Its head passes this test on its own base (experiments/2026-11-10-partial-cp-copy/pr1518-check.md).

Tests

shader_recompiler_compute_tests adds VulkanHarness::CheckPartialCopyIntoGpuImage (selector --partial-cp-copy-only, ctest graphics_partial_cp_copy). It maps a 64 KiB direct allocation, fills the guest memory of three 64x64 R32Uint linear images in it with 0x5e5e5e5e, and GPU-clears two of them to 0x600d600d and marks them GPU-written. It then runs a copy and a fill into the middle of a GPU-written image: a CopyBuffer of rows 16-19 of the first image from a source buffer it obtained as written (source words start at 0x10000000), and, after first marking a range of the second image GPU-modified in the buffer tracker (ObtainBuffer written), a FillBuffer of rows 16-19 with 0xf111f111. The third image is sampled once (uploaded from guest memory, never GPU-written) and then gets the same CopyBuffer of rows 16-19 from the GPU-modified source.

It asserts its preconditions first: the images are GPU-written, based exactly at their addresses and linear (so CopyToImage rejects them), the copy source is GPU-modified while the copy's destination range is not and the fill range is GPU-owned (both take the GPU path), and after each call the guest bytes at the destination are unchanged (the copy or fill did not run on the CPU). It then samples each image through FindTexture (a sampling acquisition) and reads its texels: rows 16-19 must hold the written words, and every other texel 0x600d600d in the GPU-written images and 0x5e5e5e5e in the clean one.

Main (bc934ef03) with the test fails, with every precondition passing (keep-going run, exit 3, these three failures only):

PartialCopyIntoGpuImage failed at copy into the middle of a GPU-written image: texel word 1024 holds 0x600d600d, expected 0x10000000
PartialCopyIntoGpuImage failed at fill into the middle of a GPU-written image: texel word 1024 holds 0x600d600d, expected 0xf111f111
PartialCopyIntoGpuImage failed at copy into the middle of a clean image: texel word 1024 holds 0x5e5e5e5e, expected 0x10000000

With the change it passes: partial-cp-copy exit=0 | [gpu] PartialCopyIntoGpuImage ok, no "failed at" remains.

This was run on an AMD RX 9070 XT with the lab overlays that GPU needs (p2038-pin, feedback-optional, skip-bug13, d24->d32s8, keep-going). In the full suite (keep-going) main with the test has 25 failed checks: the three above and 22 pre-existing lab failures (RenderExecutorStencilBindingDiscovery x4, DepthAttachmentFeedback x3, ...). With the change it has those 22, with identical "failed at" lines including messages, and nothing else. clang-format-diff on the src diff produces no output.

Fork CI on this head (run 43131147589) passed on Windows, Linux and macOS.

Costs

One whole-image transfer per partial write into a GPU-written image, once per GPU-write epoch (after the first publish the image is BufferModified, so further writes into it do not re-publish), plus one re-upload at the image's next use; before the change the same writes produced stale texels. Copies and fills that cover a readable non-base image whole now invalidate it — correct, its memory changed — which costs extra uploads for images that previously kept their GPU contents. The publish runs under the texture-cache lock, as it already does in ResolveOverlap; ObtainBuffer(written) does not re-enter the texture cache (only the !is_written texel path does). No game evidence; proven by the test only.

In a game

No game is known to show this yet.

Written with Claude Code (AI): a GLM review of 7816ac790 pointed at this path and Codex costed the publish; Claude Code wrote the test and the change and ran them.

**@⁠Nawid3333** on GitHub · 2026-11-12 01:28 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/2225) `Nawid3333:fix/partial-cp-copy-into-gpu-image-r3` → `main` · +182 −2 · 5 files · 2 commits · closed without merging ## Cause `BufferCache::CopyBuffer` and `BufferCache::FillBuffer` have CPU paths and a GPU path. The CPU paths — a `std::memcpy` copy and a guest-memory fill — run while the involved ranges are not GPU-modified in the buffer tracker, and a copy whose source backs an image also stays off them (bufferCache.cpp:592-597 at bc934ef03). Otherwise the transfer runs on the GPU scheduler, and both GPU branches invalidate the destination first with `TextureCache::InvalidateMemoryFromGPU` (bufferCache.cpp:568, 600-602). `InvalidateMemoryFromGPU` walks the images over the range but skips every image whose base address is not exactly the destination address (textureCache.cpp:1862-1871). A copy or fill that starts inside a GPU-written image therefore invalidates nothing: the image stays GpuModified and not BufferModified, `RefreshImage` uploads nothing (textureCache.cpp:1145-1167), and later samples keep the old texels. The written words never reach the image. Whole-level, single-layer copies are intercepted earlier by `TextureCache::CopyToImage` (bufferCache.cpp:586-591), but that path rejects partial ranges and every linear image (`!info.IsTiled()`) (textureCache.cpp:1873-1915), so a partial copy into a linear image falls through to the branches above. A rejected copy may then take the memcpy branch, and there the copy itself survives: the memcpy write-faults on the tracked image pages, `RenderContext::HandleFault` routes to `TextureCache::InvalidateMemory`, which marks the image CpuDirty and untracks it, so `SafeToDownload()` is false (image.h:111-113) and the next `RefreshImage` re-uploads the guest bytes (renderContext.cpp:57-71, textureCache.cpp:1942-1954). The loss is specific to the GPU branch: when the source or the destination is GPU-modified in the buffer tracker (or the source is a GPU image), CopyBuffer takes the GPU path and `InvalidateMemoryFromGPU` skips the image that starts before the destination. `FillBuffer`'s GPU branch has the same hole. Side finding, not touched here: on the memcpy branch the copy survives, but the image's other GPU texels are lost when it is re-uploaded from stale guest memory (MarkCpuDirty without a prior readback), and CPU stores into a partly untracked image have the same effect (UntrackImageHead/Tail leave a page unprotected while the image stays GpuModified). Upstream treats that as deliberate; 7816ac790's test asserts "copies the image cannot take". ## Change `CopyBuffer`'s and `FillBuffer`'s GPU branches call the new `TextureCache::PrepareBufferWrite(address, size)` instead of `InvalidateMemoryFromGPU` (bufferCache.cpp:568, 601 at 665b874f9). `PrepareBufferWrite` (textureCache.cpp:1873-1891) walks every image the destination overlaps, under the texture-cache lock like `InvalidateMemoryFromGPU`. An image the write covers whole — the destination starts at or before its base and its end is at or before the write's end — is cleared GpuModified and marked BufferModified, so it re-uploads from the buffer cache at its next use. A readable GPU-written image the write covers only in part first publishes its contents into the buffer cache with `BcAlias::Publish` (textureCache.cpp:695-706: `ObtainBuffer` over the image marked written, then `DownloadImage`), so its other texels survive; when the publish is not possible, the plain invalidation remains. Images that cannot be read back (stencil associations, MSAA, compressed video-out) keep the old base-address rule. The storage buffer path is unchanged: `NativeStorageBuffer` still invalidates for written resources (descriptors.cpp:136), where the invalidated range is the descriptor's range, not the bytes the shader writes. Related work: gh search of PRs/issues for "CP copy image", "partial copy", "CopyToImage", "DMA image" finds no hits; items near these symbols are #2102 (memmove for overlapping DMA copies; touches CopyBuffer, different bug), #2067 (opt-in partial refresh for storage-buffer writes at an image's base), #2012, #1781, #931 (closed) and #937 (narrows the storage-buffer invalidation range). #2063 changes the CPU branches of the same two functions (it invalidates the whole range before a CPU fill or copy instead of taking one write fault per page); this change touches only their GPU branches. PR #1518 (FxDrops, draft) "preserve GPU contents across image aliases and buffer transfers" is prior work this builds on: it removes the base-address rule from `InvalidateMemoryFromGPU` and adds a PrepareBufferWrite / PublishImageToBuffer pair before partial Fill/Copy — the same root, reached with a much larger series on an older base, and it conflicts with this change. Its head passes this test on its own base (experiments/2026-11-10-partial-cp-copy/pr1518-check.md). ## Tests `shader_recompiler_compute_tests` adds `VulkanHarness::CheckPartialCopyIntoGpuImage` (selector `--partial-cp-copy-only`, ctest `graphics_partial_cp_copy`). It maps a 64 KiB direct allocation, fills the guest memory of three 64x64 R32Uint linear images in it with 0x5e5e5e5e, and GPU-clears two of them to 0x600d600d and marks them GPU-written. It then runs a copy and a fill into the middle of a GPU-written image: a `CopyBuffer` of rows 16-19 of the first image from a source buffer it obtained as written (source words start at 0x10000000), and, after first marking a range of the second image GPU-modified in the buffer tracker (`ObtainBuffer` written), a `FillBuffer` of rows 16-19 with 0xf111f111. The third image is sampled once (uploaded from guest memory, never GPU-written) and then gets the same `CopyBuffer` of rows 16-19 from the GPU-modified source. It asserts its preconditions first: the images are GPU-written, based exactly at their addresses and linear (so `CopyToImage` rejects them), the copy source is GPU-modified while the copy's destination range is not and the fill range is GPU-owned (both take the GPU path), and after each call the guest bytes at the destination are unchanged (the copy or fill did not run on the CPU). It then samples each image through `FindTexture` (a sampling acquisition) and reads its texels: rows 16-19 must hold the written words, and every other texel 0x600d600d in the GPU-written images and 0x5e5e5e5e in the clean one. Main (bc934ef03) with the test fails, with every precondition passing (keep-going run, exit 3, these three failures only): ``` PartialCopyIntoGpuImage failed at copy into the middle of a GPU-written image: texel word 1024 holds 0x600d600d, expected 0x10000000 PartialCopyIntoGpuImage failed at fill into the middle of a GPU-written image: texel word 1024 holds 0x600d600d, expected 0xf111f111 PartialCopyIntoGpuImage failed at copy into the middle of a clean image: texel word 1024 holds 0x5e5e5e5e, expected 0x10000000 ``` With the change it passes: `partial-cp-copy exit=0 | [gpu] PartialCopyIntoGpuImage ok`, no "failed at" remains. This was run on an AMD RX 9070 XT with the lab overlays that GPU needs (`p2038-pin`, `feedback-optional`, `skip-bug13`, `d24->d32s8`, keep-going). In the full suite (keep-going) main with the test has 25 failed checks: the three above and 22 pre-existing lab failures (RenderExecutorStencilBindingDiscovery x4, DepthAttachmentFeedback x3, ...). With the change it has those 22, with identical "failed at" lines including messages, and nothing else. clang-format-diff on the src diff produces no output. Fork CI on this head ([run 43131147589](https://github.com/Nawid3333/KytyPS5/actions/runs/43131147589)) passed on Windows, Linux and macOS. ## Costs One whole-image transfer per partial write into a GPU-written image, once per GPU-write epoch (after the first publish the image is BufferModified, so further writes into it do not re-publish), plus one re-upload at the image's next use; before the change the same writes produced stale texels. Copies and fills that cover a readable non-base image whole now invalidate it — correct, its memory changed — which costs extra uploads for images that previously kept their GPU contents. The publish runs under the texture-cache lock, as it already does in `ResolveOverlap`; `ObtainBuffer(written)` does not re-enter the texture cache (only the `!is_written` texel path does). No game evidence; proven by the test only. ## In a game No game is known to show this yet. Written with Claude Code (AI): a GLM review of 7816ac790 pointed at this path and Codex costed the publish; Claude Code wrote the test and the change and ran them.
A copy or fill on the GPU path whose destination starts inside a
linear image must reach the image: a later sample sees the written
words. In a GPU-written image every other texel keeps the GPU
contents; in a clean image they keep the guest bytes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
A CP DMA copy or fill on the GPU path invalidated only an image based
at the destination address. A copy into the middle of an image left
the image's texels untouched, so later samples read the old contents.

Before the buffer write, every image the destination overlaps re-uploads
from the buffer cache. A GPU-written image the write covers only in
part first publishes its contents into the buffer, so its other texels
survive. Images that cannot be read back keep the base-address rule.

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

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

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

Buffer writes now prepare overlapping texture-cache images before writing. The preparation method handles readable images with partial coverage and updates image ownership state for other selected images. Compute tests check partial copies and fills into GPU images, including cached texel values and guest backing memory. The tests run in the normal Vulkan sequence and through a dedicated CTest entry.

Suggested reviewers: nmzik, thecruz, mrbigbritches

Change: Bug fix

Merge Risk: Minimal · up to 665b8

This change makes GPU buffer copies and fills update every overlapping cached image, and adds a test for partial writes. No concrete merge-blocking risk was established. The author reports that the new test passes with the change and that CI passed on all three platforms.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the main change: CP copies and fills (the GPU-path CopyBuffer and FillBuffer) now reach every image they overlap. The changeset adds PrepareBufferWrite to replace the base-address-only…
Description check Passed The description explains the root cause (InvalidateMemoryFromGPU skips images whose base address differs from the destination), the change (PrepareBufferWrite replacing InvalidateMemoryFromGPU in the …
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the main change: CP copies and fills (the GPU-path CopyBuffer and FillBuffer) now reach every image they overlap. The changeset adds PrepareBufferWrite to replace the base-address-only invalidation in those GPU branches, and adds a test for partial copies and fills into GPU-written images. The title is specific and matches the main change.

Full details: Description check

Explanation

The description explains the root cause (InvalidateMemoryFromGPU skips images whose base address differs from the destination), the change (PrepareBufferWrite replacing InvalidateMemoryFromGPU in the GPU branches of CopyBuffer and FillBuffer), the new test CheckPartialCopyIntoGpuImage and its results, and the costs. It relates directly to the changeset.

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

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between bc934ef034 and 665b874f96.

Files selected for processing: 5

  • CMakeLists.txt
  • src/graphics/host_gpu/renderer/cache/bufferCache.cpp
  • src/graphics/host_gpu/renderer/cache/textureCache.cpp
  • src/graphics/host_gpu/renderer/cache/textureCache.h
  • tests/ShaderRecompilerComputeTests.cpp

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

**@⁠coderabbitai[bot]** on GitHub · 2026-11-12 01:32 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/2225#issuecomment-6811725731) <!-- coderabbit-ai-generated:v1 --> <!-- This is an auto-generated comment: summarize by coderabbit.ai --> <!-- review_stack_entry_start --> <a href="https://app.coderabbit.ai/change-stack/KytyPS5/KytyPS5/pull/2225?scope=ghh_OusAJGA4HG8ljoOV0wJvVx8NmnZIjc2DdjmxOu0xZWA&amp;cs_source=review_comment"><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-stack-buttons-v1/explain-change-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-stack-buttons-v1/explain-change.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-stack-buttons-v1/explain-change.svg" alt="Explain Change →" height="32"></picture></a> <!-- review_stack_entry_end --> <!-- recent_review_status_start --> No actionable comments were generated in the recent review. <!-- recent_review_status_end --> <!-- walkthrough_start --> <details> <summary><strong>Walkthrough</strong></summary> <dl> <dd> <br> Buffer writes now prepare overlapping texture-cache images before writing. The preparation method handles readable images with partial coverage and updates image ownership state for other selected images. Compute tests check partial copies and fills into GPU images, including cached texel values and guest backing memory. The tests run in the normal Vulkan sequence and through a dedicated CTest entry. **Suggested reviewers:** `nmzik`, `thecruz`, `mrbigbritches` </dd> </dl> </details> <!-- walkthrough_end --> <!-- change_assessment_start --> <!-- change_assessment_commit:"665b874f9691c88b4e71fa4d698ffd081fe5f853" --> <!-- change_assessment_priority:{"version":1,"urgency":"p2","manual":false} --> **Change:** Bug fix <!-- change_assessment_end --> <details> <summary><strong>Merge Risk:</strong> <strong><picture><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/risk-unassessed-16.svg" width="16" height="16" align="absmiddle" alt=""></picture> Minimal</strong> · up to <code>665b8</code></summary> <dl> <dd> <br> <!-- final_review_risk_start --> <!-- final_review_risk_label **Merge Risk:** **⚪ Minimal** · up to `665b8` --> <!-- final_review_risk_coverage:{"sourceCommitId":"665b874f9691c88b4e71fa4d698ffd081fe5f853","coveredCommitId":"665b874f9691c88b4e71fa4d698ffd081fe5f853","kind":"reviewed"} --> This change makes GPU buffer copies and fills update every overlapping cached image, and adds a test for partial writes. No concrete merge-blocking risk was established. The author reports that the new test passes with the change and that CI passed on all three platforms. <!-- final_review_risk_end --> </dd> </dl> </details> <!-- pre_merge_checks_walkthrough_start --> <details> <summary><strong>Pre-merge checks: <sup><picture><img src="https://storage.googleapis.com/coderabbit_public_assets/pre-merge-checks-counter-passed-14-v2.svg" width="14" height="14" align="middle" alt="Passed" title="Passed"></picture></sup> 4</strong></summary> <dl> <dd> <br> | Check name | Status | Explanation | | :------------------------ | :--------------------------------------------------------------------------------------------: | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Title check | ![Passed](https://storage.googleapis.com/coderabbit_public_assets/pre-merge-checks-passed.svg) | The title names the main change: CP copies and fills (the GPU-path CopyBuffer and FillBuffer) now reach every image they overlap. The changeset adds PrepareBufferWrite to replace the base-address-only… | | Description check | ![Passed](https://storage.googleapis.com/coderabbit_public_assets/pre-merge-checks-passed.svg) | The description explains the root cause (InvalidateMemoryFromGPU skips images whose base address differs from the destination), the change (PrepareBufferWrite replacing InvalidateMemoryFromGPU in the … | | Linked Issues check | ![Passed](https://storage.googleapis.com/coderabbit_public_assets/pre-merge-checks-passed.svg) | Check skipped because no linked issues were found for this pull request. | | Out of Scope Changes check | ![Passed](https://storage.googleapis.com/coderabbit_public_assets/pre-merge-checks-passed.svg) | Check skipped because no linked issues were found for this pull request. | <details> <summary><strong>Full details: Title check</strong></summary> <dl> <dd> <br> **Explanation** The title names the main change: CP copies and fills (the GPU-path CopyBuffer and FillBuffer) now reach every image they overlap. The changeset adds PrepareBufferWrite to replace the base-address-only invalidation in those GPU branches, and adds a test for partial copies and fills into GPU-written images. The title is specific and matches the main change. </dd> </dl> </details> <details> <summary><strong>Full details: Description check</strong></summary> <dl> <dd> <br> **Explanation** The description explains the root cause (InvalidateMemoryFromGPU skips images whose base address differs from the destination), the change (PrepareBufferWrite replacing InvalidateMemoryFromGPU in the GPU branches of CopyBuffer and FillBuffer), the new test CheckPartialCopyIntoGpuImage and its results, and the costs. It relates directly to the changeset. </dd> </dl> </details> </dd> </dl> </details> <!-- pre_merge_checks_walkthrough_end --> <!-- tips_start --> Thanks for using [CodeRabbit](https://coderabbit.ai?utm_source=oss&utm_medium=github&utm_campaign=KytyPS5/KytyPS5&utm_content=2225)! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. <details> <summary><strong>Share</strong></summary> <dl> <dd> <br> - [X](https://twitter.com/intent/tweet?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A&url=https%3A//coderabbit.ai) - [Mastodon](https://mastodon.social/share?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A%20https%3A%2F%2Fcoderabbit.ai) - [Reddit](https://www.reddit.com/submit?title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&text=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code.%20Check%20it%20out%3A%20https%3A//coderabbit.ai) - [LinkedIn](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fcoderabbit.ai&mini=true&title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&summary=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code) </dd> </dl> </details> <!-- tips_end --> <!-- recent_review_start --> <h6> <details> <summary><strong><picture><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/info.svg" width="12" height="12" align="absmiddle" alt=""></picture> Recent review info</strong></summary> <dl> <dd> <br> <!-- review_info_content --> <details> <summary><strong><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/cog-dark.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/cog.svg" width="16" height="16" align="absmiddle" alt=""></picture> Run configuration</strong></summary> <dl> <dd> <br> - **Source mode**: Auto - **Repository**: [KytyPS5/KytyPS5](<https://github.com/KytyPS5/KytyPS5>) - **Branch**: [main](<https://github.com/KytyPS5/KytyPS5/tree/main>) - **File**: [.coderabbit.yaml](<https://github.com/KytyPS5/KytyPS5/blob/bc934ef03410b760fbf8e49db1d79485e7e5f887/.coderabbit.yaml>) - **Commit**: [bc934ef](<https://github.com/KytyPS5/KytyPS5/commit/bc934ef03410b760fbf8e49db1d79485e7e5f887>) - **Layers**: Repository YAML - **Review profile**: CHILL - **Plan**: Advanced - **Run ID**: `616cb43d-0a91-4053-86cd-cc3fa97b2662` </dd> </dl> </details> <details> <summary><strong><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/git-commit-horizontal-dark.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/git-commit-horizontal.svg" width="16" height="16" align="absmiddle" alt=""></picture> Commits</strong></summary> <dl> <dd> <br> Reviewing files that changed from the base of the PR and between bc934ef03410b760fbf8e49db1d79485e7e5f887 and 665b874f9691c88b4e71fa4d698ffd081fe5f853. </dd> </dl> </details> <details> <summary><strong><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/file-plus-corner-dark.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/file-plus-corner.svg" width="16" height="16" align="absmiddle" alt=""></picture> Files selected for processing: 5</strong></summary> <dl> <dd> <br> * `CMakeLists.txt` * `src/graphics/host_gpu/renderer/cache/bufferCache.cpp` * `src/graphics/host_gpu/renderer/cache/textureCache.cpp` * `src/graphics/host_gpu/renderer/cache/textureCache.h` * `tests/ShaderRecompilerComputeTests.cpp` </dd> </dl> </details> **Included review availability:** This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review. </dd> </dl> </details> </h6> <!-- recent_review_end -->

Pull request closed

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