graphics: release retired resources only after the command buffer their handles reach #2355

Open
github-bot wants to merge 1 commit from github-bot/gh-2355 into main AGit
Owner

@⁠Nawid3333 on GitHub · 2026-11-17 17:13 UTC · original
Nawid3333:fix/release-after-commit → main · +72 −16 · 11 files · 1 commits · open

Problem

A draw can record a buffer after that buffer has already been destroyed.

Code Violet (PPSA26528, #938) loses the device on an RX 9060 XT; with the device-loss diagnostics build, the last command the GPU started is a draw-indirect. A run with --vulkan-validation does not lose the device; its first and only validation error is:

vkCmdEndRendering(): was called in VkCommandBuffer 0x100295ace90 which is now in an invalid state (instead of recording state) because the following objects bound to the command buffer were invalidated:
- VkBuffer 0x5eb00000005eb was destroyed
The Vulkan spec states: commandBuffer must be in the recording state (VUID-vkCmdEndRendering-commandBuffer-recording)

Cause

All line numbers are at 15c8c6182.

  1. ExecutePreparedDraw takes the draw's buffer handles first: PrepareGraphicsBindings, then AcquireVertexBuffers and the index buffer (renderDraw.cpp:1107-1113).
  2. After that it obtains the indirect arguments (renderDraw.cpp:1124). That range can span two cache buffers. CreateBuffer then joins them, and JoinOverlap deletes the old buffer (bufferCache.cpp:382-390, 408). DeleteBuffer defers the erase with DeferOperation (bufferCache.cpp:148), which stamps it with CurrentTick() (commandScheduler.cpp:207). Call that tick T.
  3. Preparation can still submit T and begin T+1, as the comment at renderDraw.cpp:1149 says. Wait(CurrentTick()) does this for a stream-buffer wrap (commandScheduler.cpp:159-172). Neither Wait nor Flush pops.
  4. The handles taken in step 1 are recorded into T+1 (renderDraw.cpp:1154 onward).
  5. The next draw begins with PopPendingOperations() (renderDraw.cpp:1272/1363). T is complete by then, because Wait waited for it. So the erase runs, and ~Buffer destroys the VkBuffer at once (streamBuffer.cpp:110), while T+1 is still recording with it.

Our closed #2224 moved the descriptor handles after these joins so that shader writes do not land in the retired buffer. That is about stale data; this change is about the retired buffer's lifetime, which matters for every handle taken before a join (vertex and index buffers too).

CheckSchedulerTimeline expects exactly this order: a deferred operation is not released by Wait(T), but is released at the next pop. That holds only if nothing taken before the restart is recorded after it.

The same applies to every caller that defers the release of something a draw or dispatch may already hold:

  • images (textureCache.cpp DeleteImage)
  • upload temporaries
  • tiler scratch buffers
  • image heap views
  • ray tracing buffers and acceleration structures
  • PSSR

Change

  • DeferRelease holds a release without a tick. StartOperation() stamps the held releases with the tick being recorded (the last submitted tick when nothing is recording), then pops as before. It replaces PopPendingOperations() at the start of DrawIndex, DrawAuto, DispatchDirect, DispatchIndirect and ProcessPssr.
    • By the next operation start, whatever the previous operation took has been recorded at or before that tick. A release therefore runs only after the command buffer its handles reached has completed.
    • Finish and Shutdown stamp held releases before their final submit, so they still drain everything.
  • The nine release sites use DeferRelease:
    • bufferCache.cpp: upload temporary, DeleteBuffer
    • textureCache.cpp: image erase
    • tiler.cpp: scratch growth
    • imageHeap.cpp: a view's buffer replaced when the view grows, and view buffers retired in Drop
    • rayTracing.cpp: two retires
    • renderPssr.cpp: the PSSR release
  • Unchanged:
    • DeferOperation keeps its exact tick. faultManager.cpp:122 consumes GPU results, and its area reuse waits on that tick, then pops (faultManager.cpp:69-71).
    • Priority operations are not touched.
    • The order between releases stays FIFO.

Tests

CheckSchedulerTimeline (shader_recompiler_compute_tests --scheduler-only) gets a release that is deferred at T, followed by Wait(T) and StartOperation(). It must not run while T+1 records, and must run exactly once after T+1 completes.

  • With DeferRelease stamping at once, as DeferOperation does on main, it fails:
    SchedulerTimeline failed at release across a restart: a release ran while the command buffer restarted after it still recorded
  • With the change it passes.
  • The whole shader_recompiler_compute_tests suite (keep-going, on 15c8c6182) gives the same result with and without the change on an RX 9070 XT (Windows 11, clang-cl, with the harness change of #2038): 192 checks ok, and the same 4 failed checks, which are known failures of this machine's harness.
  • Fork CI on this head (run 44125857524): Windows, Linux and macOS builds pass.

Costs

A release becomes due when the tick stamped at the next draw, dispatch or PSSR start (or by Finish or Shutdown) has completed, and runs at the next pop after that. Before, it became due with the tick that was current when it was deferred. There are no extra waits or submits.

In a game

pedrohenriquebragap ran a test build with this change on Code Violet (#938 comment): the VkBuffer ... was destroyed validation error and the device loss both still occur. So this change does not fix that game's stop; it fixes the release ordering that the SchedulerTimeline test shows. A trace build to find the code that destroys that buffer is with the reporter.

Refs #938

Written with Claude Code (AI): Claude Code found the cause from the reporter's validation log, wrote the change and the test, and ran them; Codex and Claude Opus reviewed the design and the change.

🤖 Generated with Claude Code

**@⁠Nawid3333** on GitHub · 2026-11-17 17:13 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/2355) `Nawid3333:fix/release-after-commit` → `main` · +72 −16 · 11 files · 1 commits · open ## Problem A draw can record a buffer after that buffer has already been destroyed. Code Violet (PPSA26528, #938) loses the device on an RX 9060 XT; with the device-loss diagnostics build, the last command the GPU started is a draw-indirect. A run with `--vulkan-validation` does not lose the device; its first and only validation error is: ``` vkCmdEndRendering(): was called in VkCommandBuffer 0x100295ace90 which is now in an invalid state (instead of recording state) because the following objects bound to the command buffer were invalidated: - VkBuffer 0x5eb00000005eb was destroyed The Vulkan spec states: commandBuffer must be in the recording state (VUID-vkCmdEndRendering-commandBuffer-recording) ``` ## Cause All line numbers are at 15c8c6182. 1. `ExecutePreparedDraw` takes the draw's buffer handles first: `PrepareGraphicsBindings`, then `AcquireVertexBuffers` and the index buffer (renderDraw.cpp:1107-1113). 2. After that it obtains the indirect arguments (renderDraw.cpp:1124). That range can span two cache buffers. `CreateBuffer` then joins them, and `JoinOverlap` deletes the old buffer (bufferCache.cpp:382-390, 408). `DeleteBuffer` defers the erase with `DeferOperation` (bufferCache.cpp:148), which stamps it with `CurrentTick()` (commandScheduler.cpp:207). Call that tick T. 3. Preparation can still submit T and begin T+1, as the comment at renderDraw.cpp:1149 says. `Wait(CurrentTick())` does this for a stream-buffer wrap (commandScheduler.cpp:159-172). Neither `Wait` nor `Flush` pops. 4. The handles taken in step 1 are recorded into T+1 (renderDraw.cpp:1154 onward). 5. The next draw begins with `PopPendingOperations()` (renderDraw.cpp:1272/1363). T is complete by then, because `Wait` waited for it. So the erase runs, and `~Buffer` destroys the `VkBuffer` at once (streamBuffer.cpp:110), while T+1 is still recording with it. Our closed #2224 moved the descriptor handles after these joins so that shader writes do not land in the retired buffer. That is about stale data; this change is about the retired buffer's lifetime, which matters for every handle taken before a join (vertex and index buffers too). `CheckSchedulerTimeline` expects exactly this order: a deferred operation is not released by `Wait(T)`, but is released at the next pop. That holds only if nothing taken before the restart is recorded after it. The same applies to every caller that defers the release of something a draw or dispatch may already hold: - images (textureCache.cpp `DeleteImage`) - upload temporaries - tiler scratch buffers - image heap views - ray tracing buffers and acceleration structures - PSSR ## Change - `DeferRelease` holds a release without a tick. `StartOperation()` stamps the held releases with the tick being recorded (the last submitted tick when nothing is recording), then pops as before. It replaces `PopPendingOperations()` at the start of `DrawIndex`, `DrawAuto`, `DispatchDirect`, `DispatchIndirect` and `ProcessPssr`. - By the next operation start, whatever the previous operation took has been recorded at or before that tick. A release therefore runs only after the command buffer its handles reached has completed. - `Finish` and `Shutdown` stamp held releases before their final submit, so they still drain everything. - The nine release sites use `DeferRelease`: - bufferCache.cpp: upload temporary, `DeleteBuffer` - textureCache.cpp: image erase - tiler.cpp: scratch growth - imageHeap.cpp: a view's buffer replaced when the view grows, and view buffers retired in `Drop` - rayTracing.cpp: two retires - renderPssr.cpp: the PSSR release - Unchanged: - `DeferOperation` keeps its exact tick. faultManager.cpp:122 consumes GPU results, and its area reuse waits on that tick, then pops (faultManager.cpp:69-71). - Priority operations are not touched. - The order between releases stays FIFO. ## Tests `CheckSchedulerTimeline` (`shader_recompiler_compute_tests --scheduler-only`) gets a release that is deferred at T, followed by `Wait(T)` and `StartOperation()`. It must not run while T+1 records, and must run exactly once after T+1 completes. - With `DeferRelease` stamping at once, as `DeferOperation` does on main, it fails: `SchedulerTimeline failed at release across a restart: a release ran while the command buffer restarted after it still recorded` - With the change it passes. - The whole `shader_recompiler_compute_tests` suite (keep-going, on 15c8c6182) gives the same result with and without the change on an RX 9070 XT (Windows 11, clang-cl, with the harness change of #2038): 192 checks ok, and the same 4 failed checks, which are known failures of this machine's harness. - Fork CI on this head ([run 44125857524](https://github.com/Nawid3333/KytyPS5/actions/runs/44125857524)): Windows, Linux and macOS builds pass. ## Costs A release becomes due when the tick stamped at the next draw, dispatch or PSSR start (or by `Finish` or `Shutdown`) has completed, and runs at the next pop after that. Before, it became due with the tick that was current when it was deferred. There are no extra waits or submits. ## In a game pedrohenriquebragap ran a test build with this change on Code Violet ([#938 comment](https://git.gtahub.st/github/KytyPS5--KytyPS5/issues/938)): the `VkBuffer ... was destroyed` validation error and the device loss both still occur. So this change does not fix that game's stop; it fixes the release ordering that the `SchedulerTimeline` test shows. A trace build to find the code that destroys that buffer is with the reporter. Refs #938 Written with Claude Code (AI): Claude Code found the cause from the reporter's validation log, wrote the change and the test, and ran them; Codex and Claude Opus reviewed the design and the change. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 10:18:42 +00:00
Author
Owner

@⁠coderabbitai[bot] on GitHub · 2026-11-17 17:23 UTC · original · edited 2026-11-22 15:23 UTC

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

CommandScheduler now buffers deferred releases and seals them into pending operations at operation boundaries and during shutdown. Renderer cleanup call sites use DeferRelease, and rendering entry points use StartOperation. The scheduler timeline test adds checks for when a deferred release callback runs.

Suggested reviewers: nmzik

Change: Bug fix

Merge Risk: Minimal · up to 3865f

Deferred resources are now released only after the command buffer that last recorded them has completed. This fixes the use-after-release when a command buffer restarts mid-draw. No concrete merge-blocking issue was found. In-game confirmation from the issue reporter is still pending.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the main change: retired resources are released only after the command buffer that holds their handles has been recorded. The changeset adds DeferRelease and StartOperation, and switch…
Description check Passed The description explains the problem (a draw records a buffer after it was destroyed), the cause, the change (DeferRelease, StartOperation, and the nine release sites), the test (CheckSchedulerTimelin…
Linked Issues check Passed The only linked issue is #2224. It is closed and marked as historical context only. No active directly linked target remains, so no linked-issue coding requirements apply. The PR objectives state the …
Out of Scope Changes check Passed Each changed file supports the stated objective of releasing retired resources only after the command buffer that holds their handles completes. commandScheduler.h and commandScheduler.cpp add DeferRe…
Full details: Title check

Explanation

The title names the main change: retired resources are released only after the command buffer that holds their handles has been recorded. The changeset adds DeferRelease and StartOperation, and switches release sites to them, which matches the title's intent. The title does not name the new API, but it is specific and accurate.

Full details: Description check

Explanation

The description explains the problem (a draw records a buffer after it was destroyed), the cause, the change (DeferRelease, StartOperation, and the nine release sites), the test (CheckSchedulerTimeline), and the costs. It is directly related to the changeset.

Full details: Linked Issues check

Explanation

The only linked issue is #2224. It is closed and marked as historical context only. No active directly linked target remains, so no linked-issue coding requirements apply. The PR objectives state the same. This PR fixes a different defect: release lifetime of retired buffers, not the binding order of draw shader buffers. The acceptance criteria of #2224 are therefore not evaluated here.

Full details: Out of Scope Changes check

Explanation

Each changed file supports the stated objective of releasing retired resources only after the command buffer that holds their handles completes. commandScheduler.h and commandScheduler.cpp add DeferRelease, StartOperation, the held-release staging and sealing, and the Finish and Shutdown seal logic. bufferCache.cpp, textureCache.cpp, tiler.cpp, imageHeap.cpp, rayTracing.cpp, and renderPssr.cpp move the nine named release sites from DeferOperation to DeferRelease. renderDraw.cpp, renderCompute.cpp, and renderPssr.cpp replace PopPendingOperations with StartOperation at the draw, dispatch, and PSSR entry points. ShaderRecompilerComputeTests.cpp adds the CheckSchedulerTimeline case for the new behavior. No unrelated file or change appears in the summary. The PR description states that DeferOperation, faultManager, and priority operations are unchanged, and the summary does not contradict this. This assessment rests on the whole-PR summary and the PR description. Hunk-level diffs were not inspected in this pass. Changes since the previous reviewed head (4ec06201) were not separately isolated, so the whole-PR file list was used.

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 4ec06201f6 and 3865f62334.

Files selected for processing: 2

  • src/graphics/host_gpu/renderer/commandScheduler.cpp
  • tests/ShaderRecompilerComputeTests.cpp

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

**@⁠coderabbitai[bot]** on GitHub · 2026-11-17 17:23 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/2355#issuecomment-6955564792) · edited 2026-11-22 15:23 UTC <!-- 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/2355?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> CommandScheduler now buffers deferred releases and seals them into pending operations at operation boundaries and during shutdown. Renderer cleanup call sites use DeferRelease, and rendering entry points use StartOperation. The scheduler timeline test adds checks for when a deferred release callback runs. **Suggested reviewers:** `nmzik` </dd> </dl> </details> <!-- walkthrough_end --> <!-- change_assessment_start --> <!-- change_assessment_commit:"3865f6233406f3cce804ab327f336da259467bd1" --> <!-- 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>3865f</code></summary> <dl> <dd> <br> <!-- final_review_risk_start --> <!-- final_review_risk_label **Merge Risk:** **⚪ Minimal** · up to `3865f` --> <!-- final_review_risk_coverage:{"sourceCommitId":"3865f6233406f3cce804ab327f336da259467bd1","coveredCommitId":"3865f6233406f3cce804ab327f336da259467bd1","kind":"reviewed"} --> Deferred resources are now released only after the command buffer that last recorded them has completed. This fixes the use-after-release when a command buffer restarts mid-draw. No concrete merge-blocking issue was found. In-game confirmation from the issue reporter is still pending. <!-- 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: retired resources are released only after the command buffer that holds their handles has been recorded. The changeset adds DeferRelease and StartOperation, and switch… | | Description check | ![Passed](https://storage.googleapis.com/coderabbit_public_assets/pre-merge-checks-passed.svg) | The description explains the problem (a draw records a buffer after it was destroyed), the cause, the change (DeferRelease, StartOperation, and the nine release sites), the test (CheckSchedulerTimelin… | | Linked Issues check | ![Passed](https://storage.googleapis.com/coderabbit_public_assets/pre-merge-checks-passed.svg) | The only linked issue is `#2224`. It is closed and marked as historical context only. No active directly linked target remains, so no linked-issue coding requirements apply. The PR objectives state the … | | Out of Scope Changes check | ![Passed](https://storage.googleapis.com/coderabbit_public_assets/pre-merge-checks-passed.svg) | Each changed file supports the stated objective of releasing retired resources only after the command buffer that holds their handles completes. commandScheduler.h and commandScheduler.cpp add DeferRe… | <details> <summary><strong>Full details: Title check</strong></summary> <dl> <dd> <br> **Explanation** The title names the main change: retired resources are released only after the command buffer that holds their handles has been recorded. The changeset adds DeferRelease and StartOperation, and switches release sites to them, which matches the title's intent. The title does not name the new API, but it is specific and accurate. </dd> </dl> </details> <details> <summary><strong>Full details: Description check</strong></summary> <dl> <dd> <br> **Explanation** The description explains the problem (a draw records a buffer after it was destroyed), the cause, the change (DeferRelease, StartOperation, and the nine release sites), the test (CheckSchedulerTimeline), and the costs. It is directly related to the changeset. </dd> </dl> </details> <details> <summary><strong>Full details: Linked Issues check</strong></summary> <dl> <dd> <br> **Explanation** The only linked issue is `#2224`. It is closed and marked as historical context only. No active directly linked target remains, so no linked-issue coding requirements apply. The PR objectives state the same. This PR fixes a different defect: release lifetime of retired buffers, not the binding order of draw shader buffers. The acceptance criteria of `#2224` are therefore not evaluated here. </dd> </dl> </details> <details> <summary><strong>Full details: Out of Scope Changes check</strong></summary> <dl> <dd> <br> **Explanation** Each changed file supports the stated objective of releasing retired resources only after the command buffer that holds their handles completes. commandScheduler.h and commandScheduler.cpp add DeferRelease, StartOperation, the held-release staging and sealing, and the Finish and Shutdown seal logic. bufferCache.cpp, textureCache.cpp, tiler.cpp, imageHeap.cpp, rayTracing.cpp, and renderPssr.cpp move the nine named release sites from DeferOperation to DeferRelease. renderDraw.cpp, renderCompute.cpp, and renderPssr.cpp replace PopPendingOperations with StartOperation at the draw, dispatch, and PSSR entry points. ShaderRecompilerComputeTests.cpp adds the CheckSchedulerTimeline case for the new behavior. No unrelated file or change appears in the summary. The PR description states that DeferOperation, faultManager, and priority operations are unchanged, and the summary does not contradict this. This assessment rests on the whole-PR summary and the PR description. Hunk-level diffs were not inspected in this pass. Changes since the previous reviewed head (4ec06201) were not separately isolated, so the whole-PR file list was used. </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=2355)! 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/a0b083c85293d55a48b4f8774285415c29d78c8b/.coderabbit.yaml>) - **Commit**: [a0b083c](<https://github.com/KytyPS5/KytyPS5/commit/a0b083c85293d55a48b4f8774285415c29d78c8b>) - **Layers**: Repository YAML - **Review profile**: CHILL - **Plan**: Advanced - **Run ID**: `3c2ea0a6-8be4-4292-868f-24bcec7d7890` </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 4ec06201f6d74d91e16b82cbf17b981e89856d0d and 3865f6233406f3cce804ab327f336da259467bd1. </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: 2</strong></summary> <dl> <dd> <br> * `src/graphics/host_gpu/renderer/commandScheduler.cpp` * `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; 9 remain after this review. </dd> </dl> </details> </h6> <!-- recent_review_end -->
Author
Owner

@⁠Nawid3333 on GitHub · 2026-11-24 07:24 UTC · original

Game result: pedrohenriquebragap ran a test build with this change on Code Violet (#938 comment): the VkBuffer ... was destroyed validation error and the device loss both still occur. So this does not fix that game's stop; it fixes the release ordering that its SchedulerTimeline test shows. A trace build to find the code that destroys that buffer is with the reporter (#938).

**@⁠Nawid3333** on GitHub · 2026-11-24 07:24 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/2355#issuecomment-7124949201) Game result: pedrohenriquebragap ran a test build with this change on Code Violet ([#938 comment](https://git.gtahub.st/github/KytyPS5--KytyPS5/issues/938)): the `VkBuffer ... was destroyed` validation error and the device loss both still occur. So this does not fix that game's stop; it fixes the release ordering that its `SchedulerTimeline` test shows. A trace build to find the code that destroys that buffer is with the reporter (#938).
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/2355/head:github-bot/gh-2355'
git switch 'github-bot/gh-2355'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-2355'
git switch 'github-bot/gh-2355'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-2355'
git switch 'github-bot/gh-2355'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-2355'
git switch 'main'
git merge --squash 'github-bot/gh-2355'
git switch 'main'
git merge --ff-only 'github-bot/gh-2355'
git switch 'main'
git merge 'github-bot/gh-2355'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.