Skip to content

perf(agc): replay draws to native multisample color targets - #27849

Merged
oneandonlydean merged 4 commits into
boykopovar:mainfrom
RavenCurseBurg:perf/replay-native-msaa-color-draws
Dec 4, 2026
Merged

oneandonlydean merged 4 commits into
boykopovar:mainfrom
RavenCurseBurg:perf/replay-native-msaa-color-draws

Conversation

@RavenCurseBurg

@RavenCurseBurg RavenCurseBurg commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

What

For #26599, allow direct draws to native multisampled color targets to reuse their recorded commands. Replay verifies each attachment against the live multisample registry and retains its image through command recording. Retired and replaced attachments use the ordinary draw path.

Tested

I tested the synthetic 4× MSAA scene after integrating #21479. Against 65ff3ae335ac, the integrated candidate 2e566609eeae reduced median CPU recording time on the RTX 4060 from 2.55 to 1.81 µs/draw with one color target and from 3.03 to 2.06 with two. On the UHD 770, the corresponding results were 2.61 to 1.99 and 3.51 to 2.12. Each comparison used 8,064 steady-state draws per revision and verified readback. Inline and pipelined PM4 runs both went from zero to 64 recipe hits on each GPU, with 64 draw-cache hits throughout.

For the existing single-sample fast path, the paired candidate/base recording-time ratios were 1.012 on NVIDIA (95% interval 0.935–1.097) and 0.954 on Intel (0.878–1.042). The identical-binary Intel control also varied. All 145 shared CTests retained their outcomes on each adapter, and the added regression passed. Retiring and reacquiring a DCC texture at the same address passed twice per adapter at 2×, 4× and 8×. A Snoopy capture on the reporting RX 6700 XT is still needed to measure title frame time. Both revisions' traces, measured batches and reproduction instructions

The branch merged cleanly with main at 102cad67da. The overlap checker examined 2,676 open PRs. I compared the four flagged line overlaps and 52 branches that could not merge with main. #19686, #21479 and #25802 change attachment acquisition and layout. #27273 changes draw-key ownership. #11452 adds counters. The reported patches contain no implementation of live native MSAA recipe replay. The tested counter integration is available for the reporter's Snoopy run.

I merged the upstream DCC texture import change (#21479) at 65ff3ae335ac and compared the resulting code with that main commit. All 145 shared CTests retained identical outcomes per GPU. The added recipe test passed on both. The RTX 4060 had 143 passes, two skips and one baseline failure. The UHD 770 had 142 passes, one skip and three baseline failures. Both adapters passed all six initial DCC and target takeover cases. A separate native Vulkan check reimported a DCC texture at the same address while retaining its old owner. The old attachment refused replay and the newly acquired attachment replayed. Readback preserved the expected color. This passed twice per adapter at each of 2×, 4× and 8× MSAA with Khronos validation. Integrated code

I rechecked the merge of main 80781a0e94 in 6344fbd213. Recipe creation requires a content key, and ordinary target acquisition keeps main's GCN texture ownership check. On each of the RTX 4060 and UHD 770, all 151 shared CTests retained their outcomes and the additional multisample recipe test passed. The Vulkan validation logs showed no additional diagnostics. Benchmarks and regression results for this revision

I merged upstream 363e0bed4def into the submitted branch and checked the resulting tree. The project’s code and PR conventions passed.

I checked the current GPU overlaps. #9508 changes descriptor-heap handling and #20315 changes host imports. #9897 changes the CheckBufferAliases call next to the multisample feedback guard. If #9897 merges first, I will retain the guard and pass its maxVertex argument to CheckBufferAliases when refreshing this branch.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt and the licence notice of code adapted from upstream (see AGENTS.md)
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none (Snoopy measurement pending on perf(agc): recorded draws to multisampled targets never build a recipe (Snoopy: ~55,000 per 10 s on the 33 µs template path) #26599)
  • Unblocks: none
  • GPUs tested: Windows 11 build 26100, NVIDIA RTX 4060 driver 595.79 and Intel UHD 770 driver 101.5973
  • AI-assisted: yes (Codex + GPT-6.2 Astra, xhigh)

Summary by CodeRabbit

  • New Features
    • Draw recipes now support replay with multisampled color targets when all color targets use multisampling.
    • Replayed recipes reuse their original multisample attachments. Replay is rejected if an attachment is invalid, replaced, retired, or conflicts with a rendered surface or depth feedback.

Keep the image and a weak reference to each multisample attachment. Reacquire it through the live target registry to apply pending writes and clears and verify the image and view before recording. Retired or recreated attachments take the ordinary draw path.

AI-assisted: Codex + GPT-6.2 Astra (xhigh)
Fall back to normal target acquisition when a texture must take fresh register state. Preserve the upstream texture import check before recreating an owner.

AI-assisted: Codex + GPT-6.2 Astra (xhigh)
…rgets

Keep the current key check before recording a reusable draw and retain the GCN texture ownership check when creating an attachment.

AI-assisted: Codex + GPT-6.2 Astra (xhigh).
AI-assisted: Codex + GPT-6.2 Astra (xhigh).
@coderabbitai

coderabbitai Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

Changes: Multisample Recipe Replay

Layer / File(s) Summary
Attachment identity and target reuse
Execution/include/Recipe.hpp, Graphics/include/MultisampleTarget.hpp, Graphics/src/MultisampleTarget.cpp
DrawRecipe stores multisample attachment owners and images. Target lookup now supports expected target and image checks. RepeatMultisampleTargetView validates and reuses a matching target view.
Multisample recipe capture and replay
Graphics/src/Draw.cpp
Recipe creation stores attachments when all targets are multisampled. Replay checks attachment counts, validates stored attachments, rejects feedback, and passes retained owners and images to draw recording.
Replay behavior tests
tests/TargetStateMemo.cpp, tests/cmake/agc_driver_target_memo_tests.cmake
Tests check multisample output and resolve results, then verify replay behavior after attachment retirement, replacement, or target-list clearing. The CMake configuration registers the scenario.

Possibly related issues

  • boykopovar/AnyPS5#26599 reports that multisampled targets do not build a DrawRecipe; this change adds recipe creation and replay for multisampled color targets.

Suggested reviewers: amoenus, gamerog563, meh7an

Change: Refactor

Merge Risk: Minimal · up to 8eb7c

This change lets draws to native multisampled color targets reuse recorded commands, and falls back to the ordinary draw path when an attachment has been retired or replaced. No concrete merge-blocking risk was found in the supplied changes. The author reports passing regression tests and benchmarks, though those results were not independently re-run during this review.

Security architecture risk: Low · up to 8eb7c

Replay checks that each attachment is still the same live image before reuse and falls back to a normal draw on a miss. The remaining risk is local: a rejected replay can mark an attachment as changed even though it never recorded the draw, causing later checks to discard otherwise valid state.

Retained concerns

  • Low · reliability · inferred: A multisample recipe miss is not side-effect-free. An accepted attachment is marked drawn and its content generation advances before the remaining attachments and resource proof pass. A later miss does not undo those changes before ordinary fallback. The extra mutation can invalidate depth or stencil alias proofs without a corresponding replay draw; no incorrect read or write was established.
Security review details

Security Blast Radius

  • inferred — The new path reaches host Vulkan color attachments through the existing guest draw pipeline. The inspected replay path is confined to matching attachments on the active device; a cached handle alone does not authorize access.

Trust Boundaries and Controls

  • observed — The live registry resolves the current draw's target using the same acquisition logic as ordinary drawing. Replay adds exact owner, image, and view checks and rejects any candidate that would need recreation.

Resilience and Maintainability Implications

  • observed — On a returned replay miss, both production paths call ordinary drawing rather than submitting a rejected recipe. A successful replay returns without issuing a second draw.

Hardening Proposals

  • proposed — Separate attachment validation from publishing draw-induced content changes. Commit the drawn flag and generation only after all replay checks pass, while preserving required preparation and synchronization. Verify that a miss on a later attachment does not publish an extra draw generation for an earlier one.
Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: de08dbfe-45f3-40e6-95c6-327b2a9f0751
Commits

Reviewing files that changed from the base of the PR and between 4dc89c1 and 8eb7c6c.

Files selected for processing: 6

  • core/libs/prx/libSceAgcDriver/Execution/include/Recipe.hpp
  • core/libs/prx/libSceAgcDriver/Graphics/include/MultisampleTarget.hpp
  • core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
  • core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp
  • core/libs/prx/libSceAgcDriver/tests/TargetStateMemo.cpp
  • core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_target_memo_tests.cmake

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

@MarcZX10 MarcZX10 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed — looks good

The change at head 8eb7c6cc19024eaf73b4411f4ee2acfe91e8954d adds multisample draw recipe replay with live attachment validation; the inspected implementation and regression scenario show no verified blocking defect.

What I ran

Read the prepared diff and source context through repo_read.py; no build or test command was run. The author reports benchmark, CTest, and GPU validation results in the PR description; these were not independently run for this review.

Results

Check Result Note
Patch and changed source review passed Six changed files inspected
Build and tests not run Author reports tests; not independently verified

Findings

Blocking

None.

Non-blocking

None.

Not verified

No checks were executed. I read all six changed files marked included in the manifest: Recipe.hpp, MultisampleTarget.hpp, Draw.cpp, MultisampleTarget.cpp, TargetStateMemo.cpp, and agc_driver_target_memo_tests.cmake. The manifest lists no excluded changed files. GPU behavior and reported performance measurements were not independently confirmed.

To get this to a good state

Nothing is required.

@github-actions github-actions Bot added build agc libSceAgc* perf Performance change perf numbers missing perf pull request without a before and after summary line labels Nov 27, 2026
@github-actions

Copy link
Copy Markdown

This pull request is labeled perf, so it needs the summary line of a capture on main and one with the change, from the same title, scene and machine, as the Performance report form asks. Please paste both aps5-summary.jsonl lines, attach the two traces and add the output of tools/trace_digest.py.

@RavenCurseBurg

Copy link
Copy Markdown
Contributor Author

The Snoopy and the Great Mystery Club backyard comparison (PPSA28795, #26599) is still open. I don't have a capture of that scene on both builds. The original report measured recipe misses on an instrumented build. The effect of this PR on frame times in that scene is still unknown.

If someone with the title can capture the backyard, one reproducible pair is main at f1fbda2a7198 and the same checkout with PR head 8eb7c6cc1902 merged in. I verified that the merge applies cleanly. Please use the same machine, save position, camera, resolution and frame window for both runs. Warm the scene and restart the title on each build. Please attach both aps5-trace-*.json.gz files and paste the matching line from each aps5-summary.jsonl. I can run tools/trace_digest.py on those files and post the comparison here. Capture settings

For reference, I reran the repository's digest tool on all four archived synthetic 4× MSAA traces. All four outputs matched their archived digests. These project-shader runs cover 10 presents at 64×4 on the earlier 65ff3ae335ac and 2e566609eeae revisions.

GPU Main fixture Patched fixture
GeForce RTX 4060 Summary · Trace · Digest Summary · Trace · Digest
Intel UHD 770 Summary · Trace · Digest Summary · Trace · Digest

AI-assisted: Codex + GPT-6.2 Astra (xhigh).

@github-actions

github-actions Bot commented Nov 28, 2026 •

Copy link
Copy Markdown

Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.

Pull request Conflicting files (lines on main) Same exports Same new files
PR 11452 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp L4893
PR 21155 core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp L1631-1635
PR 27698 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp L4893
PR 28229 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp L4893
PR 28496 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp L5472-5473

Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.

Pull request Shared files not compared
PR 1395 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 5609 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 5925 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 6188 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 6808 core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp
PR 7256 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 7275 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 7642 core/libs/prx/libSceAgcDriver/Graphics/include/MultisampleTarget.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp
PR 8246 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 9356 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 9387 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 9508 core/libs/prx/libSceAgcDriver/Execution/include/Recipe.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/MultisampleTarget.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp
PR 9712 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 9852 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 9897 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 9915 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 10193 core/libs/prx/libSceAgcDriver/Graphics/include/MultisampleTarget.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp
PR 10351 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 10497 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 11551 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 11825 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 13148 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 13809 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 13863 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp
PR 13920 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp
PR 13928 core/libs/prx/libSceAgcDriver/Graphics/include/MultisampleTarget.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp
PR 13929 core/libs/prx/libSceAgcDriver/Graphics/include/MultisampleTarget.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp
PR 14032 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 14944 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 15343 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 15456 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_target_memo_tests.cmake
PR 15570 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 16879 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 17611 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 19557 core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp
PR 19904 core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp
PR 20519 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 22424 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 22434 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_target_memo_tests.cmake
PR 22647 core/libs/prx/libSceAgcDriver/Execution/include/Recipe.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_target_memo_tests.cmake
PR 23252 core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp
PR 24049 core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp
PR 24083 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 24661 core/libs/prx/libSceAgcDriver/Execution/include/Recipe.hpp
PR 25557 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/tests/TargetStateMemo.cpp
PR 25684 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 26041 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 26630 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 26691 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 27133 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_target_memo_tests.cmake
PR 28142 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 28176 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 28250 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 28470 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 28487 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 28673 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 28808 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp

@JJenkx

JJenkx commented Nov 30, 2026

Copy link
Copy Markdown
Contributor

Windows at this head (8eb7c6cc1902): agc_driver_target_memo, agc_driver_target_memo_draw_pipeline, agc_driver_target_memo_plan_verify, agc_driver_target_memo_verify, agc_driver_target_memo_disabled, agc_driver_color_memo_descriptor_enabled, agc_driver_color_memo_descriptor_disabled, agc_driver_color_memo_descriptor_verify, agc_driver_color_memo_msaa_enabled, agc_driver_color_memo_msaa_disabled, agc_driver_color_memo_msaa_verify, agc_driver_color_memo_proof_enabled, agc_driver_color_memo_proof_disabled, agc_driver_color_memo_proof_verify, agc_driver_color_memo_metadata_enabled, agc_driver_color_memo_metadata_disabled, agc_driver_color_memo_metadata_verify, agc_driver_color_memo_eviction_enabled, agc_driver_color_memo_eviction_disabled, agc_driver_color_memo_eviction_verify, agc_driver_color_memo_fallback_enabled, agc_driver_color_memo_fallback_disabled, agc_driver_color_memo_fallback_verify, agc_driver_color_memo_baseline_enabled, agc_driver_color_memo_baseline_disabled, agc_driver_color_memo_baseline_verify, agc_driver_color_memo_held, agc_driver_color_memo_held, agc_driver_color_memo_held, agc_driver_color_memo_switch, agc_driver_color_memo_switch, agc_driver_color_memo_switch, agc_driver_color_memo_unchanged_enabled, agc_driver_color_memo_unchanged_disabled, agc_driver_color_memo_unchanged_verify, agc_driver_color_memo_depth, agc_driver_color_memo_depth, agc_driver_color_memo_depth, agc_driver_color_memo_claim_enabled, agc_driver_color_memo_claim_disabled, agc_driver_color_memo_claim_verify, agc_driver_color_memo_untracked, agc_driver_color_memo_untracked, agc_driver_color_memo_untracked, agc_driver_color_memo_untracked, agc_driver_color_memo_untracked, agc_driver_color_memo_untracked, agc_driver_color_memo_untracked, agc_driver_color_memo_untracked, agc_driver_color_memo_untracked, agc_driver_color_memo_resident, agc_driver_color_memo_resident, agc_driver_color_memo_resident, agc_driver_target_memo_order_target_only, agc_driver_target_memo_order_pass_only, agc_driver_target_memo_order_both, agc_driver_target_memo_order_both_verify_pass, agc_driver_target_memo_order_both_verify_target, agc_driver_target_memo_order_both_verify, agc_driver_target_memo_recipe_views, agc_driver_multisample_color_recipe pass, 3/3 runs. These are the CTests built from the changed TargetStateMemo.cpp.

Setup:

  • Windows 11 22621, Ryzen 9 5950X, MinGW-w64 GCC 15.2 UCRT r7, Release.
  • The exact PR head was built (not merged into main).
  • 3 runs through the shared FIFO.

The added test lines have no platform guard.

AI-assisted: yes.

@Plyxen Plyxen left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I read the diff at 8eb7c6cc19. Windows 11, GCC 15.2, merged into main at daa61711afe together with other open PRs (so not an isolated build), with ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 and VK_LAYER_KHRONOS_validation on an RTX 5080 (621.24) and a Radeon iGPU (26.11.2).

  • agc_driver_multisample_color_recipe and the multisample tests: pass on both GPUs. The loader log shows the layer inserted and no "was not found" line, and neither run has a VUID- or SYNC-HAZARD line.
  • Control (the same tree with only this PR's source change taken out): agc_driver_multisample_color_recipe fails with "the native multisample color draw did not build a recipe".

The red windows check is a cancelled run.

Not checked: the timings in the body, and a title.

AI-assisted: yes (Claude Code)

@ligmaSec ligmaSec left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RepeatMultisampleTargetView sets drawn and increments contents while checking each attachment. A later attachment miss, resource proof miss, or expired pipeline can then return Rebuild before recording a draw, leaving earlier targets with an advanced content stamp. Could the recipe verify its attachments first and mark them drawn when it commits to recording? A two-target fixture with only the second target retired would exercise this path.

Source review at 8eb7c6cc19. The head trial-merges onto 6ef4f2f73b. Focused Linux checks are queued.

AI-assisted: yes.

@oneandonlydean
oneandonlydean merged commit c48c201 into boykopovar:main Dec 4, 2026
14 of 17 checks passed
DerKarussellbremser added a commit to DerKarussellbremser/AnyPS5 that referenced this pull request Dec 4, 2026
boykopovar#27849 gave DrawWithRecipe a branch for native multisample color targets; the claim stays in front of the single-sample target's lookup.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011TXsSW8zeAgKgHLCFsYwM3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agc libSceAgc* build perf numbers missing perf pull request without a before and after summary line perf Performance change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants