fix(agc): reclaim idle images safely during cache creation #7800

Merged
santhoshkumar-dev merged 6 commits from upstream-pr/7800 into main 2026-10-23 15:39:02 +00:00
santhoshkumar-dev commented 2026-10-19 08:05:55 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by santhoshkumar-dev on 2026-10-19T08:05:55Z.


What

Image creation can fail while its cache still holds idle images: ordinary recovery cannot reuse the cache lock held by the creation call. Permit same-cache recovery only inside a new image's allocation, after lookup iterators are no longer used. Buffer uploads, hit refreshes and write-back allocations keep conservative permissions.

Thread that permission through OwnedImage::Allocate, AllocateImageMemory, TakeImageMemory and AllocateMemory, preserving main's image pooling, allocated-memory-type feedback and host-memory fallback. Cover initial sRGB expansion and repacked copies as well as sampled, block/depth-copy and storage-image allocations.

Recovery tries other cache/resource/device locks without waiting, preserves caller-held sampled images, pending storage results and recorded references, and counts allocations released by the caches before trimming the pool and retrying. The reclaim reserve saturates at the VkDeviceSize limit.

This incorporates Queuse's reviewed current-main composition and its copy-recovery regressions, with original authorship retained. The six commits are now rebased onto main 093149c5bd; range-diff against the previous d669999c01 head reports all six unchanged, with authorship preserved. This addresses the requested allocator rebase, committed conflict markers, unrelated debt paragraph and inaccurate validation note.

Tested

Windows 11 Pro 10.0.26200, WinLibs MinGW-w64 GCC 15.2.0 r7 UCRT, Ninja Release, bundled dependencies, BUILD_TESTING=ON, ANYPS5_ENABLE_SPIRV_TOOLS=OFF. GPU: AMD Radeon RX 6700 XT, AMD Vulkan 26.8.1 / Windows driver 32.0.21045.5002. Khronos validation layer 1.4.363.0 loaded from the signed LunarG SDK.

  • Latest baseline main 093149c5bd: built the four focused executables; 14/14 existing checks passed, no skips, 18.06 s.
  • Rebased candidate a2ec2a3818: full default Windows build passed, including dependent AGC execution tests. 18/18 focused checks passed, no skips, 18.94 s.
  • The focused set includes CPU buffer-pool mocks and real GPU cache/graphics tests. Both runs used the same GPU with ANYPS5_REQUIRE_VULKAN=1, ANYPS5_NO_SHADER_CACHE=1, VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation, loader layer logging and ctest -V. Both logs confirm the validation DLL loaded; neither contains a missing-requested-layer warning or any VUID- validation error.
  • All four sampled/storage/sRGB/repacked recovery cases inject two allocation failures and recover on attempt three after releasing exactly 262144 bytes. They retain caller-held images and pending storage results. Buffer-pool cases verify permission propagation, bounded retries, saturation and host-memory fallback.
  • Historical negative control on the unchanged patch series at d669999c01: removing only the initial sRGB/repacked allocation permissions made both copy regressions fail with an image allocation did not identify itself to the recovery callback. That control was restored before publication and was not repeated for this source-identical rebase.
  • Current registration audit: 1,175 test executables, none built and unregistered. Conventions, whitespace and conflict-marker checks pass.

Earlier AMD/NVIDIA/RADV and title runs remain historical evidence in the review comments. No fresh title, Linux/macOS runtime, full CTest-suite or performance claim is made for this head.

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: none
  • Fixes: none
  • Unblocks: OlliOlli World PPSA02327 #5316 (original allocation-failure report; no fresh title run)
  • GPUs tested: AMD Radeon RX 6700 XT, AMD Vulkan 26.8.1 / Windows driver 32.0.21045.5002, Windows 11 Pro 10.0.26200
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4917823263 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7800). Originally posted by [santhoshkumar-dev](https://github.com/santhoshkumar-dev) on 2026-10-19T08:05:55Z. --- ### What Image creation can fail while its cache still holds idle images: ordinary recovery cannot reuse the cache lock held by the creation call. Permit same-cache recovery only inside a new image's allocation, after lookup iterators are no longer used. Buffer uploads, hit refreshes and write-back allocations keep conservative permissions. Thread that permission through `OwnedImage::Allocate`, `AllocateImageMemory`, `TakeImageMemory` and `AllocateMemory`, preserving main's image pooling, allocated-memory-type feedback and host-memory fallback. Cover initial sRGB expansion and repacked copies as well as sampled, block/depth-copy and storage-image allocations. Recovery tries other cache/resource/device locks without waiting, preserves caller-held sampled images, pending storage results and recorded references, and counts allocations released by the caches before trimming the pool and retrying. The reclaim reserve saturates at the `VkDeviceSize` limit. This incorporates [Queuse's reviewed current-main composition](https://github.com/Queuse/AnyPS5/tree/36ffc6819d) and its copy-recovery regressions, with original authorship retained. The six commits are now rebased onto main `093149c5bd`; range-diff against the previous `d669999c01` head reports all six unchanged, with authorship preserved. This addresses the requested allocator rebase, committed conflict markers, unrelated debt paragraph and inaccurate validation note. ### Tested Windows 11 Pro 10.0.26200, WinLibs MinGW-w64 GCC 15.2.0 r7 UCRT, Ninja Release, bundled dependencies, `BUILD_TESTING=ON`, `ANYPS5_ENABLE_SPIRV_TOOLS=OFF`. GPU: AMD Radeon RX 6700 XT, AMD Vulkan 26.8.1 / Windows driver 32.0.21045.5002. Khronos validation layer 1.4.363.0 loaded from the signed LunarG SDK. - Latest baseline main `093149c5bd`: built the four focused executables; **14/14 existing checks passed**, no skips, 18.06 s. - Rebased candidate `a2ec2a3818`: full default Windows build passed, including dependent AGC execution tests. **18/18 focused checks passed**, no skips, 18.94 s. - The focused set includes CPU buffer-pool mocks and real GPU cache/graphics tests. Both runs used the same GPU with `ANYPS5_REQUIRE_VULKAN=1`, `ANYPS5_NO_SHADER_CACHE=1`, `VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation`, loader layer logging and `ctest -V`. Both logs confirm the validation DLL loaded; neither contains a missing-requested-layer warning or any `VUID-` validation error. - All four sampled/storage/sRGB/repacked recovery cases inject two allocation failures and recover on attempt three after releasing exactly 262144 bytes. They retain caller-held images and pending storage results. Buffer-pool cases verify permission propagation, bounded retries, saturation and host-memory fallback. - Historical negative control on the unchanged patch series at `d669999c01`: removing only the initial sRGB/repacked allocation permissions made both copy regressions fail with `an image allocation did not identify itself to the recovery callback`. That control was restored before publication and was not repeated for this source-identical rebase. - Current registration audit: **1,175 test executables, none built and unregistered**. Conventions, whitespace and conflict-marker checks pass. Earlier AMD/NVIDIA/RADV and title runs remain historical evidence in the review comments. No fresh title, Linux/macOS runtime, full CTest-suite or performance claim is made for this head. <!-- 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. --> ### 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: <!-- #PR, or none --> none - [x] Fixes: <!-- issue it closes as Fixes #N, or none --> none - [x] Unblocks: <!-- title ID and Game bring-up discussion, e.g. PPSA01325 #3232, or none --> OlliOlli World PPSA02327 #5316 (original allocation-failure report; no fresh title run) - [x] GPUs tested: <!-- for AGC, shader recompiler or VideoOut changes: vendor, model, driver and OS of each GPU the GPU tests ran on; otherwise n/a --> AMD Radeon RX 6700 XT, AMD Vulkan 26.8.1 / Windows driver 32.0.21045.5002, Windows 11 Pro 10.0.26200 - [x] AI-assisted: <!-- yes / no --> yes
blawesom commented 2026-10-19 08:59:57 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by blawesom on 2026-10-19T08:59:57Z.


Rebase handoff — rebased onto current main (authorship unchanged). The nine conflicts resolved: main's AllocateMemory signature extended with your trailing newImage flag and forwarded through the AllocateImageMemory helper (the four construction sites marked true; the depth/resources sites keep main's unflagged form, which your diff left unmarked too); both test-mode flags kept in SampledCacheBudget; and the PR branch's own badly-resolved debt merge deduplicated.

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; full suite green apart from the four known main regressions (#5444 Mesa, #7584 BDA, #7766, #7784), none from this PR.

To pick it up:

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

Head is 0c04dcf46.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6263545514 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7800#issuecomment-6263545514). Originally posted by [blawesom](https://github.com/blawesom) on 2026-10-19T08:59:57Z. --- **Rebase handoff** — rebased onto current `main` (authorship unchanged). The nine conflicts resolved: `main`'s `AllocateMemory` signature extended with your trailing `newImage` flag and forwarded through the `AllocateImageMemory` helper (the four construction sites marked `true`; the depth/resources sites keep `main`'s unflagged form, which your diff left unmarked too); both test-mode flags kept in `SampledCacheBudget`; and the PR branch's own badly-resolved debt merge deduplicated. 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; **full suite green apart from the four known `main` regressions** (#5444 Mesa, #7584 BDA, #7766, #7784), none from this PR. **To pick it up:** ``` git fetch https://github.com/blawesom/AnyPS5 rebase/7800 git checkout <your branch> git merge --ff-only FETCH_HEAD ``` Head is `0c04dcf46`.
adriadam10 commented 2026-10-19 17:32:29 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-19T17:32:29Z.

Review: CHANGES_REQUESTED


Thanks for the extension of #6174. Blockers before this can go on:

  • docs/dev/debt/libSceAgcDriver.md:49-53 has committed conflict markers (<<<<<<< HEAD / ======= / >>>>>>> c12897b53). It also adds an unrelated "Untracked surfaces in the fast revalidate" entry next to the allocation-recovery one; keep only the line for this change. The recovery line says the paths "have not been compiled or run", which contradicts the Tested section: update it to what was actually run.
  • The branch conflicts with main in CMakeLists.txt, BufferPool.hpp/.cpp, DepthSurface.cpp, MultisampleTarget.cpp, Resources.cpp, Texture.cpp and tests/execution/SampledCacheBudget.cpp. main now routes image allocations through AllocateImageMemory(context, allocation, mask, operation) and AllocateMemory takes hostType/allocatedType, so the newImage flag and the depth/stencil/MSAA/render-target sites need to be redone on top of that rather than mechanically rebased. @blawesom pushed such a rebase (blawesom/AnyPS5 branch rebase/7800, 0c04dcf46, full suite green on RADV apart from the known main failures); you can fast-forward to it or redo it, then re-run the ten listed tests on the result.

After that, the review of the lock changes (TryRemoveImage, the *CacheReclaimable holds) will be against the rebased head.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5575308169 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7800#pullrequestreview-5575308169). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-19T17:32:29Z. **Review:** CHANGES_REQUESTED --- Thanks for the extension of #6174. Blockers before this can go on: - `docs/dev/debt/libSceAgcDriver.md:49-53` has committed conflict markers (`<<<<<<< HEAD` / `=======` / `>>>>>>> c12897b53`). It also adds an unrelated "Untracked surfaces in the fast revalidate" entry next to the allocation-recovery one; keep only the line for this change. The recovery line says the paths "have not been compiled or run", which contradicts the Tested section: update it to what was actually run. - The branch conflicts with `main` in `CMakeLists.txt`, `BufferPool.hpp/.cpp`, `DepthSurface.cpp`, `MultisampleTarget.cpp`, `Resources.cpp`, `Texture.cpp` and `tests/execution/SampledCacheBudget.cpp`. `main` now routes image allocations through `AllocateImageMemory(context, allocation, mask, operation)` and `AllocateMemory` takes `hostType`/`allocatedType`, so the `newImage` flag and the depth/stencil/MSAA/render-target sites need to be redone on top of that rather than mechanically rebased. @blawesom pushed such a rebase (`blawesom/AnyPS5` branch `rebase/7800`, `0c04dcf46`, full suite green on RADV apart from the known `main` failures); you can fast-forward to it or redo it, then re-run the ten listed tests on the result. After that, the review of the lock changes (`TryRemoveImage`, the `*CacheReclaimable` holds) will be against the rebased head.
blawesom commented 2026-10-19 19:06:33 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by blawesom on 2026-10-19T19:06:33Z.


Rebase handoff, with one bug in the branch itself — rebased onto current main (585075cb7, authorship unchanged). This was a real semantic merge; here's what it took and what I found.

The conflict: main's ad11cb1b3 and this PR evolved BufferPool::AllocateMemory in opposite directions — main added the host-memory fallback (hostType/allocatedType parameters and the AllocateImageMemory wrapper), this PR added newImage (reclaim may only reuse a held cache lock at new-image construction). Resolution: the union signature carries all three parameters; AllocateImageMemory gained bool newImage = false threaded to its pool call; your four new-image sites (texture, block copy, depth copy, storage texture) pass true through the wrapper; the rest (depth target, stencil copy, depth plane copy, multisampled target, render target, attachment proxy) keep main's wrapper with the default. Since main's wrapper already routes through BufferPool::AllocateMemory, your recovery applies at every one of those sites — the two designs compose rather than compete.

The branch bug: your committed tree carries conflict markers in docs/dev/debt/libSceAgcDriver.md (lines 49–53, wrapping an empty HEAD side — looks like an earlier self-rebase against c12897b53 left them behind). The rebase drops them and keeps your two entries.

Verified on Linux (CachyOS, kernel 7.2.9, GCC 16.2.1, Ninja, Release, BUILD_TESTING=ON, AMD RX 9070 XT / RADV): builds; the merged recovery path works end-to-end — agc_driver_recover_sampled_allocation logs vkAllocateMemory texture recovered: allocation=262144 reclaimed=2621440 released=262144 initialResult=-2 attempts=3 and both recovery tests pass, along with the other four sampled_cache_budget modes; full suite green apart from the four known main regressions (#5444 Mesa, #7584 BDA, #7766, #7784), none from this PR; conventions pass.

That run is also the first time the integrated result has been compiled and run anywhere, I believe — your debt entry for the recovery says "not been compiled or run on hardware in this local integration", which you may want to refresh now that it has been (RADV here; other stacks still unverified).

To pick it up:

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

Head is 8a29005f5.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6275053416 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7800#issuecomment-6275053416). Originally posted by [blawesom](https://github.com/blawesom) on 2026-10-19T19:06:33Z. --- **Rebase handoff, with one bug in the branch itself** — rebased onto current `main` (`585075cb7`, authorship unchanged). This was a real semantic merge; here's what it took and what I found. **The conflict:** `main`'s `ad11cb1b3` and this PR evolved `BufferPool::AllocateMemory` in opposite directions — `main` added the host-memory fallback (`hostType`/`allocatedType` parameters and the `AllocateImageMemory` wrapper), this PR added `newImage` (reclaim may only reuse a held cache lock at new-image construction). Resolution: the union signature carries all three parameters; `AllocateImageMemory` gained `bool newImage = false` threaded to its pool call; your four new-image sites (texture, block copy, depth copy, storage texture) pass `true` through the wrapper; the rest (depth target, stencil copy, depth plane copy, multisampled target, render target, attachment proxy) keep `main`'s wrapper with the default. Since `main`'s wrapper already routes through `BufferPool::AllocateMemory`, your recovery applies at every one of those sites — the two designs compose rather than compete. **The branch bug:** your committed tree carries conflict markers in `docs/dev/debt/libSceAgcDriver.md` (lines 49–53, wrapping an empty HEAD side — looks like an earlier self-rebase against `c12897b53` left them behind). The rebase drops them and keeps your two entries. Verified on Linux (CachyOS, kernel 7.2.9, GCC 16.2.1, Ninja, Release, `BUILD_TESTING=ON`, AMD RX 9070 XT / RADV): builds; **the merged recovery path works end-to-end** — `agc_driver_recover_sampled_allocation` logs `vkAllocateMemory texture recovered: allocation=262144 reclaimed=2621440 released=262144 initialResult=-2 attempts=3` and both recovery tests pass, along with the other four `sampled_cache_budget` modes; full suite green apart from the four known `main` regressions (#5444 Mesa, #7584 BDA, #7766, #7784), none from this PR; conventions pass. That run is also the first time the integrated result has been compiled and run anywhere, I believe — your debt entry for the recovery says "not been compiled or run on hardware in this local integration", which you may want to refresh now that it has been (RADV here; other stacks still unverified). **To pick it up:** ``` git fetch https://github.com/blawesom/AnyPS5 rebase/7800 git checkout <your branch> git merge --ff-only FETCH_HEAD ``` Head is `8a29005f5`.
santhoshkumar-dev commented 2026-10-20 03:11:40 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by santhoshkumar-dev on 2026-10-20T03:11:40Z.


Addressed the review changes in 828d2ad6f.

  • Integrated the semantic rebase handoff onto main at c942b37c0. AllocateMemory retains hostType/allocatedType, and AllocateImageMemory forwards newImage from the four image-construction sites. Other allocation sites keep the conservative default.
  • Removed the committed conflict markers, the unrelated fast-revalidate debt entry, and duplicate includes. Refreshed the allocation-recovery debt note to reflect the previously reported hardware testing.
  • Added regression coverage for image-creation permission, recovery before host-memory fallback, and bounded allocation attempts.

Validation on Debian 13, GCC 14, Release, Mesa 25.0.7 lavapipe (LLVM 19.1.7), with Khronos validation enabled:

  • All 10 focused baseline tests passed on main; all 12 passed on this commit, including both sampled/storage allocation-recovery tests. No skips.
  • Both recovery tests recovered after two injected allocation failures.
  • Both runs used ANYPS5_REQUIRE_VULKAN=1, ANYPS5_NO_SHADER_CACHE=1, and VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation. Neither log contained missing-layer warnings or VUID- errors.
  • Conventions checks passed.

This run used lavapipe; the AMD hardware results referenced in the debt note are the earlier reported runs.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6282451166 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7800#issuecomment-6282451166). Originally posted by [santhoshkumar-dev](https://github.com/santhoshkumar-dev) on 2026-10-20T03:11:40Z. --- Addressed the review changes in [828d2ad6f](https://github.com/santhoshkumar-dev/AnyPS5/commit/828d2ad6fa4543317fe3de863d610dbcb0441c5d). - Integrated the semantic rebase handoff onto `main` at `c942b37c0`. `AllocateMemory` retains `hostType`/`allocatedType`, and `AllocateImageMemory` forwards `newImage` from the four image-construction sites. Other allocation sites keep the conservative default. - Removed the committed conflict markers, the unrelated fast-revalidate debt entry, and duplicate includes. Refreshed the allocation-recovery debt note to reflect the previously reported hardware testing. - Added regression coverage for image-creation permission, recovery before host-memory fallback, and bounded allocation attempts. Validation on Debian 13, GCC 14, Release, Mesa 25.0.7 lavapipe (LLVM 19.1.7), with Khronos validation enabled: - All 10 focused baseline tests passed on `main`; all 12 passed on this commit, including both sampled/storage allocation-recovery tests. No skips. - Both recovery tests recovered after two injected allocation failures. - Both runs used `ANYPS5_REQUIRE_VULKAN=1`, `ANYPS5_NO_SHADER_CACHE=1`, and `VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation`. Neither log contained missing-layer warnings or `VUID-` errors. - Conventions checks passed. This run used lavapipe; the AMD hardware results referenced in the debt note are the earlier reported runs.
Queuse commented 2026-10-21 23:36:32 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Queuse on 2026-10-21T23:36:32Z.


Current-main composition, 36ffc6819d, main a6dcea9279; original authorship, image pooling and memory-type feedback preserved. Adds recovery for initial sRGB/repacked copies.

Baseline: 14 matching existing cases pass. Candidate: 18/18 pass on Windows 11, RTX 3050 Laptop/617.42, GCC 15.2.0-r7; no skips, missing validation layer or VUIDs. All 4 recovery fixtures release exactly 262144 bytes after 2 injected failures, retaining held images and pending storage results.

Copy fixtures check ownership before lookup can promote snapshots to storage views; a pre-pressure control confirms this transition with zero recovery requests. Removing only copy allocation permissions fails both cases; restoring passes 18/18. No title/Linux/full-suite/performance claim. AI-assisted: yes.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6328969608 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7800#issuecomment-6328969608). Originally posted by [Queuse](https://github.com/Queuse) on 2026-10-21T23:36:32Z. --- [Current-main composition](https://github.com/Queuse/AnyPS5/tree/codex/validate-pr-7800-current), `36ffc6819d`, main `a6dcea9279`; original authorship, image pooling and memory-type feedback preserved. Adds recovery for initial sRGB/repacked copies. Baseline: 14 matching existing cases pass. Candidate: 18/18 pass on Windows 11, RTX 3050 Laptop/617.42, GCC 15.2.0-r7; no skips, missing validation layer or VUIDs. All 4 recovery fixtures release exactly 262144 bytes after 2 injected failures, retaining held images and pending storage results. Copy fixtures check ownership before lookup can promote snapshots to storage views; a pre-pressure control confirms this transition with zero recovery requests. Removing only copy allocation permissions fails both cases; restoring passes 18/18. No title/Linux/full-suite/performance claim. AI-assisted: yes.
santhoshkumar-dev commented 2026-10-22 08:11:02 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by santhoshkumar-dev on 2026-10-22T08:11:02Z.


Addressed the requested allocator rebase in d669999c01, based on current main d6eafa54d0.

  • Incorporated @Queuse's 36ffc6819d composition and copy-recovery regressions with original authorship; all six commits have equal range-diffs after rebasing.
  • Preserved image pooling, memory-type feedback and host fallback while forwarding newImage through OwnedImage::Allocate, AllocateImageMemory, TakeImageMemory and AllocateMemory. Initial sRGB/repacked copies now have the same scoped permission as the other new-image paths.
  • Removed the stale conflict-marker/unrelated-debt problems and replaced the PR description with the final behavior and current validation.

Local Windows 11 / RX 6700 XT / AMD Vulkan 26.8.1 validation: 14/14 baseline tests, 18/18 candidate tests, and 18/18 after restoring the negative control. All runs use required Vulkan, disabled shader cache and the actual Khronos validation layer; no skips, missing-layer warnings or VUIDs. Removing only the sRGB/repacked permissions makes both corresponding tests fail as expected.

The full default Windows build passed. Conventions, whitespace and registration audit passed (1,173 test executables, none built and unregistered). No fresh title/Linux/full-suite/performance result is claimed.

The updated head is ready for the lock/recovery review requested above.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6335998111 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7800#issuecomment-6335998111). Originally posted by [santhoshkumar-dev](https://github.com/santhoshkumar-dev) on 2026-10-22T08:11:02Z. --- Addressed the requested allocator rebase in [`d669999c01`](https://github.com/santhoshkumar-dev/AnyPS5/commit/d669999c01c1eec44191b123ef47a880401789d3), based on current main `d6eafa54d0`. - Incorporated @Queuse's `36ffc6819d` composition and copy-recovery regressions with original authorship; all six commits have equal range-diffs after rebasing. - Preserved image pooling, memory-type feedback and host fallback while forwarding `newImage` through `OwnedImage::Allocate`, `AllocateImageMemory`, `TakeImageMemory` and `AllocateMemory`. Initial sRGB/repacked copies now have the same scoped permission as the other new-image paths. - Removed the stale conflict-marker/unrelated-debt problems and replaced the PR description with the final behavior and current validation. Local Windows 11 / RX 6700 XT / AMD Vulkan 26.8.1 validation: **14/14 baseline tests**, **18/18 candidate tests**, and **18/18 after restoring the negative control**. All runs use required Vulkan, disabled shader cache and the actual Khronos validation layer; no skips, missing-layer warnings or VUIDs. Removing only the sRGB/repacked permissions makes both corresponding tests fail as expected. The **full default Windows build passed**. Conventions, whitespace and registration audit passed (1,173 test executables, none built and unregistered). No fresh title/Linux/full-suite/performance result is claimed. The updated head is ready for the lock/recovery review requested above.
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!7800
No description provided.