graphics: find BDA upload work from CPU-dirty hints #562

Closed
github-bot wants to merge 1 commit from gh-pr/562/head into gh-pr/562/base
Owner

@⁠MehmetCambaz on GitHub · 2026-09-11 10:37 UTC · original
MehmetCambaz:perf/bda-selective-dirty → main · +1786 −8 · 15 files · 1 commits · closed without merging

Update: refreshed onto current main

The branch was 473 commits behind and no longer applied. I re-ported it onto current main instead of rebasing through the conflicts. The base is fb7ff7ec; the three commits merged since then don't touch the BDA or tracker code and merge cleanly.

The design is unchanged:

  • the per-page dirty bitmap is still the only truth;
  • both paths end in SynchronizeBuffer;
  • any inconsistency falls back to the legacy walk.

What changed in the port:

  • GpuResourceManager is now RenderContext, so the mapping hint and the --bda-sync modes live there.
  • The tracker now covers a 2^44 address space (65,536 hint words). PrepareBda checks only the hint words that overlap mapped memory instead of all of them. Hints outside mapped memory stay pending. A mapped range the tracker cannot index also fails closed to the legacy walk.
  • The tests use RenderContext directly. A new test, buffer_cache_bda_structural, checks that the selective path does less work.

Current validation (this refreshed branch)

The structural test runs 64 PrepareBda calls over 256 cached buffers in 32 tracker regions. The workload is mostly clean: 16 small guest writes and 8 hints that find nothing. It counts with test-only hooks, not timing:

Legacy Selective
Tracker regions read 16,384 71
Buffers considered 16,384 16
SynchronizeBuffer calls 16,384 16
Uploads 16 16
Uploaded bytes 65,536 65,536

Every call uploads the same bytes in both modes, and the BDA-visible contents of every buffer match guest memory.

  • Coherency: 30 legacy-vs-selective cases, run in both modes. They cover:
    • races at the hint exchange, dirty snapshot, upload copy and region creation;
    • partial and aliased mappings;
    • GC retirement;
    • mode switching, including SelectiveChecked;
    • fail-closed.
  • Mutation checks (each change temporary and reverted):
    • Removing any one of the four hint publication points makes at least one test fail.
    • So does clearing hints again after the exchange, or limiting the mapped-word walk.
    • Turning the selective pass into a full scan keeps coherency passing but fails the structural test.
  • CTest: 56/56 on cdb64bfd. On fb7ff7ec, every BDA, buffer-cache and tracker test passes. shader_recompiler_compute and compute_meta_clear_classification fail at ResourceMaterialization.cpp:1398, but they fail the same way on unmodified fb7ff7ec, so that failure is unrelated to this change.
  • Vulkan validation: the Khronos layer is confirmed loaded. It reports no messages on the BDA and buffer-cache tests, and the full compute test shows exactly the same messages as unmodified main, so there are 0 new messages.

Historical performance (original branch, September base, not re-measured on current main)

In a fixed Kena: Bridge of Spirits scene, using alternating legacy/selective 30-second blocks in the same process:

Legacy Selective
FPS 16.01 19.12 (+19.4%)
Mean frame time 62.47 ms 52.36 ms (-16.2%)
PrepareBda 20.90 ms/frame 11.26 ms/frame (-46.1%)
Buffer sync attempts ~122k/frame ~2k/frame (-98.3%)

All four selective blocks were faster than all four legacy blocks. Kena also completed a gameplay smoke test in SelectiveChecked mode at the time. These numbers come from the original branch and have not been reproduced on current main.

Teardown motivation (profiling evidence and estimates only)

A recent Teardown profile (main from 2026-10-05 plus #978 and #1066, which Teardown needs to run; legacy path) shows:

  • PrepareBda runs 450–680 times per frame;
  • each call walks six multi-GiB buffers, about 1,750 tracker regions;
  • that is an estimated 25–34 ms per frame on the GPU thread;
  • only about 13–17 guest write faults happen between calls.

That is the kind of workload this change targets. I have not A/B tested the refreshed code in Teardown, so no Teardown improvement is claimed. --bda-sync Legacy / Selective allows a same-build comparison.

Note for review: the selective path uploads per buffer and 4 MiB region. A buffer with dirty pages in several hinted regions is uploaded in several smaller batches. The bytes are the same; there are more barrier pairs.

Overlap with #937

#937 contains overlapping PrepareBda dirty-region/epoch work. This PR stays focused on the conservative dirty-hint approach:

  • the per-page dirty bitmap stays authoritative;
  • synchronization happens at each BDA consumer, rather than once per guest submission;
  • there is a fail-closed legacy fallback.

#937 is part of a broader stack with different synchronization and epoch choices. I'm calling out the overlap so maintainers can choose the preferred direction, and I'm happy to adapt this PR either way.

Other open PRs:


Problem

PrepareBda runs before draws and dispatches that use buffer device addresses. To find CPU-written data it currently walks every mapped cached buffer and queries its tracked state, even though most buffers have nothing to upload.

Change

Track a hint bit for each 4 MiB memory-tracker region that may contain CPU-dirty pages. The hint is published when:

  • pages become dirty;
  • tracker regions are created;
  • buffers are registered;
  • memory is mapped.

PrepareBda consumes the hints for mapped memory, reads the existing dirty bitmap and synchronizes only registered buffers that can contain dirty pages. The existing per-page dirty state remains authoritative. SynchronizeBuffer, page protection, uploads and Vulkan synchronization are unchanged.

The old walk remains available as the legacy/fallback path (--bda-sync Legacy). --bda-sync SelectiveChecked adds an invariant check for debugging and validation.

AI assistance was used during investigation, porting, review and testing. I reviewed the final code, diff and validation results before submission.

**@⁠MehmetCambaz** on GitHub · 2026-09-11 10:37 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/562) `MehmetCambaz:perf/bda-selective-dirty` → `main` · +1786 −8 · 15 files · 1 commits · closed without merging ## Update: refreshed onto current main The branch was 473 commits behind and no longer applied. I re-ported it onto current main instead of rebasing through the conflicts. The base is `fb7ff7ec`; the three commits merged since then don't touch the BDA or tracker code and merge cleanly. The design is unchanged: - the per-page dirty bitmap is still the only truth; - both paths end in `SynchronizeBuffer`; - any inconsistency falls back to the legacy walk. What changed in the port: - `GpuResourceManager` is now `RenderContext`, so the mapping hint and the `--bda-sync` modes live there. - The tracker now covers a 2^44 address space (65,536 hint words). `PrepareBda` checks only the hint words that overlap mapped memory instead of all of them. Hints outside mapped memory stay pending. A mapped range the tracker cannot index also fails closed to the legacy walk. - The tests use `RenderContext` directly. A new test, `buffer_cache_bda_structural`, checks that the selective path does less work. ### Current validation (this refreshed branch) The structural test runs 64 `PrepareBda` calls over 256 cached buffers in 32 tracker regions. The workload is mostly clean: 16 small guest writes and 8 hints that find nothing. It counts with test-only hooks, not timing: | | Legacy | Selective | |---|---|---| | Tracker regions read | 16,384 | 71 | | Buffers considered | 16,384 | 16 | | `SynchronizeBuffer` calls | 16,384 | 16 | | Uploads | 16 | 16 | | Uploaded bytes | 65,536 | 65,536 | Every call uploads the same bytes in both modes, and the BDA-visible contents of every buffer match guest memory. - **Coherency:** 30 legacy-vs-selective cases, run in both modes. They cover: - races at the hint exchange, dirty snapshot, upload copy and region creation; - partial and aliased mappings; - GC retirement; - mode switching, including `SelectiveChecked`; - fail-closed. - **Mutation checks** (each change temporary and reverted): - Removing any one of the four hint publication points makes at least one test fail. - So does clearing hints again after the exchange, or limiting the mapped-word walk. - Turning the selective pass into a full scan keeps coherency passing but fails the structural test. - **CTest:** 56/56 on `cdb64bfd`. On `fb7ff7ec`, every BDA, buffer-cache and tracker test passes. `shader_recompiler_compute` and `compute_meta_clear_classification` fail at `ResourceMaterialization.cpp:1398`, but they fail the same way on unmodified `fb7ff7ec`, so that failure is unrelated to this change. - **Vulkan validation:** the Khronos layer is confirmed loaded. It reports no messages on the BDA and buffer-cache tests, and the full compute test shows exactly the same messages as unmodified main, so there are 0 new messages. ### Historical performance (original branch, September base, not re-measured on current main) In a fixed Kena: Bridge of Spirits scene, using alternating legacy/selective 30-second blocks in the same process: | | Legacy | Selective | |---|---|---| | FPS | 16.01 | 19.12 (+19.4%) | | Mean frame time | 62.47 ms | 52.36 ms (-16.2%) | | `PrepareBda` | 20.90 ms/frame | 11.26 ms/frame (-46.1%) | | Buffer sync attempts | ~122k/frame | ~2k/frame (-98.3%) | All four selective blocks were faster than all four legacy blocks. Kena also completed a gameplay smoke test in `SelectiveChecked` mode at the time. These numbers come from the original branch and have not been reproduced on current main. ### Teardown motivation (profiling evidence and estimates only) A recent Teardown profile (main from 2026-10-05 plus #978 and #1066, which Teardown needs to run; legacy path) shows: - `PrepareBda` runs 450–680 times per frame; - each call walks six multi-GiB buffers, about 1,750 tracker regions; - that is an estimated 25–34 ms per frame on the GPU thread; - only about 13–17 guest write faults happen between calls. That is the kind of workload this change targets. I have not A/B tested the refreshed code in Teardown, so no Teardown improvement is claimed. `--bda-sync Legacy` / `Selective` allows a same-build comparison. Note for review: the selective path uploads per buffer and 4 MiB region. A buffer with dirty pages in several hinted regions is uploaded in several smaller batches. The bytes are the same; there are more barrier pairs. ### Overlap with #937 #937 contains overlapping `PrepareBda` dirty-region/epoch work. This PR stays focused on the conservative dirty-hint approach: - the per-page dirty bitmap stays authoritative; - synchronization happens at each BDA consumer, rather than once per guest submission; - there is a fail-closed legacy fallback. #937 is part of a broader stack with different synchronization and epoch choices. I'm calling out the overlap so maintainers can choose the preferred direction, and I'm happy to adapt this PR either way. Other open PRs: - No new conflicts with #1065, #978, #1066 or #925. - #931 and #877 would need small mechanical merges. --- ## Problem `PrepareBda` runs before draws and dispatches that use buffer device addresses. To find CPU-written data it currently walks every mapped cached buffer and queries its tracked state, even though most buffers have nothing to upload. ## Change Track a hint bit for each 4 MiB memory-tracker region that may contain CPU-dirty pages. The hint is published when: - pages become dirty; - tracker regions are created; - buffers are registered; - memory is mapped. `PrepareBda` consumes the hints for mapped memory, reads the existing dirty bitmap and synchronizes only registered buffers that can contain dirty pages. The existing per-page dirty state remains authoritative. `SynchronizeBuffer`, page protection, uploads and Vulkan synchronization are unchanged. The old walk remains available as the legacy/fallback path (`--bda-sync Legacy`). `--bda-sync SelectiveChecked` adds an invariant check for debugging and validation. AI assistance was used during investigation, porting, review and testing. I reviewed the final code, diff and validation results before submission.
PrepareBda runs before every draw and dispatch that uses buffer device
addresses. It walks every mapped registered buffer and asks the memory
tracker, region by region, whether any of its pages are CPU-dirty, and
nearly every visit finds nothing. In Kena that was 4,000 to 7,000 buffers
per call at 60 to 70 calls per frame. In Teardown each of 450 to 680 calls
per frame walks six multi-GiB buffers, about 1,750 tracker regions.

Keep one hint bit per 4 MiB tracker region, meaning "this region may hold
CPU-dirty data that PrepareBda must examine". The CPU-dirty bitmap stays the
only truth; the hints are a conservative index over it, so a false positive
costs one empty snapshot. A region's hint is published by:

  P1  every RegionManager::ChangeState<Cpu, true>, under the region lock
  P2  region creation, before the manager pointer (new regions start dirty)
  P3  buffer registration, over the actual registered span
  P4  RenderContext::MapMemory, under the exclusive mapped-range lock

A selective pass exchanges once each non-zero hint word that intersects a
mapped range, snapshots the CPU-dirty bitmap of each hinted region under its
lock, and synchronises the owner of every dirty page found through the page
table, over owner, region and mapped interval. A hinted region without a
manager is synchronised through the legacy walk at once. A completed region
is never cleared a second time, so a write that lands after the exchange
stays pending. If the page table disagrees with the registered owners, the
pass re-publishes what it had not finished and PrepareBda fails closed to
the legacy walk.

Page protection, dirty clearing, uploads and barrier recording are
unchanged: both paths end in SynchronizeBuffer. The selective path calls it
per owner and hinted region, so an owner with dirty pages in several hinted
regions is uploaded in several batches; the uploaded bytes are the same.

--bda-sync selects Selective (the default), Legacy, or SelectiveChecked,
which verifies the hint invariant after every pass. The tests compare the
bytes a BDA shader would read with guest memory at each consumer, in both
modes. They include deterministic races at the hint exchange, the dirty
snapshot, the upload copy and region creation, and legacy/selective
differentials for partially mapped and aliased memory. A structural test
counts tracker regions read, owners considered and SynchronizeBuffer calls
over a mostly clean workload: every consumer uploads the same bytes as the
legacy walk while discovery work drops by more than two orders of magnitude.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:25:47 +00:00
github-bot closed this pull request 2026-11-26 09:25:47 +00:00
Author
Owner

@⁠MehmetCambaz on GitHub · 2026-10-06 18:15 UTC · original

@⁠Nmzik I’ve refreshed this PR onto current main and substantially strengthened the validation.

The selective path now reduces the structural test from 16,384 region scans / sync attempts to 71 region scans and 16 sync attempts, while producing exactly the same 16 uploads and 65,536 uploaded bytes as the legacy path.
I also added mutation tests for every hint-publication path and the concurrency/fallback cases. BDA/buffer tests report no new Vulkan validation messages.

The original Kena result was +19.4% FPS and -46.1% PrepareBda time; those numbers are historical and aren’t being claimed for current main. Recent Teardown profiling independently shows PrepareBda is still a significant steady-state cost.
I’ve also called out the overlap with #937 in the description so the preferred direction can be decided during review.

**@⁠MehmetCambaz** on GitHub · 2026-10-06 18:15 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/562#issuecomment-6022594419) @⁠Nmzik I’ve refreshed this PR onto current main and substantially strengthened the validation. The selective path now reduces the structural test from 16,384 region scans / sync attempts to 71 region scans and 16 sync attempts, while producing exactly the same 16 uploads and 65,536 uploaded bytes as the legacy path. I also added mutation tests for every hint-publication path and the concurrency/fallback cases. BDA/buffer tests report no new Vulkan validation messages. The original Kena result was +19.4% FPS and -46.1% PrepareBda time; those numbers are historical and aren’t being claimed for current main. Recent Teardown profiling independently shows PrepareBda is still a significant steady-state cost. I’ve also called out the overlap with #937 in the description so the preferred direction can be decided during review.
Author
Owner

@⁠coderabbitai[bot] on GitHub · 2026-10-06 18:18 UTC · original · edited 2026-10-06 18:20 UTC

Review in Change Stack →

📝 Walkthrough

Walkthrough

The change adds three BDA synchronization modes, with Selective as the default, and exposes mode selection through --bda-sync. MemoryTracker tracks atomic hints for dirty regions. BufferCache uses those hints to synchronize mapped dirty owners, while retaining a legacy path and fallback. RenderContext selects the path and can check hint coverage. New tests cover hint publication, synchronization results, fallback, concurrency, and scan counts.

Suggested reviewers: nmzik

Priority: ➖ Normal

Change: Refactor

Merge Risk: 🔵 Low · up to 7fd37

The selective BDA synchronization change is mergeable with a small test fix. A filtered BDA test run that matches no cases still reports success, which can hide a mistyped or skipped targeted test. No runtime defect in synchronization was established.

🚥 Pre-merge checks | ✅ 4 | ❓ 1

❌ Failed checks (1 inconclusive)

Check name Status Explanation Resolution
Docstring Coverage ❓ Inconclusive Docstring coverage is 14.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 50 functions across 13 files. (2 skipped:… Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
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.
Title check ✅ Passed The title clearly and concisely describes the main change: using CPU-dirty hints to find BDA upload work.
Description check ✅ Passed The description explains the selective BDA synchronization change, its fallback behavior, tests, and validation results.
Full details: Docstring Coverage

Explanation

Docstring coverage is 14.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 50 functions across 13 files. (2 skipped: 1 unsupported, 1 too large.)

  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

❤️ Share

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

**@⁠coderabbitai[bot]** on GitHub · 2026-10-06 18:18 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/562#issuecomment-6022643606) · edited 2026-10-06 18:20 UTC <!-- This is an auto-generated comment: summarize by coderabbit.ai --> <!-- review_stack_entry_start --> <a href="https://app.coderabbit.ai/change-stack/KytyPS5/KytyPS5/pull/562?scope=ghh_OusAJGA4HG8ljoOV0wJvVx8NmnZIjc2DdjmxOu0xZWA&amp;cs_source=review_comment"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-stack-in-coderabbit-ui-dark.svg?v=2" alt="Review in Change Stack →" width="220" height="32"></a> <!-- review_stack_entry_end --> <!-- walkthrough_start --> <details> <summary>📝 Walkthrough</summary> ## Walkthrough The change adds three BDA synchronization modes, with Selective as the default, and exposes mode selection through `--bda-sync`. MemoryTracker tracks atomic hints for dirty regions. BufferCache uses those hints to synchronize mapped dirty owners, while retaining a legacy path and fallback. RenderContext selects the path and can check hint coverage. New tests cover hint publication, synchronization results, fallback, concurrency, and scan counts. **Suggested reviewers:** `nmzik` </details> <!-- walkthrough_end --> <!-- change_assessment_start --> **Priority:** ➖ Normal <!-- change_assessment_commit:"7fd373df65bc9d3738042e5549bd0e8ccca598cf" --> **Change:** Refactor <!-- change_assessment_end --> <!-- final_review_risk_start --> **Merge Risk:** _🔵 Low_ · up to `7fd37` <!-- final_review_risk_coverage:{"sourceCommitId":"7fd373df65bc9d3738042e5549bd0e8ccca598cf","coveredCommitId":"7fd373df65bc9d3738042e5549bd0e8ccca598cf","kind":"reviewed"} --> The selective BDA synchronization change is mergeable with a small test fix. A filtered BDA test run that matches no cases still reports success, which can hide a mistyped or skipped targeted test. No runtime defect in synchronization was established. <!-- final_review_risk_end --> <!-- pre_merge_checks_walkthrough_start --> <details> <summary>🚥 Pre-merge checks | ✅ 4 | ❓ 1</summary> ### ❌ Failed checks (1 inconclusive) | Check name | Status | Explanation | Resolution | | :----------------: | :------------- | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :--------------------------------------------------------------------------------- | | Docstring Coverage | ❓ Inconclusive | Docstring coverage is 14.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 50 functions across 13 files. (2 skipped:… | Write docstrings for the functions missing them to satisfy the coverage threshold. | <details> <summary>✅ Passed checks (4 passed)</summary> | Check name | Status | Explanation | | :------------------------: | :------- | :----------------------------------------------------------------------------------------------------------------------- | | 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. | | Title check | ✅ Passed | The title clearly and concisely describes the main change: using CPU-dirty hints to find BDA upload work. | | Description check | ✅ Passed | The description explains the selective BDA synchronization change, its fallback behavior, tests, and validation results. | </details> <details> <summary>Full details: Docstring Coverage</summary> **Explanation** Docstring coverage is 14.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 50 functions across 13 files. (2 skipped: 1 unsupported, 1 too large.) </details> </details> <!-- pre_merge_checks_walkthrough_end --> <!-- autopilot:start --> - [ ] <!-- {"checkboxId":"2708ad07-9f24-4260-9c11-7dc76a49f2e3"} --> <strong title="Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts">Autopilot</strong> · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts <!-- autopilot:end --> <!-- tips_start --> --- Thanks for using [CodeRabbit](https://coderabbit.ai?utm_source=oss&utm_medium=github&utm_campaign=KytyPS5/KytyPS5&utm_content=562)! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. <details> <summary>❤️ Share</summary> - [X](https://twitter.com/intent/tweet?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A&url=https%3A//coderabbit.ai) - [Mastodon](https://mastodon.social/share?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A%20https%3A%2F%2Fcoderabbit.ai) - [Reddit](https://www.reddit.com/submit?title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&text=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code.%20Check%20it%20out%3A%20https%3A//coderabbit.ai) - [LinkedIn](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fcoderabbit.ai&mini=true&title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&summary=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code) </details> <sub>Comment `@coderabbitai help` to get the list of available commands.</sub> <!-- tips_end -->
@ -3949,0 +4228,4 @@
const auto run_case = [&](const char *test, bool compare_modes,
auto &&body) {
if (only != nullptr && std::strstr(test, only) == nullptr) {
return;
Author
Owner

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

🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

Reject filters that execute no cases.

With --bda-selective-only T99, every case returns here. The function still prints success, and main() returns zero. Selecting T27 in a debug build also reports success without executing that case.

Count executed cases and fail when the count is zero. This prevents filtered test runs from reporting false success.

**@⁠coderabbitai[bot]** on GitHub · 2026-10-06 18:18 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/562#discussion_r4198930413) **🎯 Functional Correctness** | **🟡 Minor** | **⚡ Quick win** **Reject filters that execute no cases.** With `--bda-selective-only T99`, every case returns here. The function still prints success, and `main()` returns zero. Selecting `T27` in a debug build also reports success without executing that case. Count executed cases and fail when the count is zero. This prevents filtered test runs from reporting false success. <!-- fingerprinting:phantom:medusa:wombat61 --> <!-- cr-indicator-types:potential_issue --> <!-- cr-comment:v1:00bb4f079f6ee5a9380d0744 --> <!-- This is an auto-generated comment by CodeRabbit -->
Author
Owner

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

Actionable comments posted: 1


ℹ️ Review info
⚙️ Run configuration
  • Configuration used: Repository: KytyPS5/KytyPS5/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: b68e6384-4fd9-427d-a381-aa5a8272d73f
📥 Commits

Reviewing files that changed from the base of the PR and between 6ef406542c and 7fd373df65.

📒 Files selected for processing (15)
  • CMakeLists.txt
  • src/common/emulatorConfig.cpp
  • src/common/emulatorConfig.h
  • src/graphics/host_gpu/bdaTestHooks.h
  • src/graphics/host_gpu/memoryTracker.cpp
  • src/graphics/host_gpu/memoryTracker.h
  • src/graphics/host_gpu/regionManager.h
  • src/graphics/host_gpu/renderer/cache/bufferCache.cpp
  • src/graphics/host_gpu/renderer/cache/bufferCache.h
  • src/graphics/host_gpu/renderer/renderContext.cpp
  • src/graphics/host_gpu/renderer/renderContext.h
  • src/graphics/presentation/window/vulkanWindow.cpp
  • src/main.cpp
  • tests/MemoryTrackerTests.cpp
  • tests/ShaderRecompilerComputeTests.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-06 18:18 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/562#pullrequestreview-5432809259) · **reviewed** **Actionable comments posted: 1** --- <details> <summary>ℹ️ Review info</summary> <details> <summary>⚙️ Run configuration</summary> - **Configuration used**: Repository: KytyPS5/KytyPS5/.coderabbit.yaml - **Review profile**: CHILL - **Plan**: Advanced - **Run ID**: `b68e6384-4fd9-427d-a381-aa5a8272d73f` </details> <details> <summary>📥 Commits</summary> Reviewing files that changed from the base of the PR and between 6ef406542c77671f199c0978c8dfc5f267613ff7 and 7fd373df65bc9d3738042e5549bd0e8ccca598cf. </details> <details> <summary>📒 Files selected for processing (15)</summary> * `CMakeLists.txt` * `src/common/emulatorConfig.cpp` * `src/common/emulatorConfig.h` * `src/graphics/host_gpu/bdaTestHooks.h` * `src/graphics/host_gpu/memoryTracker.cpp` * `src/graphics/host_gpu/memoryTracker.h` * `src/graphics/host_gpu/regionManager.h` * `src/graphics/host_gpu/renderer/cache/bufferCache.cpp` * `src/graphics/host_gpu/renderer/cache/bufferCache.h` * `src/graphics/host_gpu/renderer/renderContext.cpp` * `src/graphics/host_gpu/renderer/renderContext.h` * `src/graphics/presentation/window/vulkanWindow.cpp` * `src/main.cpp` * `tests/MemoryTrackerTests.cpp` * `tests/ShaderRecompilerComputeTests.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=aa4c631a-3bd1-4602-9cdb-ceb7b00454e7 attempt=c23229bc-c8b0-4960-aa9c-98aa31f30e8d batch=1/1 -->
Author
Owner

@⁠Nmzik on GitHub · 2026-10-21 19:41 UTC · original

Superseded by d58aefde4.

**@⁠Nmzik** on GitHub · 2026-10-21 19:41 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/562#issuecomment-6324934710) Superseded by d58aefde4.

Pull request closed

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