perf(agc): allow compression of packed-float image backing #12559
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/12559"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by Filip722 on 2026-10-28T19:49:22Z.
What
Packed-float images retain raw integer storage to preserve packed values, NaNs and rounding. Using that same atomic-capable format for the backing allocation disables host DCC on RADV, increasing GPU work when those surfaces are rendered and sampled.
Format11_11_10Floatimages with compatibleR8G8B8A8_UINTbacking while retainingR32_UINTstorage views, shader packing and shared-image aliases.Tested
Completed the latest reviewer request using main
184afa49adce16e298c47d136706fd2356198852, selected live at the start of this refresh and newer than the cited58b2753, and exact integrated head64fd6684a3f377b16275a34e96271887b900015b. The history-preserving merge retains the existing four-file feature/fixture diff.The five focused checks pass on both matching sources:
agc_storage_typed_fill_clear,agc_storage_integer_clear,agc_driver_dcc_keys_first_write,agc_driver_dword_pattern_fill,agc_driver_image_converted_unorm. Baseline has only the corresponding test-only overlay. Both verbose logs verify physical AMD Radeon 760M (RADV PHOENIX), six actual Khronos layer insertions, required Vulkan and shader cache disabled; zero VUID errors, missing layers or skips. Release full-native libraries and focused targets build; conventions and whitespace checks pass. GPU/driver/OS: RADV Mesa25.0.7-2+deb13u1, Debian13/Linux7.2.12-x64v3-xanmod1; Ryzen5 7640HS.Three prospective warmed pairs, in predeclared A1,B1,B2,A2,A3,B3 order, all pass scene/focus/input/cache/library/trace-drop audits. No operational failures, numerical exclusions, added repetitions or concurrent builds/GPU work. Mean FPS 20.61318 → 21.78511 (+5.685%); mean GPU work 45.389 → 42.625 ms/present.
Main FPS range 20.51143–20.71786; PR 21.75771–21.81823. All three paired FPS differences are positive and candidate GPU work is lower each time. The observed improvement repeats across these three samples on this machine/scene/session; no universal, cross-title or other-vendor gain is claimed.
PPSA28997 v01.008.001 stationary camp; identical copied save and seven fixed inputs, 1920×1080 internal/output, focused1152×648 Wayland client, mailbox. Each arm ran the scene once, restarted using fresh copies of independently warmed shader/driver caches for each capture, and recorded seconds90:12. Default buffer; only permitted TRACE_SECONDS/TRACE_DIR, no other TRACE/PROFILE switches. Game stdout/stderr inherited the terminal without redirection. Identical attached screenshot-signal/startup-clock observer is disclosed by dirty flags and was removed from the checkout after freezing the libraries; it is not committed. All50 loaded native and9 guest libraries match the frozen hashes; screenshots bracket every window and remain private.
All six original lossless traces, complete summaries/digests, paired results, protocol, hashes and common observer. Every published file and all six decoded original trace hashes are verified after download. The public bundle contains timing-only evidence; no game files, saves, screenshots, shaders, ISA, native libraries, hardware captures or console logs.
The report preserves exact executed sources. Main advanced during the batch to
fd9b3f62d43d6753d28a31a7c285e1f51e9c1b42; no execution of that later runtime is claimed. This supplies the repeated report for the current-main snapshot selected at the start of the requested refresh, not relabeled historical captures.A1
seconds 90:12 from present 2465: 248 presents, frame p50 48.4 / p90 49.0 / p99 52.2 / max 52.7 ms, GPU busy 45.2 ms per present
AMD Radeon 760M (RADV PHOENIX), radv Mesa 25.0.7-2+deb13u1, Linux 7.2.12-x64v3-xanmod1, 1920x1080, commit
184afa49ad(dirty), dropped: noSlowest frames (largest slices inside each, inclusive)
Threads (ms per frame)
Largest slices (ms per frame, inclusive, all threads): batch 45.4, Driver.Packet 36.0, Driver.Packet.draw 34.1, Driver.Draw 34.0, Driver.Draw.draw_enqueued 29.3, Recorder.Sync 28.6, Driver.WorkerWait 9.8, Driver.WorkerWait.idle_and_completion_poll 9.8, VideoOut.Flip 9.6, Driver.Present 9.5
Longest waits
Largest GPU batches (GPU ranges inside, and the CPU slices that recorded each, inclusive)
B1
seconds 90:12 from present 2552: 262 presents, frame p50 45.9 / p90 46.4 / p99 47.0 / max 47.1 ms, GPU busy 42.5 ms per present
AMD Radeon 760M (RADV PHOENIX), radv Mesa 25.0.7-2+deb13u1, Linux 7.2.12-x64v3-xanmod1, 1920x1080, commit
64fd6684a3(dirty), dropped: noSlowest frames (largest slices inside each, inclusive)
Threads (ms per frame)
Largest slices (ms per frame, inclusive, all threads): batch 42.6, Driver.Packet 34.7, Driver.Packet.draw 33.0, Driver.Draw 32.9, Driver.Draw.draw_enqueued 28.4, Recorder.Sync 27.9, Driver.WorkerWait 8.7, Driver.WorkerWait.idle_and_completion_poll 8.7, VideoOut.Flip 8.5, Driver.Present 8.5
Longest waits
Largest GPU batches (GPU ranges inside, and the CPU slices that recorded each, inclusive)
B2
seconds 90:12 from present 2475: 262 presents, frame p50 45.9 / p90 46.5 / p99 47.2 / max 51.7 ms, GPU busy 42.7 ms per present
AMD Radeon 760M (RADV PHOENIX), radv Mesa 25.0.7-2+deb13u1, Linux 7.2.12-x64v3-xanmod1, 1920x1080, commit
64fd6684a3(dirty), dropped: noSlowest frames (largest slices inside each, inclusive)
Threads (ms per frame)
Largest slices (ms per frame, inclusive, all threads): batch 42.6, Driver.Packet 34.6, Driver.Packet.draw 32.8, Driver.Draw 32.7, Driver.Draw.draw_enqueued 28.7, Recorder.Sync 28.0, Driver.WorkerWait 8.7, Driver.WorkerWait.idle_and_completion_poll 8.7, VideoOut.Flip 8.5, Driver.Present 8.5
Longest waits
Largest GPU batches (GPU ranges inside, and the CPU slices that recorded each, inclusive)
A2
seconds 90:12 from present 2464: 249 presents, frame p50 48.3 / p90 48.7 / p99 49.1 / max 50.8 ms, GPU busy 45.4 ms per present
AMD Radeon 760M (RADV PHOENIX), radv Mesa 25.0.7-2+deb13u1, Linux 7.2.12-x64v3-xanmod1, 1920x1080, commit
184afa49ad(dirty), dropped: noSlowest frames (largest slices inside each, inclusive)
Threads (ms per frame)
Largest slices (ms per frame, inclusive, all threads): batch 45.4, Driver.Packet 35.9, Driver.Packet.draw 34.1, Driver.Draw 34.0, Driver.Draw.draw_enqueued 29.5, Recorder.Sync 28.8, Driver.WorkerWait 9.7, Driver.WorkerWait.idle_and_completion_poll 9.7, VideoOut.Flip 9.5, Driver.Present 9.5
Longest waits
Largest GPU batches (GPU ranges inside, and the CPU slices that recorded each, inclusive)
A3
seconds 90:12 from present 2464: 247 presents, frame p50 48.6 / p90 49.2 / p99 53.6 / max 57.0 ms, GPU busy 45.5 ms per present
AMD Radeon 760M (RADV PHOENIX), radv Mesa 25.0.7-2+deb13u1, Linux 7.2.12-x64v3-xanmod1, 1920x1080, commit
184afa49ad(dirty), dropped: noSlowest frames (largest slices inside each, inclusive)
Threads (ms per frame)
Largest slices (ms per frame, inclusive, all threads): batch 45.5, Driver.Packet 36.3, Driver.Packet.draw 34.4, Driver.Draw 34.4, Driver.Draw.draw_enqueued 29.4, Recorder.Sync 28.7, Driver.WorkerWait 9.7, Driver.WorkerWait.idle_and_completion_poll 9.7, VideoOut.Flip 9.5, Driver.Present 9.5
Longest waits
Largest GPU batches (GPU ranges inside, and the CPU slices that recorded each, inclusive)
B3
seconds 90:12 from present 2537: 262 presents, frame p50 45.8 / p90 46.4 / p99 47.3 / max 50.5 ms, GPU busy 42.7 ms per present
AMD Radeon 760M (RADV PHOENIX), radv Mesa 25.0.7-2+deb13u1, Linux 7.2.12-x64v3-xanmod1, 1920x1080, commit
64fd6684a3(dirty), dropped: noSlowest frames (largest slices inside each, inclusive)
Threads (ms per frame)
Largest slices (ms per frame, inclusive, all threads): batch 42.5, Driver.Packet 34.6, Driver.Packet.draw 32.8, Driver.Draw 32.7, Driver.Draw.draw_enqueued 28.2, Recorder.Sync 27.6, Driver.WorkerWait 8.7, Driver.WorkerWait.idle_and_completion_poll 8.7, VideoOut.Flip 8.5, Driver.Present 8.5
Longest waits
Largest GPU batches (GPU ranges inside, and the CPU slices that recorded each, inclusive)
Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)Agreed landing orders remain #12559 → #7085 and #12559 → #11920; downstream authors own integration and combined-path validation. Earlier f7 performance report retains its original labels and is superseded for this refresh by the six captures above. Historical physical Windows/NVIDIA/AMD reports remain supplementary; they are not executions of this head.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-28T19:51:48Z.
Review: CHANGES_REQUESTED
Reviewed — changes requested
The format change and supplied performance report are reviewable, but this branch currently conflicts with the open #7085 change in
Texture.cppand has no agreed merge order recorded.What I ran
162375208e32cb0c5f21da7f964bd2a227e31fbcagainstmainat319621ba2e578bd053b0baba2877fe70520e0737.git diff --check upstream/main...refs/review/pr-12559— passed.git merge-tree --write-tree upstream/main refs/review/pr-12559— clean (6249fbdbe5023afe773fe3b9853b6be1c8ea36ac).git merge-tree --write-tree refs/review/pr-7085 refs/review/pr-12559— content conflict incore/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp.Findings
Blocking
Texture.cpp. #7085 changes the same clear paths, and this PR's own description says the byte encoding must be retained when resolving the later merge. CONTRIBUTING.md asks authors to agree on ordering for overlapping changes and declare it withDepends on. Please coordinate the integration order with #7085's author and record the agreed order in the checklist/body (or otherwise resolve the overlap against the agreed branch). The current checklist saysDepends on: none, and I could not find an agreement with #7085.Non-blocking
trace_digest.pyoutput are included; and the report limits its claim to one scene and one GPU. I have not independently downloaded or rerun the traces or the GPU validation.Not verified
To get this to a good state
Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-28T20:24:12Z.
Review: CHANGES_REQUESTED
Checked the diff and found nothing to change:
clearImagesplits the 32-bit value into four bytes only when the backing isR8G8B8A8_UINTover anR32_UINTstorage format, and all three clear sites (upload,clearByKeysFill,FillClear) use it.storageFormat, andImageFormat()now reports the real allocation to the depth-copy checks.0x01234567,0xffffffff) would fail with an unencoded clear on the RGBA8 backing.The only open point is the merge order with #7085. This PR merges cleanly on current main, so it should land first; #7085 then rebases and keeps
clearImageat its clear calls. @MarcZX10 please re-review once you agree with that order; no change is needed from the author.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-28T20:49:31Z.
Review: APPROVED
Re-checked — new coordination, looks good
The merge-order blocker is resolved: the authors agreed that #12559 lands before #7085, and #7085 now declares this PR as a prerequisite.
What I ran
162375208e32cb0c5f21da7f964bd2a227e31fbc; currentmain:319621ba2e578bd053b0baba2877fe70520e0737. Merge preview onto currentmainis clean, tree6249fbdbe5023afe773fe3b9853b6be1c8ea36ac.git diff --check upstream/main...refs/review/pr-12559-current— passed (no output).Texture.cpp, as expected for the declared order; #7085 is responsible for the later integration and combined-path revalidation.Results
mainTexture.cpp; order is now explicitly #12559 → #7085Raw merge and diff-check output
Negative control
Not run in this session. The PR's paired baseline/candidate captures are supplied in its report; I did not independently reproduce the performance comparison.
Findings
Blocking
None found for this PR's standalone change and agreed landing order.
Non-blocking
The later #7085 integration must retain the byte encoding, physical-mip clear wrapper, allocation format propagation, and depth-copy eligibility described by the authors. #7085's author says they will revalidate the combined paths after integration; no combined result is claimed here.
Sources
Not verified
I did not rerun the GPU captures, paired trace digests, or focused CTests. Linux and specialized hosted jobs are skipped for this PR. The #7085 combined integration is not yet available to test.
To get this to a good state
No further change is needed on #12559 for the agreed order. I will recheck #7085's integration and tests after it advances onto this prerequisite.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-29T08:36:14Z.
Review: CHANGES_REQUESTED
Re-reviewed exact head
7db6dff5fcd076d70c669e8b234aa1d1d7a77f2a. Your current-main focused Vulkan results are useful, but the performance refresh is explicitly pending, and the existing captures predate the current shader integration. Theperflabel check also confirms the required same-title, same-scene, same-machinemain/changeaps5-summary.jsonllines, traces, andtools/trace_digest.pyoutput are absent for this integration. I cannot retain approval without that required performance evidence. I did not run GPU tests locally.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-30T01:42:26Z.
Review: APPROVED
Re-checked — looks good
On exact head
64fd6684a3f377b16275a34e96271887b900015b, the matched performance report and focused Vulkan evidence address the outstanding review points, and the hosted Windows check now passes.The three paired captures use the same Radeon 760M, title scene, settings and session; the author reports all five focused checks passing on both baseline and change with no new VUIDs, and the posted trace digests were verified in my earlier check. Current
mainhas since changed the AGC CMake and recorder test files, but not the PR'sTexture.hpporTexture.cpp; GitHub reports the PR mergeable. These GPU runs are author-reported; I did not build or run tests locally. Linux and specialized hosted jobs are skipped. Performance report, verified trace/digest check, Windows CI.