graphics: report device loss with VK_EXT_device_fault and opt-in GPU checkpoints #1816

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

@⁠ZrDaniel07 on GitHub · 2026-10-22 04:01 UTC · original
ZrDaniel07:diag/device-lost → main · +360 −0 · 9 files · 2 commits · closed without merging

A lost device currently ends with Not implemented (result != vk::Result::eSuccess) in masterSemaphore.cpp:56 and nothing else, so reports like #831, #905 and #1511 can't say which work hung the GPU. This adds a report for that case.

What changes

  • MasterSemaphore prints the failing call, the result and the GPU tick before the EXIT:
    MasterSemaphore: vkWaitSemaphores failed: ErrorDeviceLost (-4), tick=310371 gpu_tick=310273 current_tick=310372
  • On ErrorDeviceLost (from the semaphore wait, the counter query or vkQueueSubmit), a report prints what VK_EXT_device_fault returns: the description, the first 8 address records and a per-type summary. The extension is enabled whenever the device supports it, and only queried after a loss.
  • KYTY_GPU_CHECKPOINTS=1 enables VK_NV_device_diagnostic_checkpoints. Every CommandBuffer::SetDebugInfo records a checkpoint (dispatches also get their shader hash, draws the PS address), and the report lists the operations between the last bottom-of-pipe and top-of-pipe checkpoints. It is opt-in because it adds a command per draw and dispatch. At startup the console says whether it is on.
  • Several threads can see the loss at once. The report holds a lock, so the others wait for it before their EXIT ends the process. Without this the report was cut off.

Example from ASTRO BOT (PPSA21564) with #1365 applied locally, RTX 5090:

MasterSemaphore: vkWaitSemaphores failed: ErrorDeviceLost (-4), tick=310371 gpu_tick=310273 current_tick=310372
--- Device loss report ---
VK_EXT_device_fault: "", 104 address records, 0 vendor records
  address[0]: InstructionPointerUnknown reported=0x0000000200301970 range=[0x0000000200301970, 0x0000000200301980)
  ...
  all InstructionPointerUnknown: 104 records, 0x00000002003011a0..0x0000000200301a20
GPU checkpoint: stage=TopOfPipe checkpoint=152469
GPU checkpoint: stage=BottomOfPipe checkpoint=152469
GPU checkpoints 152469..152469 of 152683 recorded:
  [152469] DispatchDirect submit=8272 groups=4096x1x1 mode=0x00000041 cs=0x0000000500525200 hash=0x657ad04626bf9d55

That pointed at one compute shader; details in #1511.

Testing

Windows 11, clang-cl 19.1.5, Release, RTX 5090 (driver 617.42, Vulkan 1.4.351):

  • Builds with no new warnings; shader_recompiler_compute_tests passes.
  • ASTRO BOT (with #1365 applied locally to get past the boot crash; not part of this PR): 6 device-loss runs with the report, 2 of them with checkpoints, both naming the same dispatch.
  • Not built or run on Linux or macOS. Everything is behind HasExtension checks, so MoltenVK and drivers without these extensions take the old path. Checkpoints only exist on NVIDIA; AMD's VK_AMD_buffer_marker could feed the same report later.

AI use

Claude Code (Anthropic) wrote the patch with me, at my request, and analysed the outputs with me. I reviewed the diff, ran the game for every test above and checked the reports myself.

🤖 Generated with Claude Code

**@⁠ZrDaniel07** on GitHub · 2026-10-22 04:01 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/1816) `ZrDaniel07:diag/device-lost` → `main` · +360 −0 · 9 files · 2 commits · closed without merging A lost device currently ends with `Not implemented (result != vk::Result::eSuccess) in masterSemaphore.cpp:56` and nothing else, so reports like #831, #905 and #1511 can't say which work hung the GPU. This adds a report for that case. **What changes** - `MasterSemaphore` prints the failing call, the result and the GPU tick before the EXIT: `MasterSemaphore: vkWaitSemaphores failed: ErrorDeviceLost (-4), tick=310371 gpu_tick=310273 current_tick=310372` - On `ErrorDeviceLost` (from the semaphore wait, the counter query or `vkQueueSubmit`), a report prints what `VK_EXT_device_fault` returns: the description, the first 8 address records and a per-type summary. The extension is enabled whenever the device supports it, and only queried after a loss. - `KYTY_GPU_CHECKPOINTS=1` enables `VK_NV_device_diagnostic_checkpoints`. Every `CommandBuffer::SetDebugInfo` records a checkpoint (dispatches also get their shader hash, draws the PS address), and the report lists the operations between the last bottom-of-pipe and top-of-pipe checkpoints. It is opt-in because it adds a command per draw and dispatch. At startup the console says whether it is on. - Several threads can see the loss at once. The report holds a lock, so the others wait for it before their EXIT ends the process. Without this the report was cut off. Example from ASTRO BOT (PPSA21564) with #1365 applied locally, RTX 5090: ``` MasterSemaphore: vkWaitSemaphores failed: ErrorDeviceLost (-4), tick=310371 gpu_tick=310273 current_tick=310372 --- Device loss report --- VK_EXT_device_fault: "", 104 address records, 0 vendor records address[0]: InstructionPointerUnknown reported=0x0000000200301970 range=[0x0000000200301970, 0x0000000200301980) ... all InstructionPointerUnknown: 104 records, 0x00000002003011a0..0x0000000200301a20 GPU checkpoint: stage=TopOfPipe checkpoint=152469 GPU checkpoint: stage=BottomOfPipe checkpoint=152469 GPU checkpoints 152469..152469 of 152683 recorded: [152469] DispatchDirect submit=8272 groups=4096x1x1 mode=0x00000041 cs=0x0000000500525200 hash=0x657ad04626bf9d55 ``` That pointed at one compute shader; details in #1511. **Testing** Windows 11, clang-cl 19.1.5, Release, RTX 5090 (driver 617.42, Vulkan 1.4.351): - Builds with no new warnings; `shader_recompiler_compute_tests` passes. - ASTRO BOT (with #1365 applied locally to get past the boot crash; not part of this PR): 6 device-loss runs with the report, 2 of them with checkpoints, both naming the same dispatch. - Not built or run on Linux or macOS. Everything is behind `HasExtension` checks, so MoltenVK and drivers without these extensions take the old path. Checkpoints only exist on NVIDIA; AMD's `VK_AMD_buffer_marker` could feed the same report later. **AI use** Claude Code (Anthropic) wrote the patch with me, at my request, and analysed the outputs with me. I reviewed the diff, ran the game for every test above and checked the reports myself. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
A lost device used to end with "Not implemented (result != eSuccess)" in
masterSemaphore.cpp and nothing else. Now:

- MasterSemaphore prints the failing call, the result and the GPU tick.
- On ErrorDeviceLost, a report prints the VK_EXT_device_fault description and
  address records when the device supports the extension (enabled whenever it
  is available; it is only queried after a loss).
- KYTY_GPU_CHECKPOINTS=1 enables VK_NV_device_diagnostic_checkpoints: every
  CommandBuffer::SetDebugInfo records a checkpoint, dispatches add their shader
  hash, and the report lists the operations between the last bottom-of-pipe and
  top-of-pipe checkpoints.
- Threads that see the loss while the report is printed wait for it before
  their EXIT ends the process.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Any value but "0" used to enable them, so an empty or "false" value did too.
Trailing spaces are ignored, since cmd keeps the one before && in
"set KYTY_GPU_CHECKPOINTS=1 && ...".

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

@⁠coderabbitai[bot] on GitHub · 2026-10-22 04:07 UTC · original · edited 2026-10-23 19:11 UTC

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
📥 Commits

Reviewing files that changed from the base of the PR and between 37743a3f5191db69885afb6ac6e607f738bd31ac and 5a7b319a05.

📒 Files selected for processing: 3
  • src/graphics/host_gpu/graphicContext.h
  • src/graphics/host_gpu/renderer/renderCompute.cpp
  • src/graphics/presentation/window/vulkanWindow.cpp

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

📝 Walkthrough

The change adds Vulkan device-fault reporting and optional GPU command checkpoints. Device creation detects and enables supported diagnostic extensions. Checkpoints record command metadata and shader hashes. Queue submission and semaphore failures pass their Vulkan results to the device-loss reporting path.

Suggested reviewers: nmzik

Priority: ⬇️ Low

Change: Feature

Merge Risk: 🔵 Low · up to 5a7b3

The change is mergeable with owner awareness that early dispatch exits can leave misleading opt-in device-loss checkpoints.

Pre-merge checks: Passed 4 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 4.35% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 23 functions across 9 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 4 passed
Check name Status Explanation
Title check Passed The title clearly and concisely describes the main change: device-loss reporting through VK_EXT_device_fault and opt-in GPU checkpoints.
Description check Passed The description directly explains the device-loss diagnostics, checkpoint behavior, testing, and platform limitations described by the changeset.
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

**@⁠coderabbitai[bot]** on GitHub · 2026-10-22 04:07 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/1816#issuecomment-6332445898) · edited 2026-10-23 19:11 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/1816?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-in-coderabbit-ui-dark.svg?v=3"><source media="(prefers-color-scheme: light)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-stack-in-coderabbit-ui.svg?v=3"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-stack-in-coderabbit-ui.svg?v=3" alt="Review in Change Stack →" height="32"></picture></a> <!-- review_stack_entry_end --> <!-- recent_review_start --> No actionable comments were generated in the recent review. 🎉 <details> <summary><strong>ℹ️ Recent review info</strong></summary> <dl> <dd> <details> <summary><strong>⚙️ Run configuration</strong></summary> <dl> <dd> - **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/9dcff95e809ec43ba66f56648164070f4b16348f/.coderabbit.yaml>) - **Commit**: [9dcff95](<https://github.com/KytyPS5/KytyPS5/commit/9dcff95e809ec43ba66f56648164070f4b16348f>) - **Layers**: Repository YAML - **Review profile**: CHILL - **Plan**: Advanced - **Run ID**: `c92b6c8a-5e31-4ced-9296-8e4a8068ae49` </dd> </dl> </details> <details> <summary><strong>📥 Commits</strong></summary> <dl> <dd> Reviewing files that changed from the base of the PR and between 37743a3f5191db69885afb6ac6e607f738bd31ac and 5a7b319a051e268cb08f0a06a1c762cd826ed318. </dd> </dl> </details> <details> <summary><strong>📒 Files selected for processing: 3</strong></summary> <dl> <dd> * `src/graphics/host_gpu/graphicContext.h` * `src/graphics/host_gpu/renderer/renderCompute.cpp` * `src/graphics/presentation/window/vulkanWindow.cpp` </dd> </dl> </details> **Included review availability:** This review used your included allowance. Your plan provides up to 8 included reviews per hour; 6 remain after this review. </dd> </dl> </details> <!-- recent_review_end --> <!-- walkthrough_start --> <details> <summary><strong>📝 Walkthrough</strong></summary> <dl> <dd> The change adds Vulkan device-fault reporting and optional GPU command checkpoints. Device creation detects and enables supported diagnostic extensions. Checkpoints record command metadata and shader hashes. Queue submission and semaphore failures pass their Vulkan results to the device-loss reporting path. **Suggested reviewers:** `nmzik` </dd> </dl> </details> <!-- walkthrough_end --> <!-- change_assessment_start --> **Priority:** ⬇️ Low <!-- change_assessment_commit:"5a7b319a051e268cb08f0a06a1c762cd826ed318" --> **Change:** Feature <!-- change_assessment_end --> <details> <summary><strong>Merge Risk:</strong> <strong>🔵 Low</strong> · up to <code>5a7b3</code></summary> <dl> <dd> <!-- final_review_risk_start --> <!-- final_review_risk_label **Merge Risk:** **🔵 Low** · up to `5a7b3` --> <!-- final_review_risk_coverage:{"sourceCommitId":"5a7b319a051e268cb08f0a06a1c762cd826ed318","coveredCommitId":"5a7b319a051e268cb08f0a06a1c762cd826ed318","kind":"reviewed"} --> The change is mergeable with owner awareness that early dispatch exits can leave misleading opt-in device-loss checkpoints. <!-- 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 · <sup><picture><img src="https://storage.googleapis.com/coderabbit_public_assets/pre-merge-checks-counter-failed-14-v2.svg" width="14" height="14" align="middle" alt="Failed" title="Failed"></picture></sup> 1</strong></summary> <dl> <dd> <strong><sup><picture><img src="https://storage.googleapis.com/coderabbit_public_assets/pre-merge-checks-counter-failed-14-v2.svg" width="14" height="14" align="middle" alt="Failed" title="Failed"></picture></sup> Failed checks: 1 warning</strong> | Check name | Status | Explanation | Resolution | | :---------------- | :----------------------------------------------------------------------------------------------: | :----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :--------------------------------------------------------------------------------- | | Docstring Coverage | ![Warning](https://storage.googleapis.com/coderabbit_public_assets/pre-merge-checks-warning.svg) | Docstring coverage is 4.35% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 23 functions across 9 files. | Write docstrings for the functions missing them to satisfy the coverage threshold. | <details> <summary><strong><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> Passed checks: 4 passed</strong></summary> <dl> <dd> | Check name | Status | Explanation | | :------------------------ | :--------------------------------------------------------------------------------------------: | :------------------------------------------------------------------------------------------------------------------------------------------------ | | Title check | ![Passed](https://storage.googleapis.com/coderabbit_public_assets/pre-merge-checks-passed.svg) | The title clearly and concisely describes the main change: device-loss reporting through VK_EXT_device_fault and opt-in GPU checkpoints. | | Description check | ![Passed](https://storage.googleapis.com/coderabbit_public_assets/pre-merge-checks-passed.svg) | The description directly explains the device-loss diagnostics, checkpoint behavior, testing, and platform limitations described by the changeset. | | 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. | </dd> </dl> </details> </dd> </dl> </details> <!-- pre_merge_checks_walkthrough_end --> <!-- autopilot:start --> - [ ] <!-- {"checkboxId":"2708ad07-9f24-4260-9c11-7dc76a49f2e3"} --> <strong title="Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts">Autofix</strong> · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts <!-- autopilot:end --> <!-- tips_start --> Thanks for using [CodeRabbit](https://coderabbit.ai?utm_source=oss&utm_medium=github&utm_campaign=KytyPS5/KytyPS5&utm_content=1816)! 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> - [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> <sub>Comment `@coderabbitai help` to get the list of available commands.</sub> <!-- tips_end -->
@ -61,0 +65,4 @@
op == static_cast<uint32_t>(CommandBufferDebugOp::DrawIndexAuto);
const uint64_t pixel_shader =
draw && m_shaders != nullptr ? m_shaders->GetPs().ps_regs.data_addr : 0;
DeviceLossRecordCheckpoint(m_buffer, op, submit_id, arg0, arg1, arg2, arg3, arg4,
Author
Owner

@⁠coderabbitai[bot] on GitHub · 2026-10-22 04:08 UTC · original · edited 2026-10-23 18:56 UTC

🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

🔎 Supported by static analysis

🏁 Script executed:

sed -n '300,365p;485,550p' src/graphics/host_gpu/renderer/renderCompute.cpp
sed -n '55,78p' src/graphics/host_gpu/renderer/context.cpp

Repository: KytyPS5/KytyPS5

Length of output: 7644


🏁 Script executed:

set -o pipefail
printf '%s\n' '--- DispatchDirect/DispatchIndirect declarations and bodies ---'
rg -n -F -- 'DispatchDirect' src/graphics/host_gpu/renderer/renderCompute.cpp
rg -n -F -- 'DispatchIndirect' src/graphics/host_gpu/renderer/renderCompute.cpp
sed -n '250,370p' src/graphics/host_gpu/renderer/renderCompute.cpp
sed -n '455,570p' src/graphics/host_gpu/renderer/renderCompute.cpp
printf '%s\n' '--- checkpoint declaration, implementation, and report consumers ---'
rg -n -F -- 'DeviceLossRecordCheckpoint' src
rg -n -F -- 'DeviceLossAnnotateShader' src
rg -n -F -- 'CommandBufferDebugOp::Dispatch' src/graphics/host_gpu

Repository: KytyPS5/KytyPS5

Length of output: 12928


🏁 Script executed:

set -o pipefail
printf '%s\n' '--- DispatchDirect/DispatchIndirect locations ---'
rg -n -F -- 'DispatchDirect' src/graphics/host_gpu/renderer/renderCompute.cpp
rg -n -F -- 'DispatchIndirect' src/graphics/host_gpu/renderer/renderCompute.cpp
printf '%s\n' '--- direct body ---'
sed -n '250,380p' src/graphics/host_gpu/renderer/renderCompute.cpp
printf '%s\n' '--- indirect body ---'
sed -n '455,575p' src/graphics/host_gpu/renderer/renderCompute.cpp
printf '%s\n' '--- checkpoint definitions and consumers ---'
rg -n -F -- 'DeviceLossRecordCheckpoint' src
rg -n -F -- 'DeviceLossAnnotateShader' src
rg -n -F -- 'CommandBufferDebugOp::Dispatch' src/graphics/host_gpu

Repository: KytyPS5/KytyPS5

Length of output: 13397


🏁 Script executed:

set -o pipefail
sed -n '1,245p' src/graphics/host_gpu/renderer/deviceLossReport.cpp
sed -n '1,45p' src/graphics/host_gpu/renderer/deviceLossReport.h
rg -n -F -- 'vkCmdSetCheckpointNV' src
rg -n -F -- 'GetCheckpoints' src/graphics/host_gpu

Repository: KytyPS5/KytyPS5

Length of output: 10552


🏁 Script executed:

set -o pipefail
printf '%s\n' '--- dispatch callers ---'
rg -n -F -- 'DispatchDirect(' src
rg -n -F -- 'DispatchIndirect(' src
printf '%s\n' '--- CommandBuffer debug metadata consumers ---'
rg -n -F -e 'm_debug_op' -e 'm_debug_submit_id' -e 'm_debug_arg0' -e 'm_debug_arg1' -e 'm_debug_arg2' -e 'm_debug_arg3' -e 'm_debug_arg4' src/graphics/host_gpu

Repository: KytyPS5/KytyPS5

Length of output: 4437


Record dispatch checkpoints only for commands that execute.

RenderExecutor::DispatchDirect and RenderExecutor::DispatchIndirect call SetDebugInfo before skip checks. With checkpoints enabled, this inserts a Vulkan checkpoint before paths that return without encoding the corresponding dispatch. The device-loss report can therefore identify a skipped dispatch as the relevant operation.

Keep the existing debug metadata assignment, but record the dispatch checkpoint only after the dispatch path has passed its skip checks and before the corresponding Vulkan dispatch.

**@⁠coderabbitai[bot]** on GitHub · 2026-10-22 04:08 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/1816#discussion_r4344446325) · edited 2026-10-23 18:56 UTC <!-- coderabbit-ai-generated:v1 --> **🎯 Functional Correctness** | **🟡 Minor** | **⚡ Quick win** <details> <summary>🔎 Supported by static analysis</summary> 🏁 Script executed: ```bash sed -n '300,365p;485,550p' src/graphics/host_gpu/renderer/renderCompute.cpp sed -n '55,78p' src/graphics/host_gpu/renderer/context.cpp ``` Repository: KytyPS5/KytyPS5 Length of output: 7644 --- 🏁 Script executed: ```bash set -o pipefail printf '%s\n' '--- DispatchDirect/DispatchIndirect declarations and bodies ---' rg -n -F -- 'DispatchDirect' src/graphics/host_gpu/renderer/renderCompute.cpp rg -n -F -- 'DispatchIndirect' src/graphics/host_gpu/renderer/renderCompute.cpp sed -n '250,370p' src/graphics/host_gpu/renderer/renderCompute.cpp sed -n '455,570p' src/graphics/host_gpu/renderer/renderCompute.cpp printf '%s\n' '--- checkpoint declaration, implementation, and report consumers ---' rg -n -F -- 'DeviceLossRecordCheckpoint' src rg -n -F -- 'DeviceLossAnnotateShader' src rg -n -F -- 'CommandBufferDebugOp::Dispatch' src/graphics/host_gpu ``` Repository: KytyPS5/KytyPS5 Length of output: 12928 --- 🏁 Script executed: ```bash set -o pipefail printf '%s\n' '--- DispatchDirect/DispatchIndirect locations ---' rg -n -F -- 'DispatchDirect' src/graphics/host_gpu/renderer/renderCompute.cpp rg -n -F -- 'DispatchIndirect' src/graphics/host_gpu/renderer/renderCompute.cpp printf '%s\n' '--- direct body ---' sed -n '250,380p' src/graphics/host_gpu/renderer/renderCompute.cpp printf '%s\n' '--- indirect body ---' sed -n '455,575p' src/graphics/host_gpu/renderer/renderCompute.cpp printf '%s\n' '--- checkpoint definitions and consumers ---' rg -n -F -- 'DeviceLossRecordCheckpoint' src rg -n -F -- 'DeviceLossAnnotateShader' src rg -n -F -- 'CommandBufferDebugOp::Dispatch' src/graphics/host_gpu ``` Repository: KytyPS5/KytyPS5 Length of output: 13397 --- 🏁 Script executed: ```bash set -o pipefail sed -n '1,245p' src/graphics/host_gpu/renderer/deviceLossReport.cpp sed -n '1,45p' src/graphics/host_gpu/renderer/deviceLossReport.h rg -n -F -- 'vkCmdSetCheckpointNV' src rg -n -F -- 'GetCheckpoints' src/graphics/host_gpu ``` Repository: KytyPS5/KytyPS5 Length of output: 10552 --- 🏁 Script executed: ```bash set -o pipefail printf '%s\n' '--- dispatch callers ---' rg -n -F -- 'DispatchDirect(' src rg -n -F -- 'DispatchIndirect(' src printf '%s\n' '--- CommandBuffer debug metadata consumers ---' rg -n -F -e 'm_debug_op' -e 'm_debug_submit_id' -e 'm_debug_arg0' -e 'm_debug_arg1' -e 'm_debug_arg2' -e 'm_debug_arg3' -e 'm_debug_arg4' src/graphics/host_gpu ``` Repository: KytyPS5/KytyPS5 Length of output: 4437 --- </details> **Record dispatch checkpoints only for commands that execute.** `RenderExecutor::DispatchDirect` and `RenderExecutor::DispatchIndirect` call `SetDebugInfo` before skip checks. With checkpoints enabled, this inserts a Vulkan checkpoint before paths that return without encoding the corresponding dispatch. The device-loss report can therefore identify a skipped dispatch as the relevant operation. Keep the existing debug metadata assignment, but record the dispatch checkpoint only after the dispatch path has passed its skip checks and before the corresponding Vulkan dispatch. <!-- fingerprinting:phantom:medusa:wombat --> <!-- cr-indicator-types:potential_issue --> <!-- cr-comment:v1:e73d18beadf946d1f81f63e4 --> <!-- This is an auto-generated reply by CodeRabbit -->
Author
Owner

@⁠coderabbitai[bot] on GitHub · 2026-10-22 04:08 UTC · original · edited 2026-10-23 18:55 UTC
On src/graphics/host_gpu/renderer/deviceLossReport.cpp line 191 (outdated):

@@ -0,0 +1,251 @@
+#include "graphics/host_gpu/renderer/deviceLossReport.h"
+
+#include "common/logging/log.h"
+#include "graphics/host_gpu/graphicContext.h"
+#include "graphics/host_gpu/renderer/render.h"
+
+#include <algorithm>
+#include <cstdlib>
+#include <cstring>
+#include <mutex>
+#include <string>
+#include <vector>
+
+namespace Libs::Graphics {
+
+namespace {
+
+struct Checkpoint {
+	uint64_t sequence     = 0;
+	uint64_t submit_id    = 0;
+	uint64_t arg4         = 0;
+	uint64_t pixel_shader = 0;
+	uint64_t shader_hash  = 0;
+	uint32_t op           = 0;
+	uint32_t arg0         = 0;
+	uint32_t arg1         = 0;
+	uint32_t arg2         = 0;
+	uint32_t arg3         = 0;
+};
+
+// A checkpoint marker is its sequence number; the ring keeps the most recent checkpoints.
+constexpr uint64_t CheckpointRingSize     = 16384;
+constexpr uint64_t MaxReportedCheckpoints = 32;
+
+constexpr uint32_t MaxReportedAddresses = 8;
+
+std::mutex              g_checkpoint_mutex;
+std::vector<Checkpoint> g_checkpoints;
+uint64_t                g_checkpoint_sequence = 0;
+// Several threads can see the loss at once. The report holds this lock, so the others wait for it
+// before their EXIT ends the process.
+std::mutex g_report_mutex;
+bool       g_reported = false;
+
+void Write(const std::string& text) {
+	Log::WriteToConsoleAndLog(text);
+}
+
+std::string DescribeCheckpoint(const Checkpoint& checkpoint) {
+	switch (static_cast<CommandBufferDebugOp>(checkpoint.op)) {
+		case CommandBufferDebugOp::DispatchDirect:
+			return fmt::format("DispatchDirect submit={} groups={}x{}x{} mode=0x{:08x} "
+			                   "cs=0x{:016x} hash=0x{:016x}",
+			                   checkpoint.submit_id, checkpoint.arg0, checkpoint.arg1,
+			                   checkpoint.arg2, checkpoint.arg3, checkpoint.arg4,
+			                   checkpoint.shader_hash);
+		case CommandBufferDebugOp::DispatchIndirect:
+			return fmt::format(
+			    "DispatchIndirect submit={} args=0x{:x} mode=0x{:08x} cs=0x{:016x} hash=0x{:016x}",
+			    checkpoint.submit_id, (uint64_t {checkpoint.arg1} << 32u) | checkpoint.arg0,
+			    checkpoint.arg3, checkpoint.arg4, checkpoint.shader_hash);
+		case CommandBufferDebugOp::DrawIndex:
+		case CommandBufferDebugOp::DrawIndexAuto:
+			return fmt::format(
+			    "{} submit={} args={},{},{},{},0x{:x} ps=0x{:016x}",
+			    static_cast<CommandBufferDebugOp>(checkpoint.op) == CommandBufferDebugOp::DrawIndex
+			        ? "DrawIndex"
+			        : "DrawIndexAuto",
+			    checkpoint.submit_id, checkpoint.arg0, checkpoint.arg1, checkpoint.arg2,
+			    checkpoint.arg3, checkpoint.arg4, checkpoint.pixel_shader);
+		default:
+			return fmt::format("op={} submit={} args={},{},{},{},0x{:x}", checkpoint.op,
+			                   checkpoint.submit_id, checkpoint.arg0, checkpoint.arg1,
+			                   checkpoint.arg2, checkpoint.arg3, checkpoint.arg4);
+	}
+}
+
+void ReportFaultInfo(vk::Device device) {
+	vk::DeviceFaultCountsEXT counts {};
+	auto                     result = device.getFaultInfoEXT(&counts, nullptr);
+	if (result != vk::Result::eSuccess) {
+		Write(fmt::format("VK_EXT_device_fault: vkGetDeviceFaultInfoEXT failed: {}\n",
+		                  vk::to_string(result)));
+		return;
+	}
+
+	std::vector<vk::DeviceFaultAddressInfoEXT> addresses(counts.addressInfoCount);
+	std::vector<vk::DeviceFaultVendorInfoEXT>  vendors(counts.vendorInfoCount);
+	counts.vendorBinarySize = 0;
+
+	vk::DeviceFaultInfoEXT info {};
+	info.pAddressInfos = addresses.data();
+	info.pVendorInfos  = vendors.data();
+	result             = device.getFaultInfoEXT(&counts, &info);
+	if (result != vk::Result::eSuccess && result != vk::Result::eIncomplete) {
+		Write(fmt::format("VK_EXT_device_fault: vkGetDeviceFaultInfoEXT failed: {}\n",
+		                  vk::to_string(result)));
+		return;
+	}
+
+	const char* description = info.description.data();
+	Write(fmt::format("VK_EXT_device_fault: \"{}\", {} address records, {} vendor records\n",
+	                  description, counts.addressInfoCount, counts.vendorInfoCount));
+	for (uint32_t i = 0; i < std::min(counts.addressInfoCount, MaxReportedAddresses); i++) {
+		const auto& address = addresses[i];
+		// The reported address is only accurate to addressPrecision, a power of two.
+		const auto precision = std::max<vk::DeviceSize>(address.addressPrecision, 1);
+		const auto begin     = address.reportedAddress & ~(precision - 1);
+		Write(fmt::format("  address[{}]: {} reported=0x{:016x} range=[0x{:016x}, 0x{:016x})\n", i,
+		                  vk::to_string(address.addressType), address.reportedAddress, begin,
+		                  begin + precision));
+	}
+	if (counts.addressInfoCount > MaxReportedAddresses) {
+		// Many records of one type usually come from the waves of one stuck shader.
+		std::vector<vk::DeviceFaultAddressTypeEXT> types;
+		for (const auto& address: addresses) {
+			if (std::ranges::find(types, address.addressType) == types.end()) {
+				types.push_back(address.addressType);
+			}
+		}
+		for (const auto type: types) {
+			uint32_t       count = 0;
+			vk::DeviceSize low   = UINT64_MAX;
+			vk::DeviceSize high  = 0;
+			for (const auto& address: addresses) {
+				if (address.addressType == type) {
+					count++;
+					low  = std::min(low, address.reportedAddress);
+					high = std::max(high, address.reportedAddress);
+				}
+			}
+			Write(fmt::format("  all {}: {} records, 0x{:016x}..0x{:016x}\n", vk::to_string(type),
+			                  count, low, high));
+		}
+	}
+	for (uint32_t i = 0; i < counts.vendorInfoCount; i++) {
+		const auto& vendor = vendors[i];
+		Write(fmt::format("  vendor[{}]: {} code=0x{:016x} data=0x{:016x}\n", i,
+		                  vendor.description.data(), vendor.vendorFaultCode,
+		                  vendor.vendorFaultData));
+	}
+}
+
+void ReportCheckpoints(vk::Queue queue) {
+	uint32_t count = 0;
+	queue.getCheckpointDataNV(&count, nullptr);
+	std::vector<vk::CheckpointDataNV> data(count);
+	queue.getCheckpointDataNV(&count, data.data());
+	data.resize(count);
+	if (data.empty()) {
+		Write("GPU checkpoints: the driver reported none\n");
+		return;
+	}
+
+	// Each record is the last checkpoint that reached its stage. The operation that did not
+	// finish follows the bottom-of-pipe checkpoint; work up to the top-of-pipe one had started.
+	uint64_t first = UINT64_MAX;
+	uint64_t last  = 0;
+	for (const auto& record: data) {
+		const auto sequence = reinterpret_cast<uint64_t>(record.pCheckpointMarker);
+		Write(fmt::format("GPU checkpoint: stage={} checkpoint={}\n", vk::to_string(record.stage),
+		                  sequence));
+		first = std::min(first, sequence);
+		last  = std::max(last, sequence);
+	}
+
+	std::scoped_lock lock(g_checkpoint_mutex);
+	if (g_checkpoints.empty()) {
+		return;
+	}
+	const auto oldest = g_checkpoint_sequence > CheckpointRingSize
+	                        ? g_checkpoint_sequence - CheckpointRingSize + 1
+	                        : uint64_t {1};
+	first             = std::max(first, oldest);
+	last              = std::min({last, g_checkpoint_sequence, first + MaxReportedCheckpoints - 1});
+	Write(fmt::format("GPU checkpoints {}..{} of {} recorded:\n", first, last,
+	                  g_checkpoint_sequence));
+	for (uint64_t sequence = first; sequence <= last; sequence++) {
+		const auto& checkpoint = g_checkpoints[sequence % CheckpointRingSize];
+		if (checkpoint.sequence == sequence) {
+			Write(fmt::format("  [{}] {}\n", sequence, DescribeCheckpoint(checkpoint)));
+		}
+	}
+}
+
+} // namespace
+
+bool DeviceLossCheckpointsRequested() {
+	static const bool requested = [] {
+		const char* env = std::getenv("KYTY_GPU_CHECKPOINTS");
+		return env != nullptr && std::strcmp(env, "0") != 0;

🚀 Performance & Scalability | 🟡 Minor | ⚡ Quick win

🔎 Supported by static analysis

🏁 Script executed:

rg -n 'KYTY_GPU_CHECKPOINTS|DeviceLossCheckpointsRequested|device_checkpoints_enabled' src README* docs 2>/dev/null
sed -n '182,225p' src/graphics/host_gpu/renderer/deviceLossReport.cpp
sed -n '500,540p;1070,1095p' src/graphics/presentation/window/vulkanWindow.cpp

Repository: KytyPS5/KytyPS5

Length of output: 6805


Enable checkpoints only for the documented opt-in value.

KYTY_GPU_CHECKPOINTS= and KYTY_GPU_CHECKPOINTS=false enable checkpoint extension loading and per-operation checkpoint recording because the function accepts every non-null value except "0". Accept "1" explicitly so an empty or false-valued optional setting does not enable the checkpoint path.

✅ Addressed in commit 37743a3

**@⁠coderabbitai[bot]** on GitHub · 2026-10-22 04:08 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/1816#discussion_r4344446333) · edited 2026-10-23 18:55 UTC On `src/graphics/host_gpu/renderer/deviceLossReport.cpp` line 191 (outdated): ```diff @@ -0,0 +1,251 @@ +#include "graphics/host_gpu/renderer/deviceLossReport.h" + +#include "common/logging/log.h" +#include "graphics/host_gpu/graphicContext.h" +#include "graphics/host_gpu/renderer/render.h" + +#include <algorithm> +#include <cstdlib> +#include <cstring> +#include <mutex> +#include <string> +#include <vector> + +namespace Libs::Graphics { + +namespace { + +struct Checkpoint { + uint64_t sequence = 0; + uint64_t submit_id = 0; + uint64_t arg4 = 0; + uint64_t pixel_shader = 0; + uint64_t shader_hash = 0; + uint32_t op = 0; + uint32_t arg0 = 0; + uint32_t arg1 = 0; + uint32_t arg2 = 0; + uint32_t arg3 = 0; +}; + +// A checkpoint marker is its sequence number; the ring keeps the most recent checkpoints. +constexpr uint64_t CheckpointRingSize = 16384; +constexpr uint64_t MaxReportedCheckpoints = 32; + +constexpr uint32_t MaxReportedAddresses = 8; + +std::mutex g_checkpoint_mutex; +std::vector<Checkpoint> g_checkpoints; +uint64_t g_checkpoint_sequence = 0; +// Several threads can see the loss at once. The report holds this lock, so the others wait for it +// before their EXIT ends the process. +std::mutex g_report_mutex; +bool g_reported = false; + +void Write(const std::string& text) { + Log::WriteToConsoleAndLog(text); +} + +std::string DescribeCheckpoint(const Checkpoint& checkpoint) { + switch (static_cast<CommandBufferDebugOp>(checkpoint.op)) { + case CommandBufferDebugOp::DispatchDirect: + return fmt::format("DispatchDirect submit={} groups={}x{}x{} mode=0x{:08x} " + "cs=0x{:016x} hash=0x{:016x}", + checkpoint.submit_id, checkpoint.arg0, checkpoint.arg1, + checkpoint.arg2, checkpoint.arg3, checkpoint.arg4, + checkpoint.shader_hash); + case CommandBufferDebugOp::DispatchIndirect: + return fmt::format( + "DispatchIndirect submit={} args=0x{:x} mode=0x{:08x} cs=0x{:016x} hash=0x{:016x}", + checkpoint.submit_id, (uint64_t {checkpoint.arg1} << 32u) | checkpoint.arg0, + checkpoint.arg3, checkpoint.arg4, checkpoint.shader_hash); + case CommandBufferDebugOp::DrawIndex: + case CommandBufferDebugOp::DrawIndexAuto: + return fmt::format( + "{} submit={} args={},{},{},{},0x{:x} ps=0x{:016x}", + static_cast<CommandBufferDebugOp>(checkpoint.op) == CommandBufferDebugOp::DrawIndex + ? "DrawIndex" + : "DrawIndexAuto", + checkpoint.submit_id, checkpoint.arg0, checkpoint.arg1, checkpoint.arg2, + checkpoint.arg3, checkpoint.arg4, checkpoint.pixel_shader); + default: + return fmt::format("op={} submit={} args={},{},{},{},0x{:x}", checkpoint.op, + checkpoint.submit_id, checkpoint.arg0, checkpoint.arg1, + checkpoint.arg2, checkpoint.arg3, checkpoint.arg4); + } +} + +void ReportFaultInfo(vk::Device device) { + vk::DeviceFaultCountsEXT counts {}; + auto result = device.getFaultInfoEXT(&counts, nullptr); + if (result != vk::Result::eSuccess) { + Write(fmt::format("VK_EXT_device_fault: vkGetDeviceFaultInfoEXT failed: {}\n", + vk::to_string(result))); + return; + } + + std::vector<vk::DeviceFaultAddressInfoEXT> addresses(counts.addressInfoCount); + std::vector<vk::DeviceFaultVendorInfoEXT> vendors(counts.vendorInfoCount); + counts.vendorBinarySize = 0; + + vk::DeviceFaultInfoEXT info {}; + info.pAddressInfos = addresses.data(); + info.pVendorInfos = vendors.data(); + result = device.getFaultInfoEXT(&counts, &info); + if (result != vk::Result::eSuccess && result != vk::Result::eIncomplete) { + Write(fmt::format("VK_EXT_device_fault: vkGetDeviceFaultInfoEXT failed: {}\n", + vk::to_string(result))); + return; + } + + const char* description = info.description.data(); + Write(fmt::format("VK_EXT_device_fault: \"{}\", {} address records, {} vendor records\n", + description, counts.addressInfoCount, counts.vendorInfoCount)); + for (uint32_t i = 0; i < std::min(counts.addressInfoCount, MaxReportedAddresses); i++) { + const auto& address = addresses[i]; + // The reported address is only accurate to addressPrecision, a power of two. + const auto precision = std::max<vk::DeviceSize>(address.addressPrecision, 1); + const auto begin = address.reportedAddress & ~(precision - 1); + Write(fmt::format(" address[{}]: {} reported=0x{:016x} range=[0x{:016x}, 0x{:016x})\n", i, + vk::to_string(address.addressType), address.reportedAddress, begin, + begin + precision)); + } + if (counts.addressInfoCount > MaxReportedAddresses) { + // Many records of one type usually come from the waves of one stuck shader. + std::vector<vk::DeviceFaultAddressTypeEXT> types; + for (const auto& address: addresses) { + if (std::ranges::find(types, address.addressType) == types.end()) { + types.push_back(address.addressType); + } + } + for (const auto type: types) { + uint32_t count = 0; + vk::DeviceSize low = UINT64_MAX; + vk::DeviceSize high = 0; + for (const auto& address: addresses) { + if (address.addressType == type) { + count++; + low = std::min(low, address.reportedAddress); + high = std::max(high, address.reportedAddress); + } + } + Write(fmt::format(" all {}: {} records, 0x{:016x}..0x{:016x}\n", vk::to_string(type), + count, low, high)); + } + } + for (uint32_t i = 0; i < counts.vendorInfoCount; i++) { + const auto& vendor = vendors[i]; + Write(fmt::format(" vendor[{}]: {} code=0x{:016x} data=0x{:016x}\n", i, + vendor.description.data(), vendor.vendorFaultCode, + vendor.vendorFaultData)); + } +} + +void ReportCheckpoints(vk::Queue queue) { + uint32_t count = 0; + queue.getCheckpointDataNV(&count, nullptr); + std::vector<vk::CheckpointDataNV> data(count); + queue.getCheckpointDataNV(&count, data.data()); + data.resize(count); + if (data.empty()) { + Write("GPU checkpoints: the driver reported none\n"); + return; + } + + // Each record is the last checkpoint that reached its stage. The operation that did not + // finish follows the bottom-of-pipe checkpoint; work up to the top-of-pipe one had started. + uint64_t first = UINT64_MAX; + uint64_t last = 0; + for (const auto& record: data) { + const auto sequence = reinterpret_cast<uint64_t>(record.pCheckpointMarker); + Write(fmt::format("GPU checkpoint: stage={} checkpoint={}\n", vk::to_string(record.stage), + sequence)); + first = std::min(first, sequence); + last = std::max(last, sequence); + } + + std::scoped_lock lock(g_checkpoint_mutex); + if (g_checkpoints.empty()) { + return; + } + const auto oldest = g_checkpoint_sequence > CheckpointRingSize + ? g_checkpoint_sequence - CheckpointRingSize + 1 + : uint64_t {1}; + first = std::max(first, oldest); + last = std::min({last, g_checkpoint_sequence, first + MaxReportedCheckpoints - 1}); + Write(fmt::format("GPU checkpoints {}..{} of {} recorded:\n", first, last, + g_checkpoint_sequence)); + for (uint64_t sequence = first; sequence <= last; sequence++) { + const auto& checkpoint = g_checkpoints[sequence % CheckpointRingSize]; + if (checkpoint.sequence == sequence) { + Write(fmt::format(" [{}] {}\n", sequence, DescribeCheckpoint(checkpoint))); + } + } +} + +} // namespace + +bool DeviceLossCheckpointsRequested() { + static const bool requested = [] { + const char* env = std::getenv("KYTY_GPU_CHECKPOINTS"); + return env != nullptr && std::strcmp(env, "0") != 0; ``` <!-- coderabbit-ai-generated:v1 --> **🚀 Performance & Scalability** | **🟡 Minor** | **⚡ Quick win** <details> <summary>🔎 Supported by static analysis</summary> 🏁 Script executed: ```bash rg -n 'KYTY_GPU_CHECKPOINTS|DeviceLossCheckpointsRequested|device_checkpoints_enabled' src README* docs 2>/dev/null sed -n '182,225p' src/graphics/host_gpu/renderer/deviceLossReport.cpp sed -n '500,540p;1070,1095p' src/graphics/presentation/window/vulkanWindow.cpp ``` Repository: KytyPS5/KytyPS5 Length of output: 6805 --- </details> **Enable checkpoints only for the documented opt-in value.** `KYTY_GPU_CHECKPOINTS=` and `KYTY_GPU_CHECKPOINTS=false` enable checkpoint extension loading and per-operation checkpoint recording because the function accepts every non-null value except `"0"`. Accept `"1"` explicitly so an empty or false-valued optional setting does not enable the checkpoint path. <!-- fingerprinting:phantom:medusa:wombat --> <!-- cr-indicator-types:potential_issue --> <!-- cr-comment:v1:e67e40e488bf9069e201caee --> <!-- This is an auto-generated reply by CodeRabbit --> ✅ Addressed in commit 37743a3
Author
Owner

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

Actionable comments posted: 2


ℹ️ Review info
⚙️ Run configuration
  • Configuration used: Repository: KytyPS5/KytyPS5/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 639dc8ab-623d-49e0-b359-7cf2afd4a547
📥 Commits

Reviewing files that changed from the base of the PR and between c5016d9455 and e2b2e17c0f8051b09cc637be537c1ea3b7070d9e.

📒 Files selected for processing: 9
  • src/graphics/host_gpu/graphicContext.h
  • src/graphics/host_gpu/renderer/commandScheduler.cpp
  • src/graphics/host_gpu/renderer/context.cpp
  • src/graphics/host_gpu/renderer/deviceLossReport.cpp
  • src/graphics/host_gpu/renderer/deviceLossReport.h
  • src/graphics/host_gpu/renderer/masterSemaphore.cpp
  • src/graphics/host_gpu/renderer/masterSemaphore.h
  • src/graphics/host_gpu/renderer/renderCompute.cpp
  • src/graphics/presentation/window/vulkanWindow.cpp

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

**@⁠coderabbitai[bot]** on GitHub · 2026-10-22 04:08 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/1816#pullrequestreview-5609142189) · **reviewed** <!-- coderabbit-ai-generated:v1 --> **Actionable comments posted: 2** --- <details> <summary>ℹ️ Review info</summary> <details> <summary>⚙️ Run configuration</summary> - **Configuration used**: Repository: KytyPS5/KytyPS5/.coderabbit.yaml - **Review profile**: CHILL - **Plan**: Advanced - **Run ID**: `639dc8ab-623d-49e0-b359-7cf2afd4a547` </details> <details> <summary>📥 Commits</summary> Reviewing files that changed from the base of the PR and between c5016d9455fe52bdd090cef7d80beb15fad6a3a5 and e2b2e17c0f8051b09cc637be537c1ea3b7070d9e. </details> <details> <summary>📒 Files selected for processing: 9</summary> * `src/graphics/host_gpu/graphicContext.h` * `src/graphics/host_gpu/renderer/commandScheduler.cpp` * `src/graphics/host_gpu/renderer/context.cpp` * `src/graphics/host_gpu/renderer/deviceLossReport.cpp` * `src/graphics/host_gpu/renderer/deviceLossReport.h` * `src/graphics/host_gpu/renderer/masterSemaphore.cpp` * `src/graphics/host_gpu/renderer/masterSemaphore.h` * `src/graphics/host_gpu/renderer/renderCompute.cpp` * `src/graphics/presentation/window/vulkanWindow.cpp` </details> **Included review availability:** This review used your included allowance. Your plan provides up to 8 included reviews per hour; 7 remain after this review. </details> <!-- This is an auto-generated comment by CodeRabbit for review status --> <!-- coderabbit-review-publication v1 publication=657a2eba-8446-4a50-b8dc-af6f333009d6 attempt=5e074ca2-2b64-43f1-8346-3c8759cfb89d batch=1/1 -->
@ -61,0 +65,4 @@
op == static_cast<uint32_t>(CommandBufferDebugOp::DrawIndexAuto);
const uint64_t pixel_shader =
draw && m_shaders != nullptr ? m_shaders->GetPs().ps_regs.data_addr : 0;
DeviceLossRecordCheckpoint(m_buffer, op, submit_id, arg0, arg1, arg2, arg3, arg4,
Author
Owner

@⁠ZrDaniel07 on GitHub · 2026-10-23 18:44 UTC · original

A skipped dispatch records a checkpoint but no work after it, so it doesn't get blamed: the next checkpoint follows with nothing in between, and it reaches bottom-of-pipe as soon as the earlier work does. The report starts at the bottom-of-pipe checkpoint, so it names the next operation that has work. Where the same checkpoint is the last at both top- and bottom-of-pipe, the operation after it had work. A dispatch replaced by a clear or fill still names the place where that work ran. I've left it as is; moving the checkpoint to every point that emits a dispatch would spread it over many call sites.

**@⁠ZrDaniel07** on GitHub · 2026-10-23 18:44 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/1816#discussion_r4363098116) A skipped dispatch records a checkpoint but no work after it, so it doesn't get blamed: the next checkpoint follows with nothing in between, and it reaches bottom-of-pipe as soon as the earlier work does. The report starts at the bottom-of-pipe checkpoint, so it names the next operation that has work. Where the same checkpoint is the last at both top- and bottom-of-pipe, the operation after it had work. A dispatch replaced by a clear or fill still names the place where that work ran. I've left it as is; moving the checkpoint to every point that emits a dispatch would spread it over many call sites.
Author
Owner

@⁠ZrDaniel07 on GitHub · 2026-10-23 18:44 UTC · original
On src/graphics/host_gpu/renderer/deviceLossReport.cpp line 191 (outdated):

@@ -0,0 +1,251 @@
+#include "graphics/host_gpu/renderer/deviceLossReport.h"
+
+#include "common/logging/log.h"
+#include "graphics/host_gpu/graphicContext.h"
+#include "graphics/host_gpu/renderer/render.h"
+
+#include <algorithm>
+#include <cstdlib>
+#include <cstring>
+#include <mutex>
+#include <string>
+#include <vector>
+
+namespace Libs::Graphics {
+
+namespace {
+
+struct Checkpoint {
+	uint64_t sequence     = 0;
+	uint64_t submit_id    = 0;
+	uint64_t arg4         = 0;
+	uint64_t pixel_shader = 0;
+	uint64_t shader_hash  = 0;
+	uint32_t op           = 0;
+	uint32_t arg0         = 0;
+	uint32_t arg1         = 0;
+	uint32_t arg2         = 0;
+	uint32_t arg3         = 0;
+};
+
+// A checkpoint marker is its sequence number; the ring keeps the most recent checkpoints.
+constexpr uint64_t CheckpointRingSize     = 16384;
+constexpr uint64_t MaxReportedCheckpoints = 32;
+
+constexpr uint32_t MaxReportedAddresses = 8;
+
+std::mutex              g_checkpoint_mutex;
+std::vector<Checkpoint> g_checkpoints;
+uint64_t                g_checkpoint_sequence = 0;
+// Several threads can see the loss at once. The report holds this lock, so the others wait for it
+// before their EXIT ends the process.
+std::mutex g_report_mutex;
+bool       g_reported = false;
+
+void Write(const std::string& text) {
+	Log::WriteToConsoleAndLog(text);
+}
+
+std::string DescribeCheckpoint(const Checkpoint& checkpoint) {
+	switch (static_cast<CommandBufferDebugOp>(checkpoint.op)) {
+		case CommandBufferDebugOp::DispatchDirect:
+			return fmt::format("DispatchDirect submit={} groups={}x{}x{} mode=0x{:08x} "
+			                   "cs=0x{:016x} hash=0x{:016x}",
+			                   checkpoint.submit_id, checkpoint.arg0, checkpoint.arg1,
+			                   checkpoint.arg2, checkpoint.arg3, checkpoint.arg4,
+			                   checkpoint.shader_hash);
+		case CommandBufferDebugOp::DispatchIndirect:
+			return fmt::format(
+			    "DispatchIndirect submit={} args=0x{:x} mode=0x{:08x} cs=0x{:016x} hash=0x{:016x}",
+			    checkpoint.submit_id, (uint64_t {checkpoint.arg1} << 32u) | checkpoint.arg0,
+			    checkpoint.arg3, checkpoint.arg4, checkpoint.shader_hash);
+		case CommandBufferDebugOp::DrawIndex:
+		case CommandBufferDebugOp::DrawIndexAuto:
+			return fmt::format(
+			    "{} submit={} args={},{},{},{},0x{:x} ps=0x{:016x}",
+			    static_cast<CommandBufferDebugOp>(checkpoint.op) == CommandBufferDebugOp::DrawIndex
+			        ? "DrawIndex"
+			        : "DrawIndexAuto",
+			    checkpoint.submit_id, checkpoint.arg0, checkpoint.arg1, checkpoint.arg2,
+			    checkpoint.arg3, checkpoint.arg4, checkpoint.pixel_shader);
+		default:
+			return fmt::format("op={} submit={} args={},{},{},{},0x{:x}", checkpoint.op,
+			                   checkpoint.submit_id, checkpoint.arg0, checkpoint.arg1,
+			                   checkpoint.arg2, checkpoint.arg3, checkpoint.arg4);
+	}
+}
+
+void ReportFaultInfo(vk::Device device) {
+	vk::DeviceFaultCountsEXT counts {};
+	auto                     result = device.getFaultInfoEXT(&counts, nullptr);
+	if (result != vk::Result::eSuccess) {
+		Write(fmt::format("VK_EXT_device_fault: vkGetDeviceFaultInfoEXT failed: {}\n",
+		                  vk::to_string(result)));
+		return;
+	}
+
+	std::vector<vk::DeviceFaultAddressInfoEXT> addresses(counts.addressInfoCount);
+	std::vector<vk::DeviceFaultVendorInfoEXT>  vendors(counts.vendorInfoCount);
+	counts.vendorBinarySize = 0;
+
+	vk::DeviceFaultInfoEXT info {};
+	info.pAddressInfos = addresses.data();
+	info.pVendorInfos  = vendors.data();
+	result             = device.getFaultInfoEXT(&counts, &info);
+	if (result != vk::Result::eSuccess && result != vk::Result::eIncomplete) {
+		Write(fmt::format("VK_EXT_device_fault: vkGetDeviceFaultInfoEXT failed: {}\n",
+		                  vk::to_string(result)));
+		return;
+	}
+
+	const char* description = info.description.data();
+	Write(fmt::format("VK_EXT_device_fault: \"{}\", {} address records, {} vendor records\n",
+	                  description, counts.addressInfoCount, counts.vendorInfoCount));
+	for (uint32_t i = 0; i < std::min(counts.addressInfoCount, MaxReportedAddresses); i++) {
+		const auto& address = addresses[i];
+		// The reported address is only accurate to addressPrecision, a power of two.
+		const auto precision = std::max<vk::DeviceSize>(address.addressPrecision, 1);
+		const auto begin     = address.reportedAddress & ~(precision - 1);
+		Write(fmt::format("  address[{}]: {} reported=0x{:016x} range=[0x{:016x}, 0x{:016x})\n", i,
+		                  vk::to_string(address.addressType), address.reportedAddress, begin,
+		                  begin + precision));
+	}
+	if (counts.addressInfoCount > MaxReportedAddresses) {
+		// Many records of one type usually come from the waves of one stuck shader.
+		std::vector<vk::DeviceFaultAddressTypeEXT> types;
+		for (const auto& address: addresses) {
+			if (std::ranges::find(types, address.addressType) == types.end()) {
+				types.push_back(address.addressType);
+			}
+		}
+		for (const auto type: types) {
+			uint32_t       count = 0;
+			vk::DeviceSize low   = UINT64_MAX;
+			vk::DeviceSize high  = 0;
+			for (const auto& address: addresses) {
+				if (address.addressType == type) {
+					count++;
+					low  = std::min(low, address.reportedAddress);
+					high = std::max(high, address.reportedAddress);
+				}
+			}
+			Write(fmt::format("  all {}: {} records, 0x{:016x}..0x{:016x}\n", vk::to_string(type),
+			                  count, low, high));
+		}
+	}
+	for (uint32_t i = 0; i < counts.vendorInfoCount; i++) {
+		const auto& vendor = vendors[i];
+		Write(fmt::format("  vendor[{}]: {} code=0x{:016x} data=0x{:016x}\n", i,
+		                  vendor.description.data(), vendor.vendorFaultCode,
+		                  vendor.vendorFaultData));
+	}
+}
+
+void ReportCheckpoints(vk::Queue queue) {
+	uint32_t count = 0;
+	queue.getCheckpointDataNV(&count, nullptr);
+	std::vector<vk::CheckpointDataNV> data(count);
+	queue.getCheckpointDataNV(&count, data.data());
+	data.resize(count);
+	if (data.empty()) {
+		Write("GPU checkpoints: the driver reported none\n");
+		return;
+	}
+
+	// Each record is the last checkpoint that reached its stage. The operation that did not
+	// finish follows the bottom-of-pipe checkpoint; work up to the top-of-pipe one had started.
+	uint64_t first = UINT64_MAX;
+	uint64_t last  = 0;
+	for (const auto& record: data) {
+		const auto sequence = reinterpret_cast<uint64_t>(record.pCheckpointMarker);
+		Write(fmt::format("GPU checkpoint: stage={} checkpoint={}\n", vk::to_string(record.stage),
+		                  sequence));
+		first = std::min(first, sequence);
+		last  = std::max(last, sequence);
+	}
+
+	std::scoped_lock lock(g_checkpoint_mutex);
+	if (g_checkpoints.empty()) {
+		return;
+	}
+	const auto oldest = g_checkpoint_sequence > CheckpointRingSize
+	                        ? g_checkpoint_sequence - CheckpointRingSize + 1
+	                        : uint64_t {1};
+	first             = std::max(first, oldest);
+	last              = std::min({last, g_checkpoint_sequence, first + MaxReportedCheckpoints - 1});
+	Write(fmt::format("GPU checkpoints {}..{} of {} recorded:\n", first, last,
+	                  g_checkpoint_sequence));
+	for (uint64_t sequence = first; sequence <= last; sequence++) {
+		const auto& checkpoint = g_checkpoints[sequence % CheckpointRingSize];
+		if (checkpoint.sequence == sequence) {
+			Write(fmt::format("  [{}] {}\n", sequence, DescribeCheckpoint(checkpoint)));
+		}
+	}
+}
+
+} // namespace
+
+bool DeviceLossCheckpointsRequested() {
+	static const bool requested = [] {
+		const char* env = std::getenv("KYTY_GPU_CHECKPOINTS");
+		return env != nullptr && std::strcmp(env, "0") != 0;

Fixed in 37743a3: only KYTY_GPU_CHECKPOINTS=1 enables checkpoints now. Trailing spaces are ignored, since cmd keeps the one before && in set KYTY_GPU_CHECKPOINTS=1 && ....

**@⁠ZrDaniel07** on GitHub · 2026-10-23 18:44 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/1816#discussion_r4363098401) On `src/graphics/host_gpu/renderer/deviceLossReport.cpp` line 191 (outdated): ```diff @@ -0,0 +1,251 @@ +#include "graphics/host_gpu/renderer/deviceLossReport.h" + +#include "common/logging/log.h" +#include "graphics/host_gpu/graphicContext.h" +#include "graphics/host_gpu/renderer/render.h" + +#include <algorithm> +#include <cstdlib> +#include <cstring> +#include <mutex> +#include <string> +#include <vector> + +namespace Libs::Graphics { + +namespace { + +struct Checkpoint { + uint64_t sequence = 0; + uint64_t submit_id = 0; + uint64_t arg4 = 0; + uint64_t pixel_shader = 0; + uint64_t shader_hash = 0; + uint32_t op = 0; + uint32_t arg0 = 0; + uint32_t arg1 = 0; + uint32_t arg2 = 0; + uint32_t arg3 = 0; +}; + +// A checkpoint marker is its sequence number; the ring keeps the most recent checkpoints. +constexpr uint64_t CheckpointRingSize = 16384; +constexpr uint64_t MaxReportedCheckpoints = 32; + +constexpr uint32_t MaxReportedAddresses = 8; + +std::mutex g_checkpoint_mutex; +std::vector<Checkpoint> g_checkpoints; +uint64_t g_checkpoint_sequence = 0; +// Several threads can see the loss at once. The report holds this lock, so the others wait for it +// before their EXIT ends the process. +std::mutex g_report_mutex; +bool g_reported = false; + +void Write(const std::string& text) { + Log::WriteToConsoleAndLog(text); +} + +std::string DescribeCheckpoint(const Checkpoint& checkpoint) { + switch (static_cast<CommandBufferDebugOp>(checkpoint.op)) { + case CommandBufferDebugOp::DispatchDirect: + return fmt::format("DispatchDirect submit={} groups={}x{}x{} mode=0x{:08x} " + "cs=0x{:016x} hash=0x{:016x}", + checkpoint.submit_id, checkpoint.arg0, checkpoint.arg1, + checkpoint.arg2, checkpoint.arg3, checkpoint.arg4, + checkpoint.shader_hash); + case CommandBufferDebugOp::DispatchIndirect: + return fmt::format( + "DispatchIndirect submit={} args=0x{:x} mode=0x{:08x} cs=0x{:016x} hash=0x{:016x}", + checkpoint.submit_id, (uint64_t {checkpoint.arg1} << 32u) | checkpoint.arg0, + checkpoint.arg3, checkpoint.arg4, checkpoint.shader_hash); + case CommandBufferDebugOp::DrawIndex: + case CommandBufferDebugOp::DrawIndexAuto: + return fmt::format( + "{} submit={} args={},{},{},{},0x{:x} ps=0x{:016x}", + static_cast<CommandBufferDebugOp>(checkpoint.op) == CommandBufferDebugOp::DrawIndex + ? "DrawIndex" + : "DrawIndexAuto", + checkpoint.submit_id, checkpoint.arg0, checkpoint.arg1, checkpoint.arg2, + checkpoint.arg3, checkpoint.arg4, checkpoint.pixel_shader); + default: + return fmt::format("op={} submit={} args={},{},{},{},0x{:x}", checkpoint.op, + checkpoint.submit_id, checkpoint.arg0, checkpoint.arg1, + checkpoint.arg2, checkpoint.arg3, checkpoint.arg4); + } +} + +void ReportFaultInfo(vk::Device device) { + vk::DeviceFaultCountsEXT counts {}; + auto result = device.getFaultInfoEXT(&counts, nullptr); + if (result != vk::Result::eSuccess) { + Write(fmt::format("VK_EXT_device_fault: vkGetDeviceFaultInfoEXT failed: {}\n", + vk::to_string(result))); + return; + } + + std::vector<vk::DeviceFaultAddressInfoEXT> addresses(counts.addressInfoCount); + std::vector<vk::DeviceFaultVendorInfoEXT> vendors(counts.vendorInfoCount); + counts.vendorBinarySize = 0; + + vk::DeviceFaultInfoEXT info {}; + info.pAddressInfos = addresses.data(); + info.pVendorInfos = vendors.data(); + result = device.getFaultInfoEXT(&counts, &info); + if (result != vk::Result::eSuccess && result != vk::Result::eIncomplete) { + Write(fmt::format("VK_EXT_device_fault: vkGetDeviceFaultInfoEXT failed: {}\n", + vk::to_string(result))); + return; + } + + const char* description = info.description.data(); + Write(fmt::format("VK_EXT_device_fault: \"{}\", {} address records, {} vendor records\n", + description, counts.addressInfoCount, counts.vendorInfoCount)); + for (uint32_t i = 0; i < std::min(counts.addressInfoCount, MaxReportedAddresses); i++) { + const auto& address = addresses[i]; + // The reported address is only accurate to addressPrecision, a power of two. + const auto precision = std::max<vk::DeviceSize>(address.addressPrecision, 1); + const auto begin = address.reportedAddress & ~(precision - 1); + Write(fmt::format(" address[{}]: {} reported=0x{:016x} range=[0x{:016x}, 0x{:016x})\n", i, + vk::to_string(address.addressType), address.reportedAddress, begin, + begin + precision)); + } + if (counts.addressInfoCount > MaxReportedAddresses) { + // Many records of one type usually come from the waves of one stuck shader. + std::vector<vk::DeviceFaultAddressTypeEXT> types; + for (const auto& address: addresses) { + if (std::ranges::find(types, address.addressType) == types.end()) { + types.push_back(address.addressType); + } + } + for (const auto type: types) { + uint32_t count = 0; + vk::DeviceSize low = UINT64_MAX; + vk::DeviceSize high = 0; + for (const auto& address: addresses) { + if (address.addressType == type) { + count++; + low = std::min(low, address.reportedAddress); + high = std::max(high, address.reportedAddress); + } + } + Write(fmt::format(" all {}: {} records, 0x{:016x}..0x{:016x}\n", vk::to_string(type), + count, low, high)); + } + } + for (uint32_t i = 0; i < counts.vendorInfoCount; i++) { + const auto& vendor = vendors[i]; + Write(fmt::format(" vendor[{}]: {} code=0x{:016x} data=0x{:016x}\n", i, + vendor.description.data(), vendor.vendorFaultCode, + vendor.vendorFaultData)); + } +} + +void ReportCheckpoints(vk::Queue queue) { + uint32_t count = 0; + queue.getCheckpointDataNV(&count, nullptr); + std::vector<vk::CheckpointDataNV> data(count); + queue.getCheckpointDataNV(&count, data.data()); + data.resize(count); + if (data.empty()) { + Write("GPU checkpoints: the driver reported none\n"); + return; + } + + // Each record is the last checkpoint that reached its stage. The operation that did not + // finish follows the bottom-of-pipe checkpoint; work up to the top-of-pipe one had started. + uint64_t first = UINT64_MAX; + uint64_t last = 0; + for (const auto& record: data) { + const auto sequence = reinterpret_cast<uint64_t>(record.pCheckpointMarker); + Write(fmt::format("GPU checkpoint: stage={} checkpoint={}\n", vk::to_string(record.stage), + sequence)); + first = std::min(first, sequence); + last = std::max(last, sequence); + } + + std::scoped_lock lock(g_checkpoint_mutex); + if (g_checkpoints.empty()) { + return; + } + const auto oldest = g_checkpoint_sequence > CheckpointRingSize + ? g_checkpoint_sequence - CheckpointRingSize + 1 + : uint64_t {1}; + first = std::max(first, oldest); + last = std::min({last, g_checkpoint_sequence, first + MaxReportedCheckpoints - 1}); + Write(fmt::format("GPU checkpoints {}..{} of {} recorded:\n", first, last, + g_checkpoint_sequence)); + for (uint64_t sequence = first; sequence <= last; sequence++) { + const auto& checkpoint = g_checkpoints[sequence % CheckpointRingSize]; + if (checkpoint.sequence == sequence) { + Write(fmt::format(" [{}] {}\n", sequence, DescribeCheckpoint(checkpoint))); + } + } +} + +} // namespace + +bool DeviceLossCheckpointsRequested() { + static const bool requested = [] { + const char* env = std::getenv("KYTY_GPU_CHECKPOINTS"); + return env != nullptr && std::strcmp(env, "0") != 0; ``` Fixed in 37743a3: only `KYTY_GPU_CHECKPOINTS=1` enables checkpoints now. Trailing spaces are ignored, since cmd keeps the one before `&&` in `set KYTY_GPU_CHECKPOINTS=1 && ...`.
Author
Owner

@⁠coderabbitai[bot] on GitHub · 2026-10-23 18:54 UTC · original · reviewed

Caution

Some comments are outside the diff and can’t be posted inline due to GitHub limitations.

⚠️ Outside diff range comments (1)

🟡 Minor · Record draw checkpoints only after the draw passes its early-return gates. · context.cpp:63-70

src/graphics/host_gpu/renderer/context.cpp:63-70
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

Record draw checkpoints only after the draw passes its early-return gates.

CommandBuffer::SetDebugInfo records the device-loss checkpoint before the gates in RenderExecutor::DrawIndex and RenderExecutor::DrawAuto run. Several of those gates return without emitting a native Vulkan draw, so the device-loss report can list a draw that never reached the GPU. The affected returns are:

  • DrawIndex: zero index_count or instance_count (renderDraw.cpp:1311-1314), invalid vertex shader (1323-1325), topology failure (1349-1351), and prepare-state failure (1387-1390).
  • DrawAuto: zero vertex_count or instance_count (renderDraw.cpp:1430-1433), invalid vertex shader, topology failure, prepare-state failure, and the rect-list branch (1462-1484).

The draw paths use their own SetDebugInfo calls at renderDraw.cpp:1307 and 1421. These are separate from the dispatch call sites in renderCompute.cpp, so a change limited to the dispatch sites leaves these draw paths unchanged.

Correction: keep the debug metadata store in SetDebugInfo. Move only the checkpoint recording so it runs after the last return that precedes the first native draw command. The first such command is at renderDraw.cpp:1208, after the CopyDepthToColor return (1128-1130) and the mesh primitive return (1149-1151). Verify the metadata/copy/resolve branches (ConsumeMetadataColorOperation, DepthStencilCopy, ResolveColorTargets) before moving their checkpoint. Their bodies were not inspected, and they may emit native work.


ℹ️ Review info
⚙️ Run configuration
📥 Commits

Reviewing files that changed from the base of the PR and between e2b2e17c0f8051b09cc637be537c1ea3b7070d9e and 37743a3f5191db69885afb6ac6e607f738bd31ac.

📒 Files selected for processing: 1
  • src/graphics/host_gpu/renderer/deviceLossReport.cpp

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

**@⁠coderabbitai[bot]** on GitHub · 2026-10-23 18:54 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/1816#pullrequestreview-5633092824) · **reviewed** <!-- coderabbit-ai-generated:v1 --> > [!CAUTION] > Some comments are outside the diff and can’t be posted inline due to GitHub limitations. > > **⚠️ Outside diff range comments (1)** > > <details> > <summary><strong>🟡 Minor</strong> · Record draw checkpoints only after the draw passes its early-return gates. · <code>context.cpp:63-70</code></summary><blockquote> > > `src/graphics/host_gpu/renderer/context.cpp:63-70` > **🎯 Functional Correctness** | **🟡 Minor** | **⚡ Quick win** > > **Record draw checkpoints only after the draw passes its early-return gates.** > > `CommandBuffer::SetDebugInfo` records the device-loss checkpoint before the gates in `RenderExecutor::DrawIndex` and `RenderExecutor::DrawAuto` run. Several of those gates return without emitting a native Vulkan draw, so the device-loss report can list a draw that never reached the GPU. The affected returns are: > > - `DrawIndex`: zero `index_count` or `instance_count` (renderDraw.cpp:1311-1314), invalid vertex shader (1323-1325), topology failure (1349-1351), and prepare-state failure (1387-1390). > - `DrawAuto`: zero `vertex_count` or `instance_count` (renderDraw.cpp:1430-1433), invalid vertex shader, topology failure, prepare-state failure, and the rect-list branch (1462-1484). > > The draw paths use their own `SetDebugInfo` calls at renderDraw.cpp:1307 and 1421. These are separate from the dispatch call sites in renderCompute.cpp, so a change limited to the dispatch sites leaves these draw paths unchanged. > > Correction: keep the debug metadata store in `SetDebugInfo`. Move only the checkpoint recording so it runs after the last return that precedes the first native draw command. The first such command is at renderDraw.cpp:1208, after the `CopyDepthToColor` return (1128-1130) and the mesh primitive return (1149-1151). Verify the metadata/copy/resolve branches (`ConsumeMetadataColorOperation`, `DepthStencilCopy`, `ResolveColorTargets`) before moving their checkpoint. Their bodies were not inspected, and they may emit native work. > > <!-- cr-comment:v1:d7b2528e7f856333bff6eeda --> > > </blockquote></details> --- <details> <summary>ℹ️ Review info</summary> <details> <summary>⚙️ Run configuration</summary> - **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/c5016d9455fe52bdd090cef7d80beb15fad6a3a5/.coderabbit.yaml>) - **Commit**: [c5016d9](<https://github.com/KytyPS5/KytyPS5/commit/c5016d9455fe52bdd090cef7d80beb15fad6a3a5>) - **Layers**: Repository YAML - **Review profile**: CHILL - **Plan**: Advanced - **Run ID**: `888e1f20-0eb4-46bb-add4-9a894f7c01c8` </details> <details> <summary>📥 Commits</summary> Reviewing files that changed from the base of the PR and between e2b2e17c0f8051b09cc637be537c1ea3b7070d9e and 37743a3f5191db69885afb6ac6e607f738bd31ac. </details> <details> <summary>📒 Files selected for processing: 1</summary> * `src/graphics/host_gpu/renderer/deviceLossReport.cpp` </details> **Included review availability:** This review used your included allowance. Your plan provides up to 8 included reviews per hour; 7 remain after this review. </details> <!-- This is an auto-generated comment by CodeRabbit for review status --> <!-- coderabbit-review-publication v1 publication=9781f6e4-6339-4deb-92b3-c8eacb27829e attempt=49f5283d-2d7f-4573-a427-a8ff07360de6 batch=1/1 -->
Author
Owner

@⁠coderabbitai[bot] on GitHub · 2026-10-23 18:56 UTC · original
On src/graphics/host_gpu/renderer/deviceLossReport.cpp line 191 (outdated):

@@ -0,0 +1,251 @@
+#include "graphics/host_gpu/renderer/deviceLossReport.h"
+
+#include "common/logging/log.h"
+#include "graphics/host_gpu/graphicContext.h"
+#include "graphics/host_gpu/renderer/render.h"
+
+#include <algorithm>
+#include <cstdlib>
+#include <cstring>
+#include <mutex>
+#include <string>
+#include <vector>
+
+namespace Libs::Graphics {
+
+namespace {
+
+struct Checkpoint {
+	uint64_t sequence     = 0;
+	uint64_t submit_id    = 0;
+	uint64_t arg4         = 0;
+	uint64_t pixel_shader = 0;
+	uint64_t shader_hash  = 0;
+	uint32_t op           = 0;
+	uint32_t arg0         = 0;
+	uint32_t arg1         = 0;
+	uint32_t arg2         = 0;
+	uint32_t arg3         = 0;
+};
+
+// A checkpoint marker is its sequence number; the ring keeps the most recent checkpoints.
+constexpr uint64_t CheckpointRingSize     = 16384;
+constexpr uint64_t MaxReportedCheckpoints = 32;
+
+constexpr uint32_t MaxReportedAddresses = 8;
+
+std::mutex              g_checkpoint_mutex;
+std::vector<Checkpoint> g_checkpoints;
+uint64_t                g_checkpoint_sequence = 0;
+// Several threads can see the loss at once. The report holds this lock, so the others wait for it
+// before their EXIT ends the process.
+std::mutex g_report_mutex;
+bool       g_reported = false;
+
+void Write(const std::string& text) {
+	Log::WriteToConsoleAndLog(text);
+}
+
+std::string DescribeCheckpoint(const Checkpoint& checkpoint) {
+	switch (static_cast<CommandBufferDebugOp>(checkpoint.op)) {
+		case CommandBufferDebugOp::DispatchDirect:
+			return fmt::format("DispatchDirect submit={} groups={}x{}x{} mode=0x{:08x} "
+			                   "cs=0x{:016x} hash=0x{:016x}",
+			                   checkpoint.submit_id, checkpoint.arg0, checkpoint.arg1,
+			                   checkpoint.arg2, checkpoint.arg3, checkpoint.arg4,
+			                   checkpoint.shader_hash);
+		case CommandBufferDebugOp::DispatchIndirect:
+			return fmt::format(
+			    "DispatchIndirect submit={} args=0x{:x} mode=0x{:08x} cs=0x{:016x} hash=0x{:016x}",
+			    checkpoint.submit_id, (uint64_t {checkpoint.arg1} << 32u) | checkpoint.arg0,
+			    checkpoint.arg3, checkpoint.arg4, checkpoint.shader_hash);
+		case CommandBufferDebugOp::DrawIndex:
+		case CommandBufferDebugOp::DrawIndexAuto:
+			return fmt::format(
+			    "{} submit={} args={},{},{},{},0x{:x} ps=0x{:016x}",
+			    static_cast<CommandBufferDebugOp>(checkpoint.op) == CommandBufferDebugOp::DrawIndex
+			        ? "DrawIndex"
+			        : "DrawIndexAuto",
+			    checkpoint.submit_id, checkpoint.arg0, checkpoint.arg1, checkpoint.arg2,
+			    checkpoint.arg3, checkpoint.arg4, checkpoint.pixel_shader);
+		default:
+			return fmt::format("op={} submit={} args={},{},{},{},0x{:x}", checkpoint.op,
+			                   checkpoint.submit_id, checkpoint.arg0, checkpoint.arg1,
+			                   checkpoint.arg2, checkpoint.arg3, checkpoint.arg4);
+	}
+}
+
+void ReportFaultInfo(vk::Device device) {
+	vk::DeviceFaultCountsEXT counts {};
+	auto                     result = device.getFaultInfoEXT(&counts, nullptr);
+	if (result != vk::Result::eSuccess) {
+		Write(fmt::format("VK_EXT_device_fault: vkGetDeviceFaultInfoEXT failed: {}\n",
+		                  vk::to_string(result)));
+		return;
+	}
+
+	std::vector<vk::DeviceFaultAddressInfoEXT> addresses(counts.addressInfoCount);
+	std::vector<vk::DeviceFaultVendorInfoEXT>  vendors(counts.vendorInfoCount);
+	counts.vendorBinarySize = 0;
+
+	vk::DeviceFaultInfoEXT info {};
+	info.pAddressInfos = addresses.data();
+	info.pVendorInfos  = vendors.data();
+	result             = device.getFaultInfoEXT(&counts, &info);
+	if (result != vk::Result::eSuccess && result != vk::Result::eIncomplete) {
+		Write(fmt::format("VK_EXT_device_fault: vkGetDeviceFaultInfoEXT failed: {}\n",
+		                  vk::to_string(result)));
+		return;
+	}
+
+	const char* description = info.description.data();
+	Write(fmt::format("VK_EXT_device_fault: \"{}\", {} address records, {} vendor records\n",
+	                  description, counts.addressInfoCount, counts.vendorInfoCount));
+	for (uint32_t i = 0; i < std::min(counts.addressInfoCount, MaxReportedAddresses); i++) {
+		const auto& address = addresses[i];
+		// The reported address is only accurate to addressPrecision, a power of two.
+		const auto precision = std::max<vk::DeviceSize>(address.addressPrecision, 1);
+		const auto begin     = address.reportedAddress & ~(precision - 1);
+		Write(fmt::format("  address[{}]: {} reported=0x{:016x} range=[0x{:016x}, 0x{:016x})\n", i,
+		                  vk::to_string(address.addressType), address.reportedAddress, begin,
+		                  begin + precision));
+	}
+	if (counts.addressInfoCount > MaxReportedAddresses) {
+		// Many records of one type usually come from the waves of one stuck shader.
+		std::vector<vk::DeviceFaultAddressTypeEXT> types;
+		for (const auto& address: addresses) {
+			if (std::ranges::find(types, address.addressType) == types.end()) {
+				types.push_back(address.addressType);
+			}
+		}
+		for (const auto type: types) {
+			uint32_t       count = 0;
+			vk::DeviceSize low   = UINT64_MAX;
+			vk::DeviceSize high  = 0;
+			for (const auto& address: addresses) {
+				if (address.addressType == type) {
+					count++;
+					low  = std::min(low, address.reportedAddress);
+					high = std::max(high, address.reportedAddress);
+				}
+			}
+			Write(fmt::format("  all {}: {} records, 0x{:016x}..0x{:016x}\n", vk::to_string(type),
+			                  count, low, high));
+		}
+	}
+	for (uint32_t i = 0; i < counts.vendorInfoCount; i++) {
+		const auto& vendor = vendors[i];
+		Write(fmt::format("  vendor[{}]: {} code=0x{:016x} data=0x{:016x}\n", i,
+		                  vendor.description.data(), vendor.vendorFaultCode,
+		                  vendor.vendorFaultData));
+	}
+}
+
+void ReportCheckpoints(vk::Queue queue) {
+	uint32_t count = 0;
+	queue.getCheckpointDataNV(&count, nullptr);
+	std::vector<vk::CheckpointDataNV> data(count);
+	queue.getCheckpointDataNV(&count, data.data());
+	data.resize(count);
+	if (data.empty()) {
+		Write("GPU checkpoints: the driver reported none\n");
+		return;
+	}
+
+	// Each record is the last checkpoint that reached its stage. The operation that did not
+	// finish follows the bottom-of-pipe checkpoint; work up to the top-of-pipe one had started.
+	uint64_t first = UINT64_MAX;
+	uint64_t last  = 0;
+	for (const auto& record: data) {
+		const auto sequence = reinterpret_cast<uint64_t>(record.pCheckpointMarker);
+		Write(fmt::format("GPU checkpoint: stage={} checkpoint={}\n", vk::to_string(record.stage),
+		                  sequence));
+		first = std::min(first, sequence);
+		last  = std::max(last, sequence);
+	}
+
+	std::scoped_lock lock(g_checkpoint_mutex);
+	if (g_checkpoints.empty()) {
+		return;
+	}
+	const auto oldest = g_checkpoint_sequence > CheckpointRingSize
+	                        ? g_checkpoint_sequence - CheckpointRingSize + 1
+	                        : uint64_t {1};
+	first             = std::max(first, oldest);
+	last              = std::min({last, g_checkpoint_sequence, first + MaxReportedCheckpoints - 1});
+	Write(fmt::format("GPU checkpoints {}..{} of {} recorded:\n", first, last,
+	                  g_checkpoint_sequence));
+	for (uint64_t sequence = first; sequence <= last; sequence++) {
+		const auto& checkpoint = g_checkpoints[sequence % CheckpointRingSize];
+		if (checkpoint.sequence == sequence) {
+			Write(fmt::format("  [{}] {}\n", sequence, DescribeCheckpoint(checkpoint)));
+		}
+	}
+}
+
+} // namespace
+
+bool DeviceLossCheckpointsRequested() {
+	static const bool requested = [] {
+		const char* env = std::getenv("KYTY_GPU_CHECKPOINTS");
+		return env != nullptr && std::strcmp(env, "0") != 0;

@⁠ZrDaniel07 Thanks for the fix in 37743a3. Accepting only "1" after trimming trailing spaces addresses the opt-in concern and supports the cmd usage you described.


If you found this review helpful, would you consider giving us a shout-out on X?

Thank you for using CodeRabbit!

✅ Review thread resolved.

You are interacting with an AI system.

**@⁠coderabbitai[bot]** on GitHub · 2026-10-23 18:56 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/1816#discussion_r4363191824) On `src/graphics/host_gpu/renderer/deviceLossReport.cpp` line 191 (outdated): ```diff @@ -0,0 +1,251 @@ +#include "graphics/host_gpu/renderer/deviceLossReport.h" + +#include "common/logging/log.h" +#include "graphics/host_gpu/graphicContext.h" +#include "graphics/host_gpu/renderer/render.h" + +#include <algorithm> +#include <cstdlib> +#include <cstring> +#include <mutex> +#include <string> +#include <vector> + +namespace Libs::Graphics { + +namespace { + +struct Checkpoint { + uint64_t sequence = 0; + uint64_t submit_id = 0; + uint64_t arg4 = 0; + uint64_t pixel_shader = 0; + uint64_t shader_hash = 0; + uint32_t op = 0; + uint32_t arg0 = 0; + uint32_t arg1 = 0; + uint32_t arg2 = 0; + uint32_t arg3 = 0; +}; + +// A checkpoint marker is its sequence number; the ring keeps the most recent checkpoints. +constexpr uint64_t CheckpointRingSize = 16384; +constexpr uint64_t MaxReportedCheckpoints = 32; + +constexpr uint32_t MaxReportedAddresses = 8; + +std::mutex g_checkpoint_mutex; +std::vector<Checkpoint> g_checkpoints; +uint64_t g_checkpoint_sequence = 0; +// Several threads can see the loss at once. The report holds this lock, so the others wait for it +// before their EXIT ends the process. +std::mutex g_report_mutex; +bool g_reported = false; + +void Write(const std::string& text) { + Log::WriteToConsoleAndLog(text); +} + +std::string DescribeCheckpoint(const Checkpoint& checkpoint) { + switch (static_cast<CommandBufferDebugOp>(checkpoint.op)) { + case CommandBufferDebugOp::DispatchDirect: + return fmt::format("DispatchDirect submit={} groups={}x{}x{} mode=0x{:08x} " + "cs=0x{:016x} hash=0x{:016x}", + checkpoint.submit_id, checkpoint.arg0, checkpoint.arg1, + checkpoint.arg2, checkpoint.arg3, checkpoint.arg4, + checkpoint.shader_hash); + case CommandBufferDebugOp::DispatchIndirect: + return fmt::format( + "DispatchIndirect submit={} args=0x{:x} mode=0x{:08x} cs=0x{:016x} hash=0x{:016x}", + checkpoint.submit_id, (uint64_t {checkpoint.arg1} << 32u) | checkpoint.arg0, + checkpoint.arg3, checkpoint.arg4, checkpoint.shader_hash); + case CommandBufferDebugOp::DrawIndex: + case CommandBufferDebugOp::DrawIndexAuto: + return fmt::format( + "{} submit={} args={},{},{},{},0x{:x} ps=0x{:016x}", + static_cast<CommandBufferDebugOp>(checkpoint.op) == CommandBufferDebugOp::DrawIndex + ? "DrawIndex" + : "DrawIndexAuto", + checkpoint.submit_id, checkpoint.arg0, checkpoint.arg1, checkpoint.arg2, + checkpoint.arg3, checkpoint.arg4, checkpoint.pixel_shader); + default: + return fmt::format("op={} submit={} args={},{},{},{},0x{:x}", checkpoint.op, + checkpoint.submit_id, checkpoint.arg0, checkpoint.arg1, + checkpoint.arg2, checkpoint.arg3, checkpoint.arg4); + } +} + +void ReportFaultInfo(vk::Device device) { + vk::DeviceFaultCountsEXT counts {}; + auto result = device.getFaultInfoEXT(&counts, nullptr); + if (result != vk::Result::eSuccess) { + Write(fmt::format("VK_EXT_device_fault: vkGetDeviceFaultInfoEXT failed: {}\n", + vk::to_string(result))); + return; + } + + std::vector<vk::DeviceFaultAddressInfoEXT> addresses(counts.addressInfoCount); + std::vector<vk::DeviceFaultVendorInfoEXT> vendors(counts.vendorInfoCount); + counts.vendorBinarySize = 0; + + vk::DeviceFaultInfoEXT info {}; + info.pAddressInfos = addresses.data(); + info.pVendorInfos = vendors.data(); + result = device.getFaultInfoEXT(&counts, &info); + if (result != vk::Result::eSuccess && result != vk::Result::eIncomplete) { + Write(fmt::format("VK_EXT_device_fault: vkGetDeviceFaultInfoEXT failed: {}\n", + vk::to_string(result))); + return; + } + + const char* description = info.description.data(); + Write(fmt::format("VK_EXT_device_fault: \"{}\", {} address records, {} vendor records\n", + description, counts.addressInfoCount, counts.vendorInfoCount)); + for (uint32_t i = 0; i < std::min(counts.addressInfoCount, MaxReportedAddresses); i++) { + const auto& address = addresses[i]; + // The reported address is only accurate to addressPrecision, a power of two. + const auto precision = std::max<vk::DeviceSize>(address.addressPrecision, 1); + const auto begin = address.reportedAddress & ~(precision - 1); + Write(fmt::format(" address[{}]: {} reported=0x{:016x} range=[0x{:016x}, 0x{:016x})\n", i, + vk::to_string(address.addressType), address.reportedAddress, begin, + begin + precision)); + } + if (counts.addressInfoCount > MaxReportedAddresses) { + // Many records of one type usually come from the waves of one stuck shader. + std::vector<vk::DeviceFaultAddressTypeEXT> types; + for (const auto& address: addresses) { + if (std::ranges::find(types, address.addressType) == types.end()) { + types.push_back(address.addressType); + } + } + for (const auto type: types) { + uint32_t count = 0; + vk::DeviceSize low = UINT64_MAX; + vk::DeviceSize high = 0; + for (const auto& address: addresses) { + if (address.addressType == type) { + count++; + low = std::min(low, address.reportedAddress); + high = std::max(high, address.reportedAddress); + } + } + Write(fmt::format(" all {}: {} records, 0x{:016x}..0x{:016x}\n", vk::to_string(type), + count, low, high)); + } + } + for (uint32_t i = 0; i < counts.vendorInfoCount; i++) { + const auto& vendor = vendors[i]; + Write(fmt::format(" vendor[{}]: {} code=0x{:016x} data=0x{:016x}\n", i, + vendor.description.data(), vendor.vendorFaultCode, + vendor.vendorFaultData)); + } +} + +void ReportCheckpoints(vk::Queue queue) { + uint32_t count = 0; + queue.getCheckpointDataNV(&count, nullptr); + std::vector<vk::CheckpointDataNV> data(count); + queue.getCheckpointDataNV(&count, data.data()); + data.resize(count); + if (data.empty()) { + Write("GPU checkpoints: the driver reported none\n"); + return; + } + + // Each record is the last checkpoint that reached its stage. The operation that did not + // finish follows the bottom-of-pipe checkpoint; work up to the top-of-pipe one had started. + uint64_t first = UINT64_MAX; + uint64_t last = 0; + for (const auto& record: data) { + const auto sequence = reinterpret_cast<uint64_t>(record.pCheckpointMarker); + Write(fmt::format("GPU checkpoint: stage={} checkpoint={}\n", vk::to_string(record.stage), + sequence)); + first = std::min(first, sequence); + last = std::max(last, sequence); + } + + std::scoped_lock lock(g_checkpoint_mutex); + if (g_checkpoints.empty()) { + return; + } + const auto oldest = g_checkpoint_sequence > CheckpointRingSize + ? g_checkpoint_sequence - CheckpointRingSize + 1 + : uint64_t {1}; + first = std::max(first, oldest); + last = std::min({last, g_checkpoint_sequence, first + MaxReportedCheckpoints - 1}); + Write(fmt::format("GPU checkpoints {}..{} of {} recorded:\n", first, last, + g_checkpoint_sequence)); + for (uint64_t sequence = first; sequence <= last; sequence++) { + const auto& checkpoint = g_checkpoints[sequence % CheckpointRingSize]; + if (checkpoint.sequence == sequence) { + Write(fmt::format(" [{}] {}\n", sequence, DescribeCheckpoint(checkpoint))); + } + } +} + +} // namespace + +bool DeviceLossCheckpointsRequested() { + static const bool requested = [] { + const char* env = std::getenv("KYTY_GPU_CHECKPOINTS"); + return env != nullptr && std::strcmp(env, "0") != 0; ``` <!-- coderabbit-ai-generated:v1 --> @⁠ZrDaniel07 Thanks for the fix in `37743a3`. Accepting only `"1"` after trimming trailing spaces addresses the opt-in concern and supports the `cmd` usage you described. --- <!-- This is an auto-generated comment: tweet message by coderabbit.ai --> If you found this review helpful, would you consider giving us a shout-out on [X](https://twitter.com/intent/tweet?related=CodeRabbitAI&text=Accept%20only%20%60KYTY_GPU_CHECKPOINTS%3D1%60%20to%20enable%20GPU%20checkpoints%E2%80%94empty%20or%20false%20values%20no%20longer%20trigger%20costly%20recording.%20A%20small%2C%20smart%20fix%3B%20try%20%40coderabbitai%20%F0%9F%9A%80&url=https%3A%2F%2Fgithub.com%2FKytyPS5%2FKytyPS5%2Fpull%2F1816%23discussion_r4344446333)? Thank you for using CodeRabbit! <!-- end of auto-generated comment: tweet message by coderabbit.ai --> ✅ Review thread resolved. <sub><i>You are interacting with an AI system.</i></sub> <!-- This is an auto-generated reply by CodeRabbit -->
@ -61,0 +65,4 @@
op == static_cast<uint32_t>(CommandBufferDebugOp::DrawIndexAuto);
const uint64_t pixel_shader =
draw && m_shaders != nullptr ? m_shaders->GetPs().ps_regs.data_addr : 0;
DeviceLossRecordCheckpoint(m_buffer, op, submit_id, arg0, arg1, arg2, arg3, arg4,
Author
Owner

@⁠coderabbitai[bot] on GitHub · 2026-10-23 18:56 UTC · original

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
ast-grep outline src/graphics/host_gpu/renderer/deviceLossReport.cpp
ast-grep outline src/graphics/host_gpu/renderer/renderCompute.cpp --match 'DispatchDirect|DispatchIndirect'
sed -n '1,245p' src/graphics/host_gpu/renderer/deviceLossReport.cpp
sed -n '250,380p;455,575p' src/graphics/host_gpu/renderer/renderCompute.cpp

Length of output: 21198


@ZrDaniel07 You’re right. I checked ReportCheckpoints: it reports a checkpoint range, not a single dispatch identified as the cause. My finding incorrectly treated a skipped dispatch in that range as fault attribution.

The existing checkpoint also covers clear or fill work that replaces a dispatch. Moving it immediately before Vulkan dispatch calls would lose that coverage.

I withdraw this finding. No change is needed for this concern.

✅ Review thread resolved.

You are interacting with an AI system.

**@⁠coderabbitai[bot]** on GitHub · 2026-10-23 18:56 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/1816#discussion_r4363197839) <!-- coderabbit-ai-generated:v1 --> <details> <summary>🧩 Analysis chain</summary> 🏁 Script executed: ```shell #!/bin/bash ast-grep outline src/graphics/host_gpu/renderer/deviceLossReport.cpp ast-grep outline src/graphics/host_gpu/renderer/renderCompute.cpp --match 'DispatchDirect|DispatchIndirect' sed -n '1,245p' src/graphics/host_gpu/renderer/deviceLossReport.cpp sed -n '250,380p;455,575p' src/graphics/host_gpu/renderer/renderCompute.cpp ``` Length of output: 21198 --- </details> `@ZrDaniel07` You’re right. I checked `ReportCheckpoints`: it reports a checkpoint range, not a single dispatch identified as the cause. My finding incorrectly treated a skipped dispatch in that range as fault attribution. The existing checkpoint also covers clear or fill work that replaces a dispatch. Moving it immediately before Vulkan dispatch calls would lose that coverage. I withdraw this finding. No change is needed for this concern. <!-- <review_comment_withdrawn> --> ✅ Review thread resolved. <sub><i>You are interacting with an AI system.</i></sub> <!-- This is an auto-generated reply by CodeRabbit -->
Author
Owner

@⁠Nmzik on GitHub · 2026-10-28 20:36 UTC · original

@⁠ZrDaniel07 In reality it wont help us :) You will still need shader spirv/IR opcodes etc

**@⁠Nmzik** on GitHub · 2026-10-28 20:36 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/1816#issuecomment-6480105809) @⁠ZrDaniel07 In reality it wont help us :) You will still need shader spirv/IR opcodes etc

Pull request closed

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