perf(agc): avoid redundant texture-array CPU transfers #6718

Merged
Zenodeon merged 12 commits from upstream-pr/6718 into main 2026-10-21 19:30:01 +00:00
Zenodeon commented 2026-10-16 07:01:49 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Zenodeon on 2026-10-16T07:01:49Z.


What

Scoped texture-array refresh can still perform unnecessary CPU transfers after #6202: its CPU fallback uploads the whole image, and a failed whole-descriptor write collection can erase valid history for an active committed slice.

This PR addresses that resource path in separately reviewable implementation commits:

  • For uncompressed, single-mip, non-thick 2D arrays with selections covering complete physical layers, read/snapshot, copy, detile and upload only selected layers. Refresh and upload use one eligibility check. Unselected image contents and pending GPU results remain intact. Unsupported layouts and partial physical-layer selections keep the whole-image fallback. Staging/device allocations remain full-sized.

  • If unused slices include uncommitted memory, preserve generations obtained from successful collections of committed tracked units. Collect the selected scope before examining write stamps and report range-specific generations. Unknown units remain unknown; actual CPU writes still invalidate the affected content. Apply the collection fallback after uploads, clears, copies and write-back settlement.

  • Expire collection memo hits when the allocation-registry generation changes, in the epoch map, per-thread ring, shared ring and Windows UntrackedHint memo. A proof from an earlier mapping at the same address must not hide genuine CPU writes or give an unregistered slice complete history. The collection CPU-write regression covers all three collection caches and an uncached control. Windows hint regressions additionally cover allocation replacement within one collect epoch, unchanged hints and guest-byte preservation, with memoization enabled and disabled.

No title checks, skipped passes, fabricated success, public API changes or shader-semantic changes. W/keyboard configuration is local and excluded.

Dependencies: #6202. #6367 is merged upstream; its duplicate integration commit has been dropped while its regression remains available from main. The first commit integrates #6202 with attribution, retaining its overlapping-array regression. #6202 is MiguelAdolfsen's revision 60229fae6469. Our incremental review range is 52a64aef6...stk-resource-performance-pr, limited to texture handling, its private header, test registration and the array regression. Dependency commits can be dropped as upstream merges them.

Upstream overlap rechecked before publication. #6202 supplies scoped refresh but its CPU fallback still uploads the whole array. Related #6273/#6346 optimize write-tracker proofs, #6678 defers import settling, and #6701 changes Windows stamp allocation; those mechanisms are separate. #1191 residency, #6197 import-window changes and the separate write-watch restoration experiment are excluded from this source branch.

Tested

Latest reviewer follow-up validation — 2026-10-20. Based on upstream main 5f7e30233e62ae5fdb7a6e3257698bc2e550bcc2; current head 9fe1f963c8f1849478d86dc77e23cfcc4be1278e. The requested Windows hint-memo addition and regression are folded into the existing allocation-generation fix commit c19dcecfec8954233d0f22da969422c8eed7ac4f, preserving authorship and the existing commit count. UntrackedHint reads the allocation generation before its walk and stores/compares mapping in threadHintMemo. #6820 is restacked on updated #6718; its three incremental commits remain patch-equivalent.

Before the hint repair, agc_hint_mapping_history_cached fails with a cached hint walk hid a CPU store across allocation replacement, while _uncached passes. Main with the identical test-only fixture reproduces that result. After repair, both pass; the fixture also verifies unchanged hints, unchanged allocation replacement without invented CPU writes, and guest-byte preservation.

Fresh Release builds on Windows 11 build 26200, Intel Core i7-13700, NVIDIA GeForce RTX 4070 / driver 610.88, GCC 15.2, SPIR-V Tools enabled. This branch: 17/17 pass, zero skips, 14.58 s. #6718: 17/17 pass, zero skips, 14.58 s. Main's shared suite: 10/10 pass, zero skips, 11.43 s, plus its matching APS5_NO_HOST_IMPORT=1 array control 1/1 pass, 0.89 s. The separate main hint negative-control failure above is expected, not counted as a passing main test.

All matched GPU runs use ANYPS5_REQUIRE_VULKAN=1, ANYPS5_NO_SHADER_CACHE=1, VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation and the same GPU. Loader logs confirm Khronos 1.4.304 actually loads, with no missing-layer diagnostics. Comparing main's shared tests plus its matching no-import control against the candidate finds identical validation-error messages: two instances of the existing VUID-VkDeviceCreateInfo-pNext-pNext for structure 1000574000 unknown to this older layer. No new VUID errors; zero total validation errors is not claimed.

Conventions against the frozen canonical main revision and diff checks pass. The required origin/main check was attempted and still fails with Windows WinError 206 because that fork baseline is stale. These are focused correctness results; no fresh gameplay, performance or Linux/vendor retest is claimed. Historical evidence and the previously documented full-suite Windows build limitation below remain applicable to their named revisions.

Earlier conflict-resolution validation — 2026-10-20. Rebased onto upstream main 43cd8f4c47f4c81185c4ca14b84240e0748e3459. Current head: c778381786adc976f53e7761551751eb0fbae955. Resolved the new conflict with merged #6772: cachedStorageTexture retains main's ArrayLayerWindow transformation and resets precomputed guest size when the window changes the base, while accepting the optional scoped layer-refresh range. The attributed #6202 integration is now a8360de91; all remaining implementation and regression commits are patch-equivalent to the previous head. Original authorship is retained.

Fresh Release focused targets rebuilt on Windows 11 build 26200, Intel Core i7-13700, NVIDIA GeForce RTX 4070 / driver 610.88, GCC 15.2, SPIR-V Tools enabled. Main: 10/10 pass, zero skips, 15.41 s; its array fixture also passes 1/1 in 1.77 s with APS5_NO_HOST_IMPORT=1 to match the added CPU-only array configuration. PR: 15/15 pass, zero skips, 23.01 s. Both use ANYPS5_REQUIRE_VULKAN=1, ANYPS5_NO_SHADER_CACHE=1, VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation and the same GPU. Logs confirm the Khronos 1.4.304 layer actually loads, with no missing-layer diagnostics. Comparing the shared tests and the matched no-import configuration finds no new VUID error signatures: main's ordinary suite plus its no-import control produce the same two unknown-extension-structure device-create errors as the candidate (VUID-VkDeviceCreateInfo-pNext-pNext, structure 1000574000 unknown to this older layer). Zero total validation errors is not claimed.

Upstream Windows test-build limitation: unmodified main's newly merged agc_driver_image_array_window_past_layer_limit_tests does not compile with the supported Windows GCC: ImageArrayWindowPastLayerLimit.cpp:33: requested alignment '65536' exceeds object file maximum 8192. The focused passing suites exclude that dedicated GPU test; the shared graphics binary does run RunTextureTilingTests, including main's array-window layout checks. No unrelated fixture change is included in this rebase. Full-suite Windows success is not claimed.

Conventions against canonical upstream/main and diff checks pass; the stale fork origin/main checker still hits Windows command-line length limits. No fresh gameplay/performance measurement, raw evidence upload, or Linux/vendor retest is claimed.

Earlier rebase validation — 2026-10-20 (main 661f8b717, historical). Rebased onto upstream main 661f8b717. Current head: 6ef3a78d872bd2057bd61c564db2b79c79e3d270; original authorship is retained. The #6202 integration now preserves main's per-layer GuestLayerOffset/color-view pitch checks and the newer BuildLookups lifetime management. Scoped layer refresh and all allocation-generation regression assertions are retained. The attributed #6202 integration is ad7bd6020; no unrelated integration code was added.

Windows 11 build 26200, Intel Core i7-13700, NVIDIA GeForce RTX 4070 / driver 610.88, GCC 15.2 / Release / SPIR-V Tools. Fresh focused targets rebuilt for main and this head. Main: 10/10 pass, zero skips, 11.98 s. PR: 15/15 pass, zero skips, 13.95 s, including both array-layer modes and all four allocation-history cache/control tests. Both use ANYPS5_REQUIRE_VULKAN=1, ANYPS5_NO_SHADER_CACHE=1, VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation and the same GPU. Loader logs confirm the Khronos 1.4.304 layer actually loads; neither log reports a missing requested layer. No new VUID errors compared with main. Both include the same VUID-VkDeviceCreateInfo-pNext-pNext for an extension structure unknown to that older validation layer; zero total VUIDs is not claimed.

The final runs load rebuilt unpatched libraries, with older DLL copies beside the test executables moved aside. Conventions against canonical upstream/main and diff checks pass. The required origin/main check was attempted but its stale fork baseline hits Windows command-line length limits; the canonical target baseline succeeds. No fresh gameplay/performance measurement, raw-trace upload or Linux/vendor retest is claimed. Earlier performance numbers remain historical evidence for their explicitly named revisions.

Previous rebase validation — 2026-10-19 (historical). Rebased onto upstream main 6b8228b2bfecb895010e379362c6d0bb288c2d47. Current head: 1505305e1722698d90ae9340d223852baf05773b. Original authorship is retained.

The duplicate #6367 commit is dropped because #6367 is merged upstream. #6202 remains an attributed dependency; its rebased integration commit is ad67b6455. The test-registration conflict keeps all current upstream abi_deferred_*, lazy and lazy_sync modes and our host-import-disabled array test. Collection-cache regression assertions remain intact.

  • Windows RTX 4070: 25/25 focused tests pass, zero skips, 26.65 s summed test time; longest 11.57 s.
  • Ubuntu/WSL2 lavapipe: 24/24 focused tests pass, zero skips, 14.00 s summed test time; longest 6.20 s.
  • Release / GCC 15.2 / SPIR-V Tools; current bundled dependency gitlinks. Every individual test stays within 30 seconds. Conventions against canonical upstream and diff checks pass. WSL/lavapipe is software-Vulkan coverage, not a native Linux vendor-driver retest.
  • These are fresh source-correctness results, not new gameplay or performance measurements. Earlier game measurements and independent hardware reports below apply to their explicitly named pre-rebase revisions. No game/runtime snapshot, evidence bundle or PR status is changed by this rebase.

Earlier validation and investigation (historical revisions):

Rebased using blawesom's handoff, preserving the original seven commits and authorship, onto upstream 8f0e276c61086c5192077018910e5dbc04c3a96b. Previous review-repair head: 619e4c9c6e281df0a68ce5cd42a364df6de9bf10. The extra commits add a failing collection-history regression, its mapping-generation repair, and an uncached-backend precondition for the existing array fixture. Existing lazy/lazy_sync test modes and dependency regressions are retained.

Review failure reproduced and repaired on Linux. Ubuntu 26.04.1 under WSL 2, kernel 6.18.54.1-microsoft-standard-WSL2, GCC 15.2.0, CMake 4.2.3, Release, SPIR-V Tools enabled, bundled dependency revisions. Vulkan: Mesa 26.0.8 lavapipe/llvmpipe, LLVM 21.1.8 (software driver). The production write-watch availability probe passes; none of the tests below skipped.

Matched reproduction, before a26b8d887 and repaired d6f654b92, both on upstream 084bd39a0:

Regression Before repair After repair
agc_driver_array_layer_target Fails: unused slices unexpectedly have complete write history Pass
agc_driver_array_layer_target_cpu Same failure Pass
agc_collect_mapping_history_map Fails: cached collect hid a CPU store across allocation replacement Pass
agc_collect_mapping_history_ring Same failure Pass
agc_collect_mapping_history_shared Same failure Pass
agc_collect_mapping_history_uncached Pass Pass

The memo cache matched the ordering epoch and unwatch serial but not the allocation registry generation. Mapping replacement in the same epoch could therefore reuse stale write history. The repair requires the registry generation to match in every memo mode. The original array assertion is retained, with an added uncached collection check; no assertion was weakened.

Final-rebase validation at 619e4c9c6:

  • Linux/lavapipe: 24/24 pass, no skips, 14.36 s total, longest test 5.59 s.
  • Windows RTX 4070: 25/25 pass, 22.79 s total, longest test 7.44 s.
  • All tests use a 30-second timeout. The Windows-only CPU-snapshot test is not registered on Linux.
  • Conventions against canonical upstream main and diff checks pass.

These are correctness results, not new game-performance measurements. The Linux AMD reviewer machine has not been retested here; WSL/lavapipe does not qualify native AMD/NVIDIA driver behavior. #6820's separate native Linux NVIDIA report is outside this update. No shader/residency changes, local input configuration or evidence bundle are included.

Independent Windows AMD validation — LeandroLP23, 2026-10-18. The reviewer tested PR head 619e4c9c6 merged cleanly onto main 6efb7261b: Radeon 860M (RDNA 3.5 APU, driver 32.0.13058.8001), Ryzen AI 7 350, Windows 11 26300, WinLibs GCC 15.2.0, Release. Both agc_driver_array_layer_target and agc_driver_array_layer_target_cpu passed all three runs; the 14 tests selected by agc_recorder|agc_collect|write_watch|write_history|shared_write|array_layer also passed.

Their SuperTuxKart PPSA69421 00.001.000 performance check measured the menu with no input, 60 seconds per run, using tools/title_run.py and presents per second over the whole run. The first run of each build started with an empty AnyPS5 shader cache; both builds ran consecutively on mains power.

Reviewer menu test Run 1 (cold) Run 2 Run 3
main 6.6 FPS 6.7 FPS 6.7 FPS
main + this PR 6.7 FPS 6.7 FPS 6.7 FPS

Scene distinction: the reviewer measured the menu; our historical performance measurements below used the Abyss race scene at the starting grid, with Tux, easy difficulty and four karts. The reviewer found no menu FPS improvement and did not measure racing performance. Their results add independent Windows AMD correctness coverage; they neither confirm nor contradict our race-scene measurements, and do not establish whether the menu exercises the selected-layer transfers this PR removes. The hardware, builds and capture windows also differ, so these FPS values must not be compared directly.

Related overlap: #6169 changes which completed tracker generation a concurrent memo hit returns; this repair adds allocation-generation eligibility. The conditions are distinct, and reconciliation must retain both if both changes land. #6759 remains separate.

Historical publication validation: upstream 5d9dcc42d2ec5401aebd089028b8d4d7410a77b4, PR head 3fc42c0a221ee93b93acfb7cecb64840c80a3972. Complete Release libs and focused test targets rebuilt with GCC 15.2, -O3 -DNDEBUG, BUILD_TESTING=ON, SPIR-V Tools enabled. Windows 10.0.26200, Intel Core i7-13700, 32 GiB RAM, NVIDIA RTX 4070 12 GiB, driver 591.86. Complete runtime snapshots record source/dependency revisions, flags and SHA-256 hashes.

At publication: 16/16 focused tests pass in 20.02 seconds, each under 30 seconds. Conventions and diff checks pass. These tests cover array layers with host imports enabled/disabled, retained units, upload lifetime/failure, split write-back, host-import retirement, CPU snapshots, graphics, depth clears/storage/reuse, one-slice aliasing, write-back overhang and write-watch coverage. Linux/lavapipe was untested at publication; the new Linux results are recorded above. Native AMD/Intel hardware remains untested locally.

Pre-fix evidence from the preserved regression runs (included with logs):

CPU fallback: a draw into slice 0 of the first array stored the next target's results,
which only its unused second slice overlaps
Write history: an uncommitted unused slice erased the active slice's write history

The array tests check first/last active slices, untouched neighboring GPU results, subsequent alias reads, genuine CPU writes, repeated unchanged refreshes, pending-result retention and image version. #6367's separate unregistered-unused-slice and retirement cases remain present. Existing graphics/resource tests exercise broader layouts; targeted exhaustive coverage of every unsupported-layout combination is not claimed.

Gameplay measurements below are historical equivalent integration builds, not measurements of the rebased head or bare current main. They compare both our resource changes together. Baseline ebc89db25587 and candidate 791d12671372 hold #6367, #6202's original 3a39b6cfd implementation, and Scott Schuster/TheAggie's rendering experiment 45944fbbe0dc constant. The updated #6202 revision adapts the newer upstream API; current-head game measurements must be repeated before readiness. No dependency or shader improvement is credited to this PR.

SuperTuxKart PPSA69421: Abyss starting grid, Tux, easy, four karts, 1920x1080, identical settings/configuration, same machine/session. Three alternating baseline/candidate pairs, warmed caches and separate restarts, 60-second lead-in, 120-second window, no input, inherited game logs. Only APS5_TRACE_SECONDS=60:120 enabled for acceptance captures.

Pair Baseline FPS Candidate FPS Throughput gain Presents baseline/candidate Baseline p50/p90/p99 ms Candidate p50/p90/p99 ms
1 7.508 7.928 5.60% 901 / 952 136.931/160.672/166.014 123.868/136.366/142.151
2 5.189 8.096 56.02% 623 / 972 188.031/198.624/295.121 118.283/140.110/144.278
3 4.855 7.944 63.63% 583 / 954 199.604/215.177/307.007 120.602/144.078/148.899

The candidate remains around 8 FPS; it is not smooth gameplay. Baseline variability remains unexplained. A repeatable 20% gain is not established: pair 1 improves only 5.60%. The larger pairwise gains must not be presented alone as representative.

All six frame windows and runtime hashes were verified. Long detailed event timelines overflowed; independently recorded frame timestamps/percentiles and phase totals remained complete. trace_dropped is retained in the summary lines. Complete separate 10-second diagnostics attribute the mechanism: adding the history fix to the selected-layer runtime reduces upload waits from 5 to 2/frame and refresh write-back waits from 3 to 0/frame; median 160.132 to 138.795 ms. Measured GPU batches including synchronous work fall from 45.884 to 37.730 ms/frame. Recorded-only summary GPU numbers omit synchronous fallback batches; nested/concurrent CPU/GPU costs must not be added.

The preserved candidate integration completed 900.578 seconds of automatic driving across multiple laps, with sampled scenery correct and no matched fatal/assertion/device-loss signatures. A clean finite race finish is not a pass: baseline and candidate both exit 0xc0000409; baseline debugging reached LibcException::DefaultTerminate() / abort(), with the underlying exception unresolved. vkQuake produced no frames in either 40-second startup check, so cross-title rendering is inconclusive. Controls/audio were previously user-confirmed on the integration; fresh confirmation on this rebased head is pending.

The rendering experiment is absent from the PR source. It has a known flat-interpolation semantic-test failure in game integrations; the publishable source graphics test passes, and no semantic guard was weakened. The 15-minute integration check does not validate that separate shader experiment's semantics.

Evidence: the six original acceptance summary lines are included below. Full trace files, trace-digest reports and SHA-256 digests, runtime manifests, pre-fix failure logs and fresh correctness results are packaged locally in an 18.37 MiB review bundle; the bundle is retained locally and has not been uploaded, at the author's request. No game assets or binaries are included. Full trace evidence is not publicly attached.

Original acceptance summary lines, pairs 1-3 (baseline then candidate)
{"commit":"ebc89db25587","dirty":false,"env":{"APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_SECONDS":"60:120"},"gpu":"NVIDIA GeForce RTX 4070","driver":"NVIDIA 591.86","os":"Windows 10.0.26200","resolution":"1920x1080","window":{"spec":"seconds 60:120","first_present":338,"ms":120006.155},"presents":901,"frame_ms":{"p50":136.931,"p90":160.672,"p99":166.014,"max":203.87},"gpu_busy_ms_per_present":10.172,"worker_busy_pct":{"queue worker 0x0":15.862},"top_phases_ms_per_frame":{"Driver.EndSubmission":10.875,"Driver.Packet":10.245,"Driver.Packet.draw":8.345,"Driver.Draw":8.288,"Driver.Draw.draw_enqueued":5.677,"Driver.Draw.shader_compile_and_link":2.082,"Shader.DrawStage":1.231,"Shader.DrawStage.capture_resources":0.736},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":72.903,"events_lost":149219,"totals_full":false}},"trace":"aps5-trace-ebc89db25587-39984.json.gz"}
{"commit":"791d12671372","dirty":false,"env":{"APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_SECONDS":"60:120"},"gpu":"NVIDIA GeForce RTX 4070","driver":"NVIDIA 591.86","os":"Windows 10.0.26200","resolution":"1920x1080","window":{"spec":"seconds 60:120","first_present":392,"ms":120077.139},"presents":952,"frame_ms":{"p50":123.868,"p90":136.366,"p99":142.151,"max":153.52},"gpu_busy_ms_per_present":11.698,"worker_busy_pct":{"queue worker 0x0":10.584},"top_phases_ms_per_frame":{"Driver.Packet":12.569,"Driver.Packet.draw":8.278,"Driver.Draw":8.223,"Driver.Draw.draw_enqueued":5.476,"Driver.Draw.shader_compile_and_link":2.223,"Shader.DrawStage":1.399,"Shader.DrawStage.capture_resources":0.796,"Driver.EndSubmission":0.775},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":64.349,"events_lost":200185,"totals_full":false}},"trace":"aps5-trace-791d12671372-55468.json.gz"}
{"commit":"ebc89db25587","dirty":false,"env":{"APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_SECONDS":"60:120"},"gpu":"NVIDIA GeForce RTX 4070","driver":"NVIDIA 591.86","os":"Windows 10.0.26200","resolution":"1920x1080","window":{"spec":"seconds 60:120","first_present":267,"ms":120050.913},"presents":623,"frame_ms":{"p50":188.031,"p90":198.624,"p99":295.121,"max":299.775},"gpu_busy_ms_per_present":9.824,"worker_busy_pct":{"queue worker 0x0":21.551},"top_phases_ms_per_frame":{"Driver.EndSubmission":29.752,"Driver.Packet":11.769,"Driver.Packet.draw":8.613,"Driver.Draw":8.557,"Driver.Draw.draw_enqueued":5.662,"Driver.Draw.shader_compile_and_link":2.366,"GpuMutex.wait.flush":1.585,"Shader.DrawStage":1.529},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":93.655,"events_lost":56162,"totals_full":false}},"trace":"aps5-trace-ebc89db25587-33172.json.gz"}
{"commit":"791d12671372","dirty":false,"env":{"APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_SECONDS":"60:120"},"gpu":"NVIDIA GeForce RTX 4070","driver":"NVIDIA 591.86","os":"Windows 10.0.26200","resolution":"1920x1080","window":{"spec":"seconds 60:120","first_present":361,"ms":120051.935},"presents":972,"frame_ms":{"p50":118.283,"p90":140.11,"p99":144.278,"max":148.017},"gpu_busy_ms_per_present":11.672,"worker_busy_pct":{"queue worker 0x0":8.674},"top_phases_ms_per_frame":{"Driver.Packet":10.019,"Driver.Packet.draw":8.225,"Driver.Draw":8.172,"Driver.Draw.draw_enqueued":5.708,"Driver.Draw.shader_compile_and_link":1.97,"Shader.DrawStage":1.19,"Shader.DrawStage.capture_resources":0.72,"Driver.EndSubmission":0.688},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":68.984,"events_lost":183536,"totals_full":false}},"trace":"aps5-trace-791d12671372-51232.json.gz"}
{"commit":"ebc89db25587","dirty":false,"env":{"APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_SECONDS":"60:120"},"gpu":"NVIDIA GeForce RTX 4070","driver":"NVIDIA 591.86","os":"Windows 10.0.26200","resolution":"1920x1080","window":{"spec":"seconds 60:120","first_present":252,"ms":120078.225},"presents":583,"frame_ms":{"p50":199.604,"p90":215.177,"p99":307.007,"max":314.4},"gpu_busy_ms_per_present":10.816,"worker_busy_pct":{"queue worker 0x0":19.529},"top_phases_ms_per_frame":{"Driver.EndSubmission":27.794,"Driver.Packet":12.423,"Driver.Packet.draw":9.623,"Driver.Draw":9.558,"Driver.Draw.draw_enqueued":6.488,"Driver.Draw.shader_compile_and_link":2.469,"GpuMutex.wait.flush":2.018,"Shader.DrawStage":1.54},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":93.336,"events_lost":69182,"totals_full":false}},"trace":"aps5-trace-ebc89db25587-49216.json.gz"}
{"commit":"791d12671372","dirty":false,"env":{"APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_SECONDS":"60:120"},"gpu":"NVIDIA GeForce RTX 4070","driver":"NVIDIA 591.86","os":"Windows 10.0.26200","resolution":"1920x1080","window":{"spec":"seconds 60:120","first_present":352,"ms":120085.693},"presents":954,"frame_ms":{"p50":120.602,"p90":144.078,"p99":148.899,"max":152.774},"gpu_busy_ms_per_present":11.716,"worker_busy_pct":{"queue worker 0x0":12.609},"top_phases_ms_per_frame":{"Driver.Packet":10.967,"Driver.Packet.draw":8.099,"Driver.Draw":8.046,"Driver.Draw.draw_enqueued":5.38,"Driver.EndSubmission":4.898,"Driver.Draw.shader_compile_and_link":2.154,"Shader.DrawStage":1.345,"Shader.DrawStage.capture_resources":0.771},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":65.201,"events_lost":180884,"totals_full":false}},"trace":"aps5-trace-791d12671372-52320.json.gz"}

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
  • 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: #6202
  • Fixes: none
  • Unblocks: none claimed; SuperTuxKart PPSA69421 is the regression workload
  • GPUs tested: NVIDIA GeForce RTX 4070, driver 610.88, Windows 11 build 26200 (latest rebase); earlier validation: NVIDIA RTX 4070, driver 591.86, Windows 11 10.0.26200; Mesa 26.0.8 lavapipe/llvmpipe (LLVM 21.1.8), Ubuntu 26.04.1/WSL 2; independent reviewer: AMD Radeon 860M, driver 32.0.13058.8001, Windows 11 26300; native Linux hardware retest pending
  • AI-assisted: yes, OpenAI Codex

Remaining validation: dependency reconciliation, fresh current-head gameplay comparisons, cross-title validation and investigation of the finite-race exit failure. Marked ready for review at the author's request; these gaps remain unresolved. No black-rendering, 30-FPS or repeatable-20%-gain claim.

Separate follow-up: partial-page write-watch restoration

A standalone correctness follow-up is published: restore write-watch coverage for remapped pages. It restores CPU-write tracking for complete 4 KiB private remappings inside an excluded 64 KiB import block, preserving neighboring exclusions and stale-generation checks. It has no dependency on this PR and includes no residency or shader changes.

Separately, a local integration of this PR, that repair and #1191's opt-in linear-target residency was evaluated with the same shader revision held constant. Three alternating 120-second residency-off/on pairs averaged 8.35/10.99, 8.20/10.80 and 8.38/11.27 FPS. These local results isolate the residency toggle: the 31.6–34.4% gain belongs to #1191's residency work and is not an additional gain claimed by this PR or by the write-watch repair. Detailed long event timelines overflowed; frame windows were complete, and separate complete short diagnostics showed the three synchronous draw waits disappear.

Clean-source integration passes 18 focused tests with residency off/on. Both automated one-lap races exit cleanly. The extended run has incomplete screenshot coverage, and vkQuake startup remains inconclusive. The playable shader experiment retains its known semantic-test failure and is excluded from publishable source. These residency measurements predate the review repair above and remain separate from this PR's original performance evidence.

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4884733109 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6718). Originally posted by [Zenodeon](https://github.com/Zenodeon) on 2026-10-16T07:01:49Z. --- ### What Scoped texture-array refresh can still perform unnecessary CPU transfers after #6202: its CPU fallback uploads the whole image, and a failed whole-descriptor write collection can erase valid history for an active committed slice. This PR addresses that resource path in separately reviewable implementation commits: - For uncompressed, single-mip, non-thick 2D arrays with selections covering complete physical layers, read/snapshot, copy, detile and upload only selected layers. Refresh and upload use one eligibility check. Unselected image contents and pending GPU results remain intact. Unsupported layouts and partial physical-layer selections keep the whole-image fallback. Staging/device allocations remain full-sized. - If unused slices include uncommitted memory, preserve generations obtained from successful collections of committed tracked units. Collect the selected scope before examining write stamps and report range-specific generations. Unknown units remain unknown; actual CPU writes still invalidate the affected content. Apply the collection fallback after uploads, clears, copies and write-back settlement. - Expire collection memo hits when the allocation-registry generation changes, in the epoch map, per-thread ring, shared ring and Windows `UntrackedHint` memo. A proof from an earlier mapping at the same address must not hide genuine CPU writes or give an unregistered slice complete history. The collection CPU-write regression covers all three collection caches and an uncached control. Windows hint regressions additionally cover allocation replacement within one collect epoch, unchanged hints and guest-byte preservation, with memoization enabled and disabled. No title checks, skipped passes, fabricated success, public API changes or shader-semantic changes. W/keyboard configuration is local and excluded. **Dependencies:** #6202. #6367 is merged upstream; its duplicate integration commit has been dropped while its regression remains available from main. The first commit integrates #6202 with attribution, retaining its overlapping-array regression. #6202 is MiguelAdolfsen's revision `60229fae6469`. Our incremental review range is [`52a64aef6...stk-resource-performance-pr`](https://github.com/Zenodeon/AnyPS5/compare/52a64aef6...stk-resource-performance-pr), limited to texture handling, its private header, test registration and the array regression. Dependency commits can be dropped as upstream merges them. Upstream overlap rechecked before publication. #6202 supplies scoped refresh but its CPU fallback still uploads the whole array. Related #6273/#6346 optimize write-tracker proofs, #6678 defers import settling, and #6701 changes Windows stamp allocation; those mechanisms are separate. #1191 residency, #6197 import-window changes and the separate write-watch restoration experiment are excluded from this source branch. ### Tested <!-- OS, title or homebrew, what was checked. "Not tested" is a valid answer. A performance change: the summary lines of main and of this PR from the same machine and scene, with the traces attached, captured as the Performance report issue form describes. --> **Latest reviewer follow-up validation — 2026-10-20.** Based on upstream `main` `5f7e30233e62ae5fdb7a6e3257698bc2e550bcc2`; current head `9fe1f963c8f1849478d86dc77e23cfcc4be1278e`. The requested Windows hint-memo addition and regression are folded into the existing allocation-generation fix commit `c19dcecfec8954233d0f22da969422c8eed7ac4f`, preserving authorship and the existing commit count. `UntrackedHint` reads the allocation generation before its walk and stores/compares `mapping` in `threadHintMemo`. #6820 is restacked on updated #6718; its three incremental commits remain patch-equivalent. Before the hint repair, `agc_hint_mapping_history_cached` fails with `a cached hint walk hid a CPU store across allocation replacement`, while `_uncached` passes. Main with the identical test-only fixture reproduces that result. After repair, both pass; the fixture also verifies unchanged hints, unchanged allocation replacement without invented CPU writes, and guest-byte preservation. Fresh Release builds on Windows 11 build 26200, Intel Core i7-13700, NVIDIA GeForce RTX 4070 / driver 610.88, GCC 15.2, SPIR-V Tools enabled. This branch: **17/17 pass, zero skips, 14.58 s**. #6718: **17/17 pass, zero skips, 14.58 s**. Main's shared suite: **10/10 pass, zero skips, 11.43 s**, plus its matching `APS5_NO_HOST_IMPORT=1` array control **1/1 pass, 0.89 s**. The separate main hint negative-control failure above is expected, not counted as a passing main test. All matched GPU runs use `ANYPS5_REQUIRE_VULKAN=1`, `ANYPS5_NO_SHADER_CACHE=1`, `VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation` and the same GPU. Loader logs confirm Khronos 1.4.304 actually loads, with no missing-layer diagnostics. Comparing main's shared tests plus its matching no-import control against the candidate finds identical validation-error messages: two instances of the existing `VUID-VkDeviceCreateInfo-pNext-pNext` for structure 1000574000 unknown to this older layer. No new VUID errors; zero total validation errors is not claimed. Conventions against the frozen canonical main revision and diff checks pass. The required `origin/main` check was attempted and still fails with Windows `WinError 206` because that fork baseline is stale. These are focused correctness results; no fresh gameplay, performance or Linux/vendor retest is claimed. Historical evidence and the previously documented full-suite Windows build limitation below remain applicable to their named revisions. **Earlier conflict-resolution validation — 2026-10-20.** Rebased onto upstream `main` `43cd8f4c47f4c81185c4ca14b84240e0748e3459`. Current head: `c778381786adc976f53e7761551751eb0fbae955`. Resolved the new conflict with merged #6772: `cachedStorageTexture` retains main's `ArrayLayerWindow` transformation and resets precomputed guest size when the window changes the base, while accepting the optional scoped layer-refresh range. The attributed #6202 integration is now `a8360de91`; all remaining implementation and regression commits are patch-equivalent to the previous head. Original authorship is retained. Fresh Release focused targets rebuilt on Windows 11 build 26200, Intel Core i7-13700, NVIDIA GeForce RTX 4070 / driver 610.88, GCC 15.2, SPIR-V Tools enabled. Main: **10/10 pass, zero skips, 15.41 s**; its array fixture also passes **1/1 in 1.77 s** with `APS5_NO_HOST_IMPORT=1` to match the added CPU-only array configuration. PR: **15/15 pass, zero skips, 23.01 s**. Both use `ANYPS5_REQUIRE_VULKAN=1`, `ANYPS5_NO_SHADER_CACHE=1`, `VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation` and the same GPU. Logs confirm the Khronos 1.4.304 layer actually loads, with no missing-layer diagnostics. Comparing the shared tests and the matched no-import configuration finds **no new VUID error signatures**: main's ordinary suite plus its no-import control produce the same two unknown-extension-structure device-create errors as the candidate (`VUID-VkDeviceCreateInfo-pNext-pNext`, structure 1000574000 unknown to this older layer). Zero total validation errors is not claimed. **Upstream Windows test-build limitation:** unmodified main's newly merged `agc_driver_image_array_window_past_layer_limit_tests` does not compile with the supported Windows GCC: `ImageArrayWindowPastLayerLimit.cpp:33: requested alignment '65536' exceeds object file maximum 8192`. The focused passing suites exclude that dedicated GPU test; the shared graphics binary does run `RunTextureTilingTests`, including main's array-window layout checks. No unrelated fixture change is included in this rebase. Full-suite Windows success is not claimed. Conventions against canonical `upstream/main` and diff checks pass; the stale fork `origin/main` checker still hits Windows command-line length limits. No fresh gameplay/performance measurement, raw evidence upload, or Linux/vendor retest is claimed. **Earlier rebase validation — 2026-10-20 (main `661f8b717`, historical).** Rebased onto upstream `main` `661f8b717`. Current head: `6ef3a78d872bd2057bd61c564db2b79c79e3d270`; original authorship is retained. The #6202 integration now preserves main's per-layer `GuestLayerOffset`/color-view pitch checks and the newer `BuildLookups` lifetime management. Scoped layer refresh and all allocation-generation regression assertions are retained. The attributed #6202 integration is `ad7bd6020`; no unrelated integration code was added. Windows 11 build 26200, Intel Core i7-13700, NVIDIA GeForce RTX 4070 / driver 610.88, GCC 15.2 / Release / SPIR-V Tools. Fresh focused targets rebuilt for main and this head. Main: **10/10 pass, zero skips, 11.98 s**. PR: **15/15 pass, zero skips, 13.95 s**, including both array-layer modes and all four allocation-history cache/control tests. Both use `ANYPS5_REQUIRE_VULKAN=1`, `ANYPS5_NO_SHADER_CACHE=1`, `VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation` and the same GPU. Loader logs confirm the Khronos 1.4.304 layer actually loads; neither log reports a missing requested layer. **No new VUID errors compared with main**. Both include the same `VUID-VkDeviceCreateInfo-pNext-pNext` for an extension structure unknown to that older validation layer; zero total VUIDs is not claimed. The final runs load rebuilt unpatched libraries, with older DLL copies beside the test executables moved aside. Conventions against canonical `upstream/main` and diff checks pass. The required `origin/main` check was attempted but its stale fork baseline hits Windows command-line length limits; the canonical target baseline succeeds. No fresh gameplay/performance measurement, raw-trace upload or Linux/vendor retest is claimed. Earlier performance numbers remain historical evidence for their explicitly named revisions. **Previous rebase validation — 2026-10-19 (historical).** Rebased onto upstream `main` `6b8228b2bfecb895010e379362c6d0bb288c2d47`. Current head: `1505305e1722698d90ae9340d223852baf05773b`. Original authorship is retained. The duplicate #6367 commit is dropped because #6367 is merged upstream. #6202 remains an attributed dependency; its rebased integration commit is `ad67b6455`. The test-registration conflict keeps all current upstream `abi_deferred_*`, `lazy` and `lazy_sync` modes and our host-import-disabled array test. Collection-cache regression assertions remain intact. - **Windows RTX 4070: 25/25 focused tests pass, zero skips**, 26.65 s summed test time; longest 11.57 s. - **Ubuntu/WSL2 lavapipe: 24/24 focused tests pass, zero skips**, 14.00 s summed test time; longest 6.20 s. - Release / GCC 15.2 / SPIR-V Tools; current bundled dependency gitlinks. Every individual test stays within 30 seconds. Conventions against canonical upstream and diff checks pass. WSL/lavapipe is software-Vulkan coverage, not a native Linux vendor-driver retest. - These are fresh source-correctness results, not new gameplay or performance measurements. Earlier game measurements and independent hardware reports below apply to their explicitly named pre-rebase revisions. No game/runtime snapshot, evidence bundle or PR status is changed by this rebase. **Earlier validation and investigation (historical revisions):** Rebased using blawesom's handoff, preserving the original seven commits and authorship, onto upstream `8f0e276c61086c5192077018910e5dbc04c3a96b`. Previous review-repair head: `619e4c9c6e281df0a68ce5cd42a364df6de9bf10`. The extra commits add a failing collection-history regression, its mapping-generation repair, and an uncached-backend precondition for the existing array fixture. Existing `lazy`/`lazy_sync` test modes and dependency regressions are retained. **Review failure reproduced and repaired on Linux.** Ubuntu 26.04.1 under WSL 2, kernel `6.18.54.1-microsoft-standard-WSL2`, GCC 15.2.0, CMake 4.2.3, Release, SPIR-V Tools enabled, bundled dependency revisions. Vulkan: Mesa 26.0.8 lavapipe/llvmpipe, LLVM 21.1.8 (software driver). The production write-watch availability probe passes; none of the tests below skipped. Matched reproduction, before `a26b8d887` and repaired `d6f654b92`, both on upstream `084bd39a0`: | Regression | Before repair | After repair | | --- | --- | --- | | `agc_driver_array_layer_target` | Fails: unused slices unexpectedly have complete write history | Pass | | `agc_driver_array_layer_target_cpu` | Same failure | Pass | | `agc_collect_mapping_history_map` | Fails: cached collect hid a CPU store across allocation replacement | Pass | | `agc_collect_mapping_history_ring` | Same failure | Pass | | `agc_collect_mapping_history_shared` | Same failure | Pass | | `agc_collect_mapping_history_uncached` | Pass | Pass | The memo cache matched the ordering epoch and unwatch serial but not the allocation registry generation. Mapping replacement in the same epoch could therefore reuse stale write history. The repair requires the registry generation to match in every memo mode. The original array assertion is retained, with an added uncached collection check; no assertion was weakened. Final-rebase validation at `619e4c9c6`: - **Linux/lavapipe: 24/24 pass, no skips, 14.36 s total, longest test 5.59 s.** - **Windows RTX 4070: 25/25 pass, 22.79 s total, longest test 7.44 s.** - All tests use a 30-second timeout. The Windows-only CPU-snapshot test is not registered on Linux. - Conventions against canonical upstream main and diff checks pass. These are correctness results, not new game-performance measurements. The Linux AMD reviewer machine has not been retested here; WSL/lavapipe does not qualify native AMD/NVIDIA driver behavior. #6820's separate native Linux NVIDIA report is outside this update. No shader/residency changes, local input configuration or evidence bundle are included. **Independent Windows AMD validation — [LeandroLP23, 2026-10-18](https://github.com/boykopovar/AnyPS5/pull/6718#issuecomment-6252063963).** The reviewer tested PR head `619e4c9c6` merged cleanly onto `main` `6efb7261b`: Radeon 860M (RDNA 3.5 APU, driver 32.0.13058.8001), Ryzen AI 7 350, Windows 11 26300, WinLibs GCC 15.2.0, Release. Both `agc_driver_array_layer_target` and `agc_driver_array_layer_target_cpu` passed all three runs; the 14 tests selected by `agc_recorder|agc_collect|write_watch|write_history|shared_write|array_layer` also passed. Their SuperTuxKart PPSA69421 00.001.000 performance check measured **the menu with no input**, 60 seconds per run, using `tools/title_run.py` and presents per second over the whole run. The first run of each build started with an empty AnyPS5 shader cache; both builds ran consecutively on mains power. | Reviewer menu test | Run 1 (cold) | Run 2 | Run 3 | | --- | ---: | ---: | ---: | | `main` | 6.6 FPS | 6.7 FPS | 6.7 FPS | | `main` + this PR | 6.7 FPS | 6.7 FPS | 6.7 FPS | **Scene distinction:** the reviewer measured the **menu**; our historical performance measurements below used the **Abyss race scene at the starting grid**, with Tux, easy difficulty and four karts. The reviewer found no menu FPS improvement and did not measure racing performance. Their results add independent Windows AMD correctness coverage; they neither confirm nor contradict our race-scene measurements, and do not establish whether the menu exercises the selected-layer transfers this PR removes. The hardware, builds and capture windows also differ, so these FPS values must not be compared directly. Related overlap: #6169 changes which completed tracker generation a concurrent memo hit returns; this repair adds allocation-generation eligibility. The conditions are distinct, and reconciliation must retain both if both changes land. #6759 remains separate. Historical publication validation: upstream `5d9dcc42d2ec5401aebd089028b8d4d7410a77b4`, PR head `3fc42c0a221ee93b93acfb7cecb64840c80a3972`. Complete Release `libs` and focused test targets rebuilt with GCC 15.2, `-O3 -DNDEBUG`, `BUILD_TESTING=ON`, SPIR-V Tools enabled. Windows 10.0.26200, Intel Core i7-13700, 32 GiB RAM, NVIDIA RTX 4070 12 GiB, driver 591.86. Complete runtime snapshots record source/dependency revisions, flags and SHA-256 hashes. **At publication: 16/16 focused tests pass in 20.02 seconds, each under 30 seconds.** Conventions and diff checks pass. These tests cover array layers with host imports enabled/disabled, retained units, upload lifetime/failure, split write-back, host-import retirement, CPU snapshots, graphics, depth clears/storage/reuse, one-slice aliasing, write-back overhang and write-watch coverage. Linux/lavapipe was untested at publication; the new Linux results are recorded above. Native AMD/Intel hardware remains untested locally. Pre-fix evidence from the preserved regression runs (included with logs): ```text CPU fallback: a draw into slice 0 of the first array stored the next target's results, which only its unused second slice overlaps Write history: an uncommitted unused slice erased the active slice's write history ``` The array tests check first/last active slices, untouched neighboring GPU results, subsequent alias reads, genuine CPU writes, repeated unchanged refreshes, pending-result retention and image version. #6367's separate unregistered-unused-slice and retirement cases remain present. Existing graphics/resource tests exercise broader layouts; targeted exhaustive coverage of every unsupported-layout combination is not claimed. **Gameplay measurements below are historical equivalent integration builds, not measurements of the rebased head or bare current `main`.** They compare both our resource changes together. Baseline `ebc89db25587` and candidate `791d12671372` hold #6367, #6202's original `3a39b6cfd` implementation, and Scott Schuster/TheAggie's rendering experiment `45944fbbe0dc` constant. The updated #6202 revision adapts the newer upstream API; current-head game measurements must be repeated before readiness. No dependency or shader improvement is credited to this PR. SuperTuxKart **PPSA69421**: Abyss starting grid, Tux, easy, four karts, 1920x1080, identical settings/configuration, same machine/session. Three alternating baseline/candidate pairs, warmed caches and separate restarts, 60-second lead-in, 120-second window, no input, inherited game logs. Only `APS5_TRACE_SECONDS=60:120` enabled for acceptance captures. | Pair | Baseline FPS | Candidate FPS | Throughput gain | Presents baseline/candidate | Baseline p50/p90/p99 ms | Candidate p50/p90/p99 ms | | --- | ---: | ---: | ---: | ---: | --- | --- | | 1 | 7.508 | 7.928 | 5.60% | 901 / 952 | 136.931/160.672/166.014 | 123.868/136.366/142.151 | | 2 | 5.189 | 8.096 | 56.02% | 623 / 972 | 188.031/198.624/295.121 | 118.283/140.110/144.278 | | 3 | 4.855 | 7.944 | 63.63% | 583 / 954 | 199.604/215.177/307.007 | 120.602/144.078/148.899 | The candidate remains around 8 FPS; it is not smooth gameplay. Baseline variability remains unexplained. **A repeatable 20% gain is not established**: pair 1 improves only 5.60%. The larger pairwise gains must not be presented alone as representative. All six frame windows and runtime hashes were verified. Long detailed event timelines overflowed; independently recorded frame timestamps/percentiles and phase totals remained complete. `trace_dropped` is retained in the summary lines. Complete separate 10-second diagnostics attribute the mechanism: adding the history fix to the selected-layer runtime reduces upload waits from 5 to 2/frame and refresh write-back waits from 3 to 0/frame; median 160.132 to 138.795 ms. Measured GPU batches including synchronous work fall from 45.884 to 37.730 ms/frame. Recorded-only summary GPU numbers omit synchronous fallback batches; nested/concurrent CPU/GPU costs must not be added. The preserved candidate integration completed 900.578 seconds of automatic driving across multiple laps, with sampled scenery correct and no matched fatal/assertion/device-loss signatures. A clean finite race finish is **not** a pass: baseline and candidate both exit `0xc0000409`; baseline debugging reached `LibcException::DefaultTerminate()` / `abort()`, with the underlying exception unresolved. vkQuake produced no frames in either 40-second startup check, so cross-title rendering is inconclusive. Controls/audio were previously user-confirmed on the integration; fresh confirmation on this rebased head is pending. The rendering experiment is absent from the PR source. It has a known flat-interpolation semantic-test failure in game integrations; the publishable source graphics test passes, and no semantic guard was weakened. The 15-minute integration check does not validate that separate shader experiment's semantics. Evidence: the six original acceptance summary lines are included below. Full trace files, trace-digest reports and SHA-256 digests, runtime manifests, pre-fix failure logs and fresh correctness results are packaged locally in an 18.37 MiB review bundle; the bundle is retained locally and has not been uploaded, at the author's request. No game assets or binaries are included. Full trace evidence is not publicly attached. <details> <summary>Original acceptance summary lines, pairs 1-3 (baseline then candidate)</summary> ```json {"commit":"ebc89db25587","dirty":false,"env":{"APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_SECONDS":"60:120"},"gpu":"NVIDIA GeForce RTX 4070","driver":"NVIDIA 591.86","os":"Windows 10.0.26200","resolution":"1920x1080","window":{"spec":"seconds 60:120","first_present":338,"ms":120006.155},"presents":901,"frame_ms":{"p50":136.931,"p90":160.672,"p99":166.014,"max":203.87},"gpu_busy_ms_per_present":10.172,"worker_busy_pct":{"queue worker 0x0":15.862},"top_phases_ms_per_frame":{"Driver.EndSubmission":10.875,"Driver.Packet":10.245,"Driver.Packet.draw":8.345,"Driver.Draw":8.288,"Driver.Draw.draw_enqueued":5.677,"Driver.Draw.shader_compile_and_link":2.082,"Shader.DrawStage":1.231,"Shader.DrawStage.capture_resources":0.736},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":72.903,"events_lost":149219,"totals_full":false}},"trace":"aps5-trace-ebc89db25587-39984.json.gz"} {"commit":"791d12671372","dirty":false,"env":{"APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_SECONDS":"60:120"},"gpu":"NVIDIA GeForce RTX 4070","driver":"NVIDIA 591.86","os":"Windows 10.0.26200","resolution":"1920x1080","window":{"spec":"seconds 60:120","first_present":392,"ms":120077.139},"presents":952,"frame_ms":{"p50":123.868,"p90":136.366,"p99":142.151,"max":153.52},"gpu_busy_ms_per_present":11.698,"worker_busy_pct":{"queue worker 0x0":10.584},"top_phases_ms_per_frame":{"Driver.Packet":12.569,"Driver.Packet.draw":8.278,"Driver.Draw":8.223,"Driver.Draw.draw_enqueued":5.476,"Driver.Draw.shader_compile_and_link":2.223,"Shader.DrawStage":1.399,"Shader.DrawStage.capture_resources":0.796,"Driver.EndSubmission":0.775},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":64.349,"events_lost":200185,"totals_full":false}},"trace":"aps5-trace-791d12671372-55468.json.gz"} {"commit":"ebc89db25587","dirty":false,"env":{"APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_SECONDS":"60:120"},"gpu":"NVIDIA GeForce RTX 4070","driver":"NVIDIA 591.86","os":"Windows 10.0.26200","resolution":"1920x1080","window":{"spec":"seconds 60:120","first_present":267,"ms":120050.913},"presents":623,"frame_ms":{"p50":188.031,"p90":198.624,"p99":295.121,"max":299.775},"gpu_busy_ms_per_present":9.824,"worker_busy_pct":{"queue worker 0x0":21.551},"top_phases_ms_per_frame":{"Driver.EndSubmission":29.752,"Driver.Packet":11.769,"Driver.Packet.draw":8.613,"Driver.Draw":8.557,"Driver.Draw.draw_enqueued":5.662,"Driver.Draw.shader_compile_and_link":2.366,"GpuMutex.wait.flush":1.585,"Shader.DrawStage":1.529},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":93.655,"events_lost":56162,"totals_full":false}},"trace":"aps5-trace-ebc89db25587-33172.json.gz"} {"commit":"791d12671372","dirty":false,"env":{"APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_SECONDS":"60:120"},"gpu":"NVIDIA GeForce RTX 4070","driver":"NVIDIA 591.86","os":"Windows 10.0.26200","resolution":"1920x1080","window":{"spec":"seconds 60:120","first_present":361,"ms":120051.935},"presents":972,"frame_ms":{"p50":118.283,"p90":140.11,"p99":144.278,"max":148.017},"gpu_busy_ms_per_present":11.672,"worker_busy_pct":{"queue worker 0x0":8.674},"top_phases_ms_per_frame":{"Driver.Packet":10.019,"Driver.Packet.draw":8.225,"Driver.Draw":8.172,"Driver.Draw.draw_enqueued":5.708,"Driver.Draw.shader_compile_and_link":1.97,"Shader.DrawStage":1.19,"Shader.DrawStage.capture_resources":0.72,"Driver.EndSubmission":0.688},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":68.984,"events_lost":183536,"totals_full":false}},"trace":"aps5-trace-791d12671372-51232.json.gz"} {"commit":"ebc89db25587","dirty":false,"env":{"APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_SECONDS":"60:120"},"gpu":"NVIDIA GeForce RTX 4070","driver":"NVIDIA 591.86","os":"Windows 10.0.26200","resolution":"1920x1080","window":{"spec":"seconds 60:120","first_present":252,"ms":120078.225},"presents":583,"frame_ms":{"p50":199.604,"p90":215.177,"p99":307.007,"max":314.4},"gpu_busy_ms_per_present":10.816,"worker_busy_pct":{"queue worker 0x0":19.529},"top_phases_ms_per_frame":{"Driver.EndSubmission":27.794,"Driver.Packet":12.423,"Driver.Packet.draw":9.623,"Driver.Draw":9.558,"Driver.Draw.draw_enqueued":6.488,"Driver.Draw.shader_compile_and_link":2.469,"GpuMutex.wait.flush":2.018,"Shader.DrawStage":1.54},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":93.336,"events_lost":69182,"totals_full":false}},"trace":"aps5-trace-ebc89db25587-49216.json.gz"} {"commit":"791d12671372","dirty":false,"env":{"APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_SECONDS":"60:120"},"gpu":"NVIDIA GeForce RTX 4070","driver":"NVIDIA 591.86","os":"Windows 10.0.26200","resolution":"1920x1080","window":{"spec":"seconds 60:120","first_present":352,"ms":120085.693},"presents":954,"frame_ms":{"p50":120.602,"p90":144.078,"p99":148.899,"max":152.774},"gpu_busy_ms_per_present":11.716,"worker_busy_pct":{"queue worker 0x0":12.609},"top_phases_ms_per_frame":{"Driver.Packet":10.967,"Driver.Packet.draw":8.099,"Driver.Draw":8.046,"Driver.Draw.draw_enqueued":5.38,"Driver.EndSubmission":4.898,"Driver.Draw.shader_compile_and_link":2.154,"Shader.DrawStage":1.345,"Shader.DrawStage.capture_resources":0.771},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":65.201,"events_lost":180884,"totals_full":false}},"trace":"aps5-trace-791d12671372-52320.json.gz"} ``` </details> ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: #6202 <!-- #PR, or none --> - [x] Fixes: none <!-- issue it closes as Fixes #N, or none --> - [x] Unblocks: none claimed; SuperTuxKart PPSA69421 is the regression workload <!-- title ID and Game bring-up discussion, e.g. PPSA01325 #3232, or none --> - [x] GPUs tested: NVIDIA GeForce RTX 4070, driver 610.88, Windows 11 build 26200 (latest rebase); earlier validation: NVIDIA RTX 4070, driver 591.86, Windows 11 10.0.26200; Mesa 26.0.8 lavapipe/llvmpipe (LLVM 21.1.8), Ubuntu 26.04.1/WSL 2; independent reviewer: AMD Radeon 860M, driver 32.0.13058.8001, Windows 11 26300; native Linux hardware retest pending <!-- for AGC, shader recompiler or VideoOut changes: vendor, model, driver and OS of each GPU the GPU tests ran on; otherwise n/a --> - [x] AI-assisted: yes, OpenAI Codex <!-- yes / no --> Remaining validation: dependency reconciliation, fresh current-head gameplay comparisons, cross-title validation and investigation of the finite-race exit failure. Marked ready for review at the author's request; these gaps remain unresolved. No black-rendering, 30-FPS or repeatable-20%-gain claim. ### Separate follow-up: partial-page write-watch restoration A standalone correctness follow-up is published: [restore write-watch coverage for remapped pages](https://github.com/boykopovar/AnyPS5/pull/6759). It restores CPU-write tracking for complete 4 KiB private remappings inside an excluded 64 KiB import block, preserving neighboring exclusions and stale-generation checks. It has no dependency on this PR and includes no residency or shader changes. Separately, a local integration of this PR, that repair and #1191's opt-in linear-target residency was evaluated with the same shader revision held constant. Three alternating 120-second residency-off/on pairs averaged 8.35/10.99, 8.20/10.80 and 8.38/11.27 FPS. These local results isolate the residency toggle: the 31.6–34.4% gain belongs to #1191's residency work and is **not an additional gain claimed by this PR or by the write-watch repair**. Detailed long event timelines overflowed; frame windows were complete, and separate complete short diagnostics showed the three synchronous draw waits disappear. Clean-source integration passes 18 focused tests with residency off/on. Both automated one-lap races exit cleanly. The extended run has incomplete screenshot coverage, and vkQuake startup remains inconclusive. The playable shader experiment retains its known semantic-test failure and is excluded from publishable source. These residency measurements predate the review repair above and remain separate from this PR's original performance evidence.
github-actions[bot] commented 2026-10-16 07:34:08 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-16T07:34:08Z.


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 6292 core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp L1377-1378, L1416
PR 6615 core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp L1377-1378, L1416
PR 6743 core/libs/prx/libSceAgcDriver/CMakeLists.txt L2762
PR 6848 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp L2478
PR 7085 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp L2713-2714, L2728-2731
PR 8117 core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp L792

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 1191 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 1368 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 1395 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 2434 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 4040 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 4072 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 4448 core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 4472 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 5021 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 5371 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 5431 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 5441 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 5609 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 5925 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 6044 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6182 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 6185 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 6186 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 6187 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 6188 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 6192 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 6194 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 6197 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 6209 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 6223 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 6280 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 6290 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 6300 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6412 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 6481 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 6501 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6539 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 6642 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6741 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6747 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 6788 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 6808 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6868 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 6946 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 6947 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 6960 core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 6971 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 7048 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 7201 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 7256 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 7275 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 7310 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 7449 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
PR 7457 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 7484 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 7505 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 7508 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 7514 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 7604 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 7642 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 7689 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 7800 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 7922 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 8004 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 8014 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 8105 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 8246 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 8278 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 8484 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 8527 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 8552 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 8592 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 8672 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 8992 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 9012 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6210491444 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6718#issuecomment-6210491444). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-16T07:34:08Z. --- <!-- pr-overlap --> 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 6292](https://www.github.com/boykopovar/AnyPS5/pull/6292) | `core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp` [L1377-1378](https://github.com/boykopovar/AnyPS5/blob/1896871ba75b9e3743e40af31a9c36779a42aafb/core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp#L1377-L1378), [L1416](https://github.com/boykopovar/AnyPS5/blob/1896871ba75b9e3743e40af31a9c36779a42aafb/core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp#L1416) | | | | [PR 6615](https://www.github.com/boykopovar/AnyPS5/pull/6615) | `core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp` [L1377-1378](https://github.com/boykopovar/AnyPS5/blob/1896871ba75b9e3743e40af31a9c36779a42aafb/core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp#L1377-L1378), [L1416](https://github.com/boykopovar/AnyPS5/blob/1896871ba75b9e3743e40af31a9c36779a42aafb/core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp#L1416) | | | | [PR 6743](https://www.github.com/boykopovar/AnyPS5/pull/6743) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` [L2762](https://github.com/boykopovar/AnyPS5/blob/1896871ba75b9e3743e40af31a9c36779a42aafb/core/libs/prx/libSceAgcDriver/CMakeLists.txt#L2762) | | | | [PR 6848](https://www.github.com/boykopovar/AnyPS5/pull/6848) | `core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp` [L2478](https://github.com/boykopovar/AnyPS5/blob/1896871ba75b9e3743e40af31a9c36779a42aafb/core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp#L2478) | | | | [PR 7085](https://www.github.com/boykopovar/AnyPS5/pull/7085) | `core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp` [L2713-2714](https://github.com/boykopovar/AnyPS5/blob/1896871ba75b9e3743e40af31a9c36779a42aafb/core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp#L2713-L2714), [L2728-2731](https://github.com/boykopovar/AnyPS5/blob/1896871ba75b9e3743e40af31a9c36779a42aafb/core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp#L2728-L2731) | | | | [PR 8117](https://www.github.com/boykopovar/AnyPS5/pull/8117) | `core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp` [L792](https://github.com/boykopovar/AnyPS5/blob/1896871ba75b9e3743e40af31a9c36779a42aafb/core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp#L792) | | | 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 1191](https://www.github.com/boykopovar/AnyPS5/pull/1191) | `core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp` | | [PR 1368](https://www.github.com/boykopovar/AnyPS5/pull/1368) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Recorder.cpp` | | [PR 1395](https://www.github.com/boykopovar/AnyPS5/pull/1395) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Recorder.cpp` | | [PR 2434](https://www.github.com/boykopovar/AnyPS5/pull/2434) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` | | [PR 4040](https://www.github.com/boykopovar/AnyPS5/pull/4040) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` | | [PR 4072](https://www.github.com/boykopovar/AnyPS5/pull/4072) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp` | | [PR 4448](https://www.github.com/boykopovar/AnyPS5/pull/4448) | `core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp` | | [PR 4472](https://www.github.com/boykopovar/AnyPS5/pull/4472) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` | | [PR 5021](https://www.github.com/boykopovar/AnyPS5/pull/5021) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Recorder.cpp` | | [PR 5371](https://www.github.com/boykopovar/AnyPS5/pull/5371) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 5431](https://www.github.com/boykopovar/AnyPS5/pull/5431) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp` | | [PR 5441](https://www.github.com/boykopovar/AnyPS5/pull/5441) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp` | | [PR 5609](https://www.github.com/boykopovar/AnyPS5/pull/5609) | `core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp` | | [PR 5925](https://www.github.com/boykopovar/AnyPS5/pull/5925) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Recorder.cpp` | | [PR 6044](https://www.github.com/boykopovar/AnyPS5/pull/6044) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6182](https://www.github.com/boykopovar/AnyPS5/pull/6182) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/tests/Recorder.cpp` | | [PR 6185](https://www.github.com/boykopovar/AnyPS5/pull/6185) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Recorder.cpp` | | [PR 6186](https://www.github.com/boykopovar/AnyPS5/pull/6186) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Recorder.cpp` | | [PR 6187](https://www.github.com/boykopovar/AnyPS5/pull/6187) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Recorder.cpp` | | [PR 6188](https://www.github.com/boykopovar/AnyPS5/pull/6188) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Recorder.cpp` | | [PR 6192](https://www.github.com/boykopovar/AnyPS5/pull/6192) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Recorder.cpp` | | [PR 6194](https://www.github.com/boykopovar/AnyPS5/pull/6194) | `core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp` | | [PR 6197](https://www.github.com/boykopovar/AnyPS5/pull/6197) | `core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp` | | [PR 6209](https://www.github.com/boykopovar/AnyPS5/pull/6209) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Recorder.cpp` | | [PR 6223](https://www.github.com/boykopovar/AnyPS5/pull/6223) | `core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp` | | [PR 6280](https://www.github.com/boykopovar/AnyPS5/pull/6280) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp` | | [PR 6290](https://www.github.com/boykopovar/AnyPS5/pull/6290) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` | | [PR 6300](https://www.github.com/boykopovar/AnyPS5/pull/6300) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6412](https://www.github.com/boykopovar/AnyPS5/pull/6412) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp` | | [PR 6481](https://www.github.com/boykopovar/AnyPS5/pull/6481) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp` | | [PR 6501](https://www.github.com/boykopovar/AnyPS5/pull/6501) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6539](https://www.github.com/boykopovar/AnyPS5/pull/6539) | `core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp` | | [PR 6642](https://www.github.com/boykopovar/AnyPS5/pull/6642) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6741](https://www.github.com/boykopovar/AnyPS5/pull/6741) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6747](https://www.github.com/boykopovar/AnyPS5/pull/6747) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/tests/Recorder.cpp` | | [PR 6788](https://www.github.com/boykopovar/AnyPS5/pull/6788) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` | | [PR 6808](https://www.github.com/boykopovar/AnyPS5/pull/6808) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6868](https://www.github.com/boykopovar/AnyPS5/pull/6868) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Recorder.cpp` | | [PR 6946](https://www.github.com/boykopovar/AnyPS5/pull/6946) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Recorder.cpp` | | [PR 6947](https://www.github.com/boykopovar/AnyPS5/pull/6947) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Recorder.cpp` | | [PR 6960](https://www.github.com/boykopovar/AnyPS5/pull/6960) | `core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp` | | [PR 6971](https://www.github.com/boykopovar/AnyPS5/pull/6971) | `core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Recorder.cpp` | | [PR 7048](https://www.github.com/boykopovar/AnyPS5/pull/7048) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Recorder.cpp` | | [PR 7201](https://www.github.com/boykopovar/AnyPS5/pull/7201) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` | | [PR 7256](https://www.github.com/boykopovar/AnyPS5/pull/7256) | `core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp` | | [PR 7275](https://www.github.com/boykopovar/AnyPS5/pull/7275) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp` | | [PR 7310](https://www.github.com/boykopovar/AnyPS5/pull/7310) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp` | | [PR 7449](https://www.github.com/boykopovar/AnyPS5/pull/7449) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp` | | [PR 7457](https://www.github.com/boykopovar/AnyPS5/pull/7457) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/tests/Recorder.cpp` | | [PR 7484](https://www.github.com/boykopovar/AnyPS5/pull/7484) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp` | | [PR 7505](https://www.github.com/boykopovar/AnyPS5/pull/7505) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Recorder.cpp` | | [PR 7508](https://www.github.com/boykopovar/AnyPS5/pull/7508) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 7514](https://www.github.com/boykopovar/AnyPS5/pull/7514) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp` | | [PR 7604](https://www.github.com/boykopovar/AnyPS5/pull/7604) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Recorder.cpp` | | [PR 7642](https://www.github.com/boykopovar/AnyPS5/pull/7642) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Recorder.cpp` | | [PR 7689](https://www.github.com/boykopovar/AnyPS5/pull/7689) | `core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp` | | [PR 7800](https://www.github.com/boykopovar/AnyPS5/pull/7800) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp` | | [PR 7922](https://www.github.com/boykopovar/AnyPS5/pull/7922) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` | | [PR 8004](https://www.github.com/boykopovar/AnyPS5/pull/8004) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` | | [PR 8014](https://www.github.com/boykopovar/AnyPS5/pull/8014) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` | | [PR 8105](https://www.github.com/boykopovar/AnyPS5/pull/8105) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` | | [PR 8246](https://www.github.com/boykopovar/AnyPS5/pull/8246) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp` | | [PR 8278](https://www.github.com/boykopovar/AnyPS5/pull/8278) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` | | [PR 8484](https://www.github.com/boykopovar/AnyPS5/pull/8484) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Recorder.cpp` | | [PR 8527](https://www.github.com/boykopovar/AnyPS5/pull/8527) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/tests/Recorder.cpp` | | [PR 8552](https://www.github.com/boykopovar/AnyPS5/pull/8552) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 8592](https://www.github.com/boykopovar/AnyPS5/pull/8592) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 8672](https://www.github.com/boykopovar/AnyPS5/pull/8672) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Recorder.cpp` | | [PR 8992](https://www.github.com/boykopovar/AnyPS5/pull/8992) | `core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp` | | [PR 9012](https://www.github.com/boykopovar/AnyPS5/pull/9012) | `core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp` |
blawesom commented 2026-10-16 17:16:43 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by blawesom on 2026-10-16T17:16:43Z.


Rebase handoff + one test failure found against current main — rebased onto current main (all seven commits, authorship unchanged). The only textual conflict was the test registration in CMakeLists.txt: your agc_driver_array_layer_target_cpu block now sits above main's extended mode list (which gained lazy lazy_sync).

Verified on Linux (CachyOS, kernel 7.2.9, GCC 16.2.1, Ninja, Release, BUILD_TESTING=ON, AMD RX 9070 XT / RADV):

  • builds; conventions pass

  • both new tests fail — agc_driver_array_layer_target and agc_driver_array_layer_target_cpu — with:

    AGC graphics: the unused array slices unexpectedly have complete write history

    Your head's CI shows the linux, write-watch and windows runs as skipped, so this was not visible there. On this machine, against current main's storage-image tracking, the unused slices do have complete write history — so either the expectation needs to follow main's newer write-history behavior, or main's tracking is over-reporting for this case. Everything else passes (1284/1287, the third failure being the known main regression agc_driver_tessellation, #4727).

To pick it up:

git fetch https://github.com/blawesom/AnyPS5 rebase/6718
git checkout <your branch>
git merge --ff-only FETCH_HEAD

Head is b258d6d5d.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6220837975 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6718#issuecomment-6220837975). Originally posted by [blawesom](https://github.com/blawesom) on 2026-10-16T17:16:43Z. --- **Rebase handoff + one test failure found against current `main`** — rebased onto current `main` (all seven commits, authorship unchanged). The only textual conflict was the test registration in `CMakeLists.txt`: your `agc_driver_array_layer_target_cpu` block now sits above `main`'s extended mode list (which gained `lazy lazy_sync`). Verified on Linux (CachyOS, kernel 7.2.9, GCC 16.2.1, Ninja, Release, `BUILD_TESTING=ON`, AMD RX 9070 XT / RADV): - builds; conventions pass - **both new tests fail** — `agc_driver_array_layer_target` and `agc_driver_array_layer_target_cpu` — with: `AGC graphics: the unused array slices unexpectedly have complete write history` Your head's CI shows the `linux`, `write-watch` and `windows` runs as *skipped*, so this was not visible there. On this machine, against current `main`'s storage-image tracking, the unused slices *do* have complete write history — so either the expectation needs to follow `main`'s newer write-history behavior, or `main`'s tracking is over-reporting for this case. Everything else passes (**1284/1287**, the third failure being the known `main` regression `agc_driver_tessellation`, #4727). **To pick it up:** ``` git fetch https://github.com/blawesom/AnyPS5 rebase/6718 git checkout <your branch> git merge --ff-only FETCH_HEAD ``` Head is `b258d6d5d`.
blawesom commented 2026-10-17 09:56:11 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by blawesom on 2026-10-17T09:56:11Z.


Re-anchored rebase handoff — main moved ~250 merges since the last handoff, so the branch is rebased onto current main again (all seven commits, authorship unchanged; the registration conflict resolved the same way, with main's lazy lazy_sync modes kept).

The state is unchanged from the earlier report: the PR's own agc_driver_array_layer_target tests still fail on this machine with "the unused array slices unexpectedly have complete write history" — the same assertion as #6820 (shared test family), i.e. the expectation vs. current main's storage-write-history behavior. Everything else passes (1333/1336: those two plus the known main regression agc_driver_tessellation, #4727) and conventions are green.

To pick it up:

git fetch https://github.com/blawesom/AnyPS5 rebase/6718
git checkout <your branch>
git merge --ff-only FETCH_HEAD

Head is 4db0d3a78.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6232532436 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6718#issuecomment-6232532436). Originally posted by [blawesom](https://github.com/blawesom) on 2026-10-17T09:56:11Z. --- **Re-anchored rebase handoff** — `main` moved ~250 merges since the last handoff, so the branch is rebased onto current `main` again (all seven commits, authorship unchanged; the registration conflict resolved the same way, with `main`'s `lazy lazy_sync` modes kept). The state is unchanged from the earlier report: the PR's own `agc_driver_array_layer_target` tests still fail on this machine with **"the unused array slices unexpectedly have complete write history"** — the same assertion as #6820 (shared test family), i.e. the expectation vs. current `main`'s storage-write-history behavior. Everything else passes (**1333/1336**: those two plus the known `main` regression `agc_driver_tessellation`, #4727) and conventions are green. **To pick it up:** ``` git fetch https://github.com/blawesom/AnyPS5 rebase/6718 git checkout <your branch> git merge --ff-only FETCH_HEAD ``` Head is `4db0d3a78`.
Zenodeon commented 2026-10-17 21:37:10 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Zenodeon on 2026-10-17T21:37:10Z.


Thanks for the rebase handoff. I picked it up, retained the original seven commits and authorship, kept main's lazy/lazy_sync modes, and rebased onto 8f0e276c6. Updated head: 619e4c9c6.

I reproduced both array failures on Linux/lavapipe with the original assertion intact. The cause was stale CollectWrites memo entries surviving an allocation-registry change in the same ordering epoch. Cache hits checked the epoch and unwatch serial but not the allocation generation. All three cached modes could also hide a real CPU write across allocation replacement; the uncached control passed.

The repair checks allocation generation in the epoch map, per-thread ring and shared ring. It retains the original array assertion and adds an uncached-backend precondition.

  • Matched Linux reproduction before repair: both array tests and three cached-history tests fail; uncached control passes. After repair: all six pass.
  • Final rebased source: 24/24 Linux tests pass, zero skips, 14.36 s, and 25/25 Windows tests pass, 22.79 s. Every test finishes within 30 s; conventions and diff checks pass.
  • Linux environment: Ubuntu 26.04.1/WSL 2, kernel 6.18.54.1, GCC 15.2, Release with SPIR-V Tools, Mesa 26.0.8 lavapipe/llvmpipe (LLVM 21.1.8). Production write tracking is active. Windows: RTX 4070, driver 591.86, GCC 15.2.

Your native Linux AMD configuration still needs confirmation; WSL/lavapipe does not qualify that driver. No new gameplay performance claim or evidence-bundle upload. AI-assisted implementation and validation.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6241520114 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6718#issuecomment-6241520114). Originally posted by [Zenodeon](https://github.com/Zenodeon) on 2026-10-17T21:37:10Z. --- Thanks for the rebase handoff. I picked it up, retained the original seven commits and authorship, kept main's `lazy`/`lazy_sync` modes, and rebased onto `8f0e276c6`. Updated head: `619e4c9c6`. I reproduced both array failures on Linux/lavapipe with the original assertion intact. The cause was stale `CollectWrites` memo entries surviving an allocation-registry change in the same ordering epoch. Cache hits checked the epoch and unwatch serial but not the allocation generation. All three cached modes could also hide a real CPU write across allocation replacement; the uncached control passed. The repair checks allocation generation in the epoch map, per-thread ring and shared ring. It retains the original array assertion and adds an uncached-backend precondition. - Matched Linux reproduction before repair: both array tests and three cached-history tests fail; uncached control passes. After repair: all six pass. - Final rebased source: **24/24 Linux tests pass, zero skips, 14.36 s**, and **25/25 Windows tests pass, 22.79 s**. Every test finishes within 30 s; conventions and diff checks pass. - Linux environment: Ubuntu 26.04.1/WSL 2, kernel 6.18.54.1, GCC 15.2, Release with SPIR-V Tools, Mesa 26.0.8 lavapipe/llvmpipe (LLVM 21.1.8). Production write tracking is active. Windows: RTX 4070, driver 591.86, GCC 15.2. Your native Linux AMD configuration still needs confirmation; WSL/lavapipe does not qualify that driver. No new gameplay performance claim or evidence-bundle upload. AI-assisted implementation and validation.
LeandroLP23 commented 2026-10-18 16:05:51 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by LeandroLP23 on 2026-10-18T16:05:51Z.


Windows and AMD data point: the two new tests pass, and SuperTuxKart is unchanged.

Radeon 860M (RDNA 3.5 APU, driver 32.0.13058.8001), Ryzen AI 7 350, Windows 11 26300, WinLibs GCC 15.2.0, Release. main 6efb7261b with this PR (619e4c9c6) merged; the merge is clean.

  • agc_driver_array_layer_target and agc_driver_array_layer_target_cpu pass, 3 of 3. This PR's CI skips the windows and write-watch jobs, so as far as I can see this is their first Windows run.
  • The 14 tests matched by ctest -R "agc_recorder|agc_collect|write_watch|write_history|shared_write|array_layer" pass.
  • SuperTuxKart (PPSA69421 00.001.000): the menu with no input, 60 s per run, through tools/title_run.py (#7264). FPS is presents per second from the trace summaries over the whole run. Run 1 starts with an empty AnyPS5 shader cache. Both builds ran one after the other on mains power.
Build Run 1 (cold) Run 2 Run 3
main 6.6 FPS 6.7 FPS 6.7 FPS
+ this PR 6.7 FPS 6.7 FPS 6.7 FPS

So no FPS change on this scene. That is no evidence either way about the transfers this PR removes, which may not happen in the menu.

AI-assisted

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6252063963 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6718#issuecomment-6252063963). Originally posted by [LeandroLP23](https://github.com/LeandroLP23) on 2026-10-18T16:05:51Z. --- Windows and AMD data point: the two new tests pass, and SuperTuxKart is unchanged. Radeon 860M (RDNA 3.5 APU, driver 32.0.13058.8001), Ryzen AI 7 350, Windows 11 26300, WinLibs GCC 15.2.0, Release. `main` `6efb7261b` with this PR (`619e4c9c6`) merged; the merge is clean. - `agc_driver_array_layer_target` and `agc_driver_array_layer_target_cpu` pass, 3 of 3. This PR's CI skips the `windows` and `write-watch` jobs, so as far as I can see this is their first Windows run. - The 14 tests matched by `ctest -R "agc_recorder|agc_collect|write_watch|write_history|shared_write|array_layer"` pass. - SuperTuxKart (PPSA69421 00.001.000): the menu with no input, 60 s per run, through `tools/title_run.py` (#7264). FPS is presents per second from the trace summaries over the whole run. Run 1 starts with an empty AnyPS5 shader cache. Both builds ran one after the other on mains power. | Build | Run 1 (cold) | Run 2 | Run 3 | |---|---|---|---| | `main` | 6.6 FPS | 6.7 FPS | 6.7 FPS | | + this PR | 6.7 FPS | 6.7 FPS | 6.7 FPS | So no FPS change on this scene. That is no evidence either way about the transfers this PR removes, which may not happen in the menu. AI-assisted
LeandroLP23 commented 2026-10-20 09:06:21 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by LeandroLP23 on 2026-10-20T09:06:21Z.


A follow-up to my menu data above: in a race, this PR makes SuperTuxKart about 3× faster on AMD under Windows.

The scene is the tutorial race of SuperTuxKart (PPSA69421 00.001.000), started through APS5_PAD_INPUT_FILE (answer "Yes" to the tutorial prompt, then no input). The kart stays on the start line. FPS is the title's own counter in its window title, read 3 times 5 s apart, about 65 s after the race was chosen. Each run uses a new run folder. Radeon 860M (driver 32.0.13058.8001), Windows 11 26300, WinLibs GCC 15.2.0, Release.

Tree FPS
main 6b8228b2b 2.07 / 2.11 / 2.11
6b8228b2b + this PR (1505305e1) 7.62 / 7.50 / 7.82
6b8228b2b + #6820 (93180e828, which carries this PR), 2 runs 7.35 / 7.79 / 7.48 and 7.46 / 8.06 / 7.83
main 661f8b717, 2 runs 1.26 / 1.51 / 1.34 and 2.01 / 1.99 / 1.97
current head 6ef3a78d8 (on 661f8b717), 2 runs 6.02 / 3.90 / 5.36 and 7.11 / 6.98 / 6.15

The gain comes from this PR: #6820's selected-layer imports add nothing measurable on top here. #6759 on 6b8228b2b stays at main's level (1.79–2.02).

Two things this doesn't change:

  • The console runs this port at about 60 FPS, per the release notes. So this is a large step, but SuperTuxKart remains far from playable here.
  • During "Ready! / Set!" the starting-line referee and its sign render solid black, with and without this PR, #6820 and #6759. This looks like the black surfaces described in #7307.

Separately, on 2 of about 12 runs across these builds, SuperTuxKart exited quietly 43 s after start, still loading, with nothing after Transferring control to ELF entry point. One of them was on plain main 661f8b717, so it isn't this PR.

AI-assisted

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6287467188 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6718#issuecomment-6287467188). Originally posted by [LeandroLP23](https://github.com/LeandroLP23) on 2026-10-20T09:06:21Z. --- A follow-up to my menu data above: in a race, this PR makes SuperTuxKart about 3× faster on AMD under Windows. The scene is the tutorial race of SuperTuxKart (PPSA69421 00.001.000), started through `APS5_PAD_INPUT_FILE` (answer "Yes" to the tutorial prompt, then no input). The kart stays on the start line. FPS is the title's own counter in its window title, read 3 times 5 s apart, about 65 s after the race was chosen. Each run uses a new run folder. Radeon 860M (driver 32.0.13058.8001), Windows 11 26300, WinLibs GCC 15.2.0, Release. | Tree | FPS | |---|---| | `main` 6b8228b2b | 2.07 / 2.11 / 2.11 | | 6b8228b2b + this PR (1505305e1) | 7.62 / 7.50 / 7.82 | | 6b8228b2b + #6820 (93180e828, which carries this PR), 2 runs | 7.35 / 7.79 / 7.48 and 7.46 / 8.06 / 7.83 | | `main` 661f8b717, 2 runs | 1.26 / 1.51 / 1.34 and 2.01 / 1.99 / 1.97 | | current head 6ef3a78d8 (on 661f8b717), 2 runs | 6.02 / 3.90 / 5.36 and 7.11 / 6.98 / 6.15 | The gain comes from this PR: #6820's selected-layer imports add nothing measurable on top here. #6759 on 6b8228b2b stays at main's level (1.79–2.02). Two things this doesn't change: - The console runs this port at about 60 FPS, per the [release notes](https://github.com/Marice/stk-ps5/releases/tag/00.001.000). So this is a large step, but SuperTuxKart remains far from playable here. - During "Ready! / Set!" the starting-line referee and its sign render solid black, with and without this PR, #6820 and #6759. This looks like the black surfaces described in #7307. Separately, on 2 of about 12 runs across these builds, SuperTuxKart exited quietly 43 s after start, still loading, with nothing after `Transferring control to ELF entry point`. One of them was on plain `main` 661f8b717, so it isn't this PR. AI-assisted
oneandonlydean commented 2026-10-20 13:45:23 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-20T13:45:23Z.


Thanks, the allocation-generation key on the collect memos checks out. Reverting 6cb0989d9b makes the three cached agc_collect_mapping_history cases fail while _uncached still passes, and both array-layer tests fail too. So the fix is real, and the array-layer path depends on it.

One requested addition in the same commit: the Windows UntrackedHint memo (GuestMemory.cpp:1831-1839 at c778381786) is the one memo still keyed only on {epoch, unwatched}. It stores into threadHintMemo with the same Memo struct but never sets or compares mapping. Within one collect epoch, a hint walk can therefore still be skipped across an allocation replacement, which is the case 6cb0989d9b fixes for the epoch map and both rings. Reading GuestAllocationsGeneration_nid_postfix() before the walk and storing/comparing it there, like the other three, would close it.

This isn't a regression (main has the same gap), and it doesn't block the rest of the review.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6292331663 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6718#issuecomment-6292331663). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-20T13:45:23Z. --- Thanks, the allocation-generation key on the collect memos checks out. Reverting 6cb0989d9b makes the three cached `agc_collect_mapping_history` cases fail while `_uncached` still passes, and both array-layer tests fail too. So the fix is real, and the array-layer path depends on it. One requested addition in the same commit: the Windows `UntrackedHint` memo (`GuestMemory.cpp:1831-1839` at c778381786) is the one memo still keyed only on `{epoch, unwatched}`. It stores into `threadHintMemo` with the same `Memo` struct but never sets or compares `mapping`. Within one collect epoch, a hint walk can therefore still be skipped across an allocation replacement, which is the case 6cb0989d9b fixes for the epoch map and both rings. Reading `GuestAllocationsGeneration_nid_postfix()` before the walk and storing/comparing it there, like the other three, would close it. This isn't a regression (main has the same gap), and it doesn't block the rest of the review.
Zenodeon commented 2026-10-20 15:00:08 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Zenodeon on 2026-10-20T15:00:08Z.


@oneandonlydean Addressed in the same allocation-generation fix commit, now c19dcecfec8954233d0f22da969422c8eed7ac4f (PR head 9fe1f963c8f1849478d86dc77e23cfcc4be1278e). The Windows UntrackedHint path reads GuestAllocationsGeneration_nid_postfix() before the walk and stores/compares mapping in threadHintMemo, matching the other three caches.

Added agc_hint_mapping_history_cached and _uncached. Within one collect epoch, the fixture populates the hint memo, performs a real CPU store, replaces the allocation registration at the same address, and requires the next hint to advance. It also checks unchanged repeated hints, guest-byte preservation and replacement without a store producing no invented write. Before repair, the cached case fails at a cached hint walk hid a CPU store across allocation replacement, while the uncached control passes. Main 5f7e30233 with the identical test-only fixture reproduces the same gap; both cases pass after repair.

Fresh Windows RTX 4070 / driver 610.88 Release results: #6718 17/17 pass, restacked #6820 18/18 pass, zero skips. The three incremental #6820 commits are patch-equivalent. Matched main shared suite 10/10 pass, plus its no-host-import array control 1/1 pass. GPU runs used ANYPS5_REQUIRE_VULKAN=1, ANYPS5_NO_SHADER_CACHE=1 and VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation; the layer loaded and there are no missing-layer diagnostics or new VUID errors. Main plus its matching control and both candidates have identical known older-layer device-create errors (VUID-VkDeviceCreateInfo-pNext-pNext, unknown structure 1000574000), so zero total validation errors is not claimed.

Conventions against the tested canonical main revision and diff checks pass. The required stale-fork origin/main check was attempted but hits Windows WinError 206; the canonical check succeeds. PR descriptions now include the current heads and evidence. No new gameplay/performance claim. AI-assisted: yes.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6293923679 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6718#issuecomment-6293923679). Originally posted by [Zenodeon](https://github.com/Zenodeon) on 2026-10-20T15:00:08Z. --- @oneandonlydean Addressed in the same allocation-generation fix commit, now `c19dcecfec8954233d0f22da969422c8eed7ac4f` (PR head `9fe1f963c8f1849478d86dc77e23cfcc4be1278e`). The Windows `UntrackedHint` path reads `GuestAllocationsGeneration_nid_postfix()` before the walk and stores/compares `mapping` in `threadHintMemo`, matching the other three caches. Added `agc_hint_mapping_history_cached` and `_uncached`. Within one collect epoch, the fixture populates the hint memo, performs a real CPU store, replaces the allocation registration at the same address, and requires the next hint to advance. It also checks unchanged repeated hints, guest-byte preservation and replacement without a store producing no invented write. Before repair, the cached case fails at `a cached hint walk hid a CPU store across allocation replacement`, while the uncached control passes. Main `5f7e30233` with the identical test-only fixture reproduces the same gap; both cases pass after repair. Fresh Windows RTX 4070 / driver 610.88 Release results: #6718 **17/17 pass**, restacked #6820 **18/18 pass**, zero skips. The three incremental #6820 commits are patch-equivalent. Matched main shared suite **10/10 pass**, plus its no-host-import array control **1/1 pass**. GPU runs used `ANYPS5_REQUIRE_VULKAN=1`, `ANYPS5_NO_SHADER_CACHE=1` and `VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation`; the layer loaded and there are no missing-layer diagnostics or new VUID errors. Main plus its matching control and both candidates have identical known older-layer device-create errors (`VUID-VkDeviceCreateInfo-pNext-pNext`, unknown structure 1000574000), so zero total validation errors is not claimed. Conventions against the tested canonical main revision and diff checks pass. The required stale-fork `origin/main` check was attempted but hits Windows `WinError 206`; the canonical check succeeds. PR descriptions now include the current heads and evidence. No new gameplay/performance claim. AI-assisted: yes.
LeandroLP23 commented 2026-10-21 17:28:34 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by LeandroLP23 on 2026-10-21T17:28:34Z.


SuperTuxKart race data on current main, AMD under Windows. This PR still fixes the round trip that #7154 made worse, and in a race the gain is 2–3×.

Setup.

  • Hardware and build: Radeon 860M (driver 32.0.13058.8001), Ryzen AI 7 350, Windows 11 26300, WinLibs GCC 15.2.0, Release.
  • Trees: main d34da5d694, and the same main with this head eb2aae7f8b merged (clean merge, 6d6b7d9501).
  • Scene: the tutorial race of SuperTuxKart (PPSA69421 00.001.000), started through APS5_PAD_INPUT_FILE, with APS5_TRACE_SECONDS=95:20. That window is the race itself, not the menu the other STK numbers in these threads come from.
  • Captures: two per side, each in a new run folder, audio muted.
tree FPS p50 / p90 / p99 ms GPU busy per present
main 1.70 591.9 / 749.8 / 830.7 130.2 ms
main 2.16 433.9 / 553.7 / 678.6 86.3 ms
main + this PR 4.43 230.3 / 275.8 / 303.4 83.7 ms
main + this PR 7.24 121.5 / 200.2 / 272.9 39.1 ms

The race varies a lot from run to run, but the two sides don't overlap.

Why, from the counters. These come from a separate run per side with APS5_PROFILE_DRAW=1, 10 s windows in the race. The main side is from 2c4b116da9, a few merges before d34da5d694, with the same 1.47–1.70 FPS.

per 10 s main + this PR
draws 2114 7638
readTarget 6929 ms (1366 lookups ≥ 1 ms, 11.2 M pages walked) 1167 ms (165 ≥ 1 ms)
uploads, reason flushed 690 / 11644 MiB 0
write-backs refresh + storage refresh 2099 / 15730 MiB 0
[guestmem] compare 216727 MiB in 9.7 s 5033 MiB in 0.3 s

On main, the draw committer spends about 44 % of its sampled time under StorageTexture::upload. Of that, about 17 % allocates a new DeviceBuffer (BufferPool::AllocateMemory, ending in D3DKMTCreateAllocation), and about 15 % waits in CommandBatch::Wait. The uploads are about 16.9 MiB each, a 1920x1080 64-bit color target. That is #6189's two-slice round trip, on every pass.

With this PR, the busiest thread is the title's own. It spends about 62 % of its samples in sceKernelUsleep, polling for GPU work, which is what #8858 and #7464 address. The draw path no longer dominates.

Traces and summary lines: pr6718-race-traces.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6322288769 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6718#issuecomment-6322288769). Originally posted by [LeandroLP23](https://github.com/LeandroLP23) on 2026-10-21T17:28:34Z. --- SuperTuxKart race data on current `main`, AMD under Windows. This PR still fixes the round trip that #7154 made worse, and in a race the gain is 2–3×. **Setup.** - Hardware and build: Radeon 860M (driver 32.0.13058.8001), Ryzen AI 7 350, Windows 11 26300, WinLibs GCC 15.2.0, Release. - Trees: `main` `d34da5d694`, and the same `main` with this head `eb2aae7f8b` merged (clean merge, `6d6b7d9501`). - Scene: the tutorial race of SuperTuxKart (PPSA69421 00.001.000), started through `APS5_PAD_INPUT_FILE`, with `APS5_TRACE_SECONDS=95:20`. That window is the race itself, not the menu the other STK numbers in these threads come from. - Captures: two per side, each in a new run folder, audio muted. | tree | FPS | p50 / p90 / p99 ms | GPU busy per present | |---|---|---|---| | `main` | 1.70 | 591.9 / 749.8 / 830.7 | 130.2 ms | | `main` | 2.16 | 433.9 / 553.7 / 678.6 | 86.3 ms | | `main` + this PR | 4.43 | 230.3 / 275.8 / 303.4 | 83.7 ms | | `main` + this PR | 7.24 | 121.5 / 200.2 / 272.9 | 39.1 ms | The race varies a lot from run to run, but the two sides don't overlap. **Why, from the counters.** These come from a separate run per side with `APS5_PROFILE_DRAW=1`, 10 s windows in the race. The `main` side is from `2c4b116da9`, a few merges before `d34da5d694`, with the same 1.47–1.70 FPS. | per 10 s | `main` | + this PR | |---|---|---| | draws | 2114 | 7638 | | `readTarget` | 6929 ms (1366 lookups ≥ 1 ms, 11.2 M pages walked) | 1167 ms (165 ≥ 1 ms) | | uploads, reason `flushed` | 690 / 11644 MiB | 0 | | write-backs `refresh` + `storage refresh` | 2099 / 15730 MiB | 0 | | `[guestmem]` compare | 216727 MiB in 9.7 s | 5033 MiB in 0.3 s | On `main`, the draw committer spends about 44 % of its sampled time under `StorageTexture::upload`. Of that, about 17 % allocates a new `DeviceBuffer` (`BufferPool::AllocateMemory`, ending in `D3DKMTCreateAllocation`), and about 15 % waits in `CommandBatch::Wait`. The uploads are about 16.9 MiB each, a 1920x1080 64-bit color target. That is #6189's two-slice round trip, on every pass. **With this PR**, the busiest thread is the title's own. It spends about 62 % of its samples in `sceKernelUsleep`, polling for GPU work, which is what #8858 and #7464 address. The draw path no longer dominates. Traces and summary lines: [pr6718-race-traces](https://github.com/LeandroLP23/AnyPS5/releases/tag/pr6718-race-traces).
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!6718
No description provided.