Skip to content

fix(agc): keep per-layer storage views of a 2D array in one image - #10743

Open
orezraey wants to merge 17 commits into
boykopovar:mainfrom
orezraey:perf/agc-storage-array-layers
Open

orezraey wants to merge 17 commits into
boykopovar:mainfrom
orezraey:perf/agc-storage-array-layers

Conversation

@orezraey

@orezraey orezraey commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

What

A compute shader that writes one layer of a 2D array at a time, through a T# with BASE_ARRAY = LAST_ARRAY = N, made a separate storage image per layer: the lookup of layer N built an image of layers 0..N (the T# names N as its last layer, not the array size). The images overlap, so every dispatch flushed the previous one's pending results and uploaded its own again (storage refresh write-backs). DEATHLOOP (PPSA01670) does this every frame on a 960x540 4-layer array.

  • StorageArraySurface (in StorageSurface): a storage view of a thin 2D array without DCC, FMASK/CMASK or MSAA is served by one image of slices 0 to the largest last slice any view of that surface has named, the way StorageSurface already widens mip chains. It falls back to the view itself when the widened geometry would move the viewed slices.
  • When a wider image is created, the narrower images of the same surface are evicted (flushed) so two pending images never hold the same slice.
  • A widened lookup refreshes only the viewed slices (RefreshLayers). The binding gets a view of those slices: StorageView, AtomicView, Atomic64View, View and FirstLayerView take a layer window, and their view caches are keyed by it. A write marks only those slices dirty (MarkSliceDirty); a write through a 2D shape marks only the window's first slice.
  • agc_driver_storage_array_layers: three rounds of per-layer image_stores into a 4-layer array. After the first round one pending image holds all four layers, later rounds reuse it, and every layer holds its own values after the flush. It then registers the same address again as a 2-layer allocation and repeats the rounds there: the pending image holds layers 0..1, not the 0..3 of the earlier array, and layers 2 and 3 stay untouched. Before that it repeats the rounds as a 2-layer array at the same address without touching the allocation (same backingSerial), with the same expectations. Last, it extends a storage mip chain (which switches StorageSurface to its locked path) and repeats the rounds on another array. On main it fails with the pending image of the 4-layer array not holding every layer; on cdfc7a986f it fails with "the pending image of the 2-layer array holds layers 0..3", and on cd720c71a4 it fails the same way in the unchanged-allocation case.
  • The largest slice is kept per surface key only while the registered guest range holding the base keeps its backing (backingSerial, renewed by a new mapping or a protection change), and a view is widened only when the wider image ends inside that range; memory in no registered range is never widened.
  • Only a view that names the largest slice creates the wider image. A view whose remembered largest slice lies past its own last slice uses a cached image of more slices if there is one, and otherwise creates an image of only slices 0 to its own last, so a new image never uploads slices the view's T# does not name.
  • Copies, resolves and color targets (CachedStorageSurface, CachedStorageLayers) are never widened: AliasCopy builds its destination with CachedStorageSurface and refuses a copy whose shapes differ, so a widened image there threw "an image copy its check allowed was refused: shape" (found by ahmadmuj). agc_driver_storage_array_layers now also stores into all four layers and then asks both for layers 0..1 at the same address; with ShaderResources.cpp at 53e11f112b it fails with "a copy destination of layers 0..1 got layers 0..3".
  • Debt entry: a shorter array the title places at the same address inside the same mapping shares the longer image only while that image is cached; a 2D T# at the address of a later slice is still a separate image.

Related: #6202 refreshes only the layers a color target covers; this PR is about storage writes and does not touch the color-target path.

Tested

  • Head 6d750b25ad (main b611e634f7 merged; the conflict was fix(agc): bind UINT views for float16 stores outside compute shaders #15741's storage descriptor writes in ShaderResources.cpp, which now pick UINT storage views with ShaderRecompiler::RuntimeAbi::UintStorageImageBinding(binding.layout.binding) instead of the binding 7 to 13 range test. Both writes keep that call and pass this PR's storageLayers[index] to Atomic64View, AtomicView and StorageView). Windows, same machine as below: ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation ctest --test-dir build -R "^agc.*(array_layer|image_store|storage|depth_plane|image_atomic|image_table|alias_copy|dcc_keys_first_write|copied_writer|clear_hand)" -E usb -V, 3 runs: 96 of 96 pass each time, including agc_driver_storage_array_layers, 0 VUID-, no missing-layer message. Linux (WSL Ubuntu, GCC, tree reconfigured at this head): libs and the tests build; the same ctest set, 3 runs: 94 of 94 pass each time, 92 of them skipped (exit 77, no Vulkan driver in WSL). check_conventions passes.

  • Head 72ac10a202 (main 1c8c0efc8c merged; the conflict was in cachedStorageTexture, where main (perf(agc): hand pending results over to storage images created under clear keys #14868) now detaches a storage image whose metadata moved and hands it to StorageTexture::PrepareCreation instead of flushing it. The merge keeps this PR's layer-narrowing lookup and widening eviction, detaches as main does, and hands over only an image detached at the key that is finally created: one detached at a wider key, or before narrower images are evicted for widening, is flushed first, as this PR did before). Windows, same machine as below: ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation ctest --test-dir build -R "^agc.*(array_layer|image_store|storage|depth_plane|image_atomic|image_table|alias_copy|dcc_keys_first_write|copied_writer|clear_hand)" -E usb -V, 3 runs: 90 of 90 pass each time, including agc_driver_storage_array_layers and agc_storage_clear_hand_over, 0 VUID-, no missing-layer message. Linux (WSL Ubuntu, GCC): libs and agc_driver_storage_array_layers_tests build; the test is skipped (exit 77), no Vulkan driver in WSL. check_conventions passes.

  • Head 7d2be0318b: main was merged in, with perf(agc): wait on a flush only for writers over the image layers it stores #8887 and feat(agc): sample 1D arrays past maxImageArrayLayers as rows of a 2D image #12246. Texture.hpp keeps appendStoredLayers from main next to this PR's createView(..., LayerWindow layers = {}); the debt file keeps both the 1D-array entry and the storage array widening entry. The 81 focused AGC tests (^agc.*(array_layer|image_store|storage|depth_plane|image_atomic|image_table|alias_copy|dcc_keys_first_write|copied_writer)) pass three runs in a row on Windows (MinGW, GCC 15.2) with ANYPS5_REQUIRE_VULKAN=1, ANYPS5_NO_SHADER_CACHE=1 and VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation: no VUID- errors and the layer was found. On Linux (WSL, GCC) they build and 79 pass three runs in a row, but 77 of those skip there, so Linux exercises only 2 of them. check_conventions passes.

Head 8be6c1abe8 (main bb04a4f1ea merged; no textual conflict, but main's new RepeatStorageSurface called StorageSurface(context, viewed), which this PR gives a widenArray parameter, so the merge did not build, as the NVIDIA GPU test reported. It now passes false, as CachedStorageSurface, the lookup it repeats, does). Windows, same machine as below: ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation ctest --test-dir build -R "^agc" -V, 3 runs: 1151 of 1151 pass each time, no missing-layer message; each run logs 18 VUID-VkPipelineColorBlendStateCreateInfo-pAttachments-00605, all from agc_driver_prepared_exports and agc_driver_srgb8_color_target, and main bb04a4f1ea logs the same 18 in those two tests, so this PR adds none. Linux (WSL Ubuntu, GCC, tree reconfigured at this head): builds; ctest -R "array_layer|image_store|storage|depth_plane|image_atomic|image_table|alias_copy|dcc_keys_first_write|copied_writer" -E usb, 3 runs: 75 of 75 pass each time, 74 of them skipped (exit 77, no Vulkan driver in WSL), including agc_driver_storage_array_layers. check_conventions passes.

Head 924af40153 (main 81267b2204 merged; the conflict was #8998's UINT storage views for bindings 7 to 13 against this PR's layer window: StorageTexture::StorageView now takes both, (mip, firstLayer, uintStorage, layers), keeps #8998's format choice, and the two storage descriptor writes in ShaderResources.cpp pass #8998's binding test and this PR's layer window). Windows, same machine as below: ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation ctest --test-dir build -R "array_layer|image_store|storage|depth_plane|image_atomic|image_table|alias_copy|dcc_keys_first_write|copied_writer" -E usb -V, 3 runs: 72 of 72 pass each time, agc_driver_storage_array_layers passes, 0 VUID-, no missing-layer message. Linux (WSL Ubuntu, GCC): builds; agc_driver_storage_array_layers is skipped (exit 77) in 3 runs, no Vulkan driver in WSL. check_conventions passes.

Head e1ee11a812 (main 9c6d153dec merged after #9961 landed; the only conflict was the libSceAgcDriver debt file, where #9961's new sampled-array-window entry is kept and this PR's storage-widening entry follows it; no code conflict). Windows, same machine as below: ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation ctest --test-dir build -R "array_layer|image_store|storage|depth_plane|image_atomic|image_table|alias_copy|dcc_keys_first_write|copied_writer" -E usb -V, 3 runs: 68 of 69 pass each time, agc_driver_storage_array_layers passes, 0 VUID-, no missing-layer message; the failure is agc_driver_depth_plane_partial_store (#10664), which fails on main too. Linux (WSL): these tests need a Vulkan device and WSL has none, so they skip (exit 77).

Head 09450f2499 (90ac083960 plus a test-only change that prints the base slice in the failure messages; agc_driver_storage_array_layers rerun 3 times at 09450f2499 on Windows with validation: passes, 0 VUID-; on Linux: skipped, exit 77). The set below ran at 90ac083960, on 53e11f112b, same machine as below. ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation ctest --test-dir build -R "array_layer|image_store|storage|depth_plane|image_atomic|image_table|alias_copy|dcc_keys_first_write|copied_writer" -E usb -V, 3 runs: 68 of 69 pass each time, 0 VUID-, no missing-layer message; the failure is again agc_driver_depth_plane_partial_store, as on main. Linux (WSL Ubuntu, GCC): builds; agc_driver_storage_array_layers, agc_driver_alias_copy_label and agc_driver_dcc_keys_first_write are skipped (exit 77) in 3 runs because WSL has no Vulkan driver. check_conventions passes.

Head 53e11f112b (main 16ff208dc3 merged after #10440 landed; in ShaderResources.cpp the storage descriptor now picks #10440's Atomic64View for 64-bit atomics and passes this PR's layer window to all three views), same machine as below. ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation ctest --test-dir build -R "array_layer|image_store|storage|depth_plane" -V, 3 runs: 53 of 54 pass each time, 0 VUID-, no missing-layer message; the failure is agc_driver_depth_plane_partial_store, which fails the same way on main 16ff208dc3 (1 of 53 failed there, 0 VUID-, no missing-layer message). Linux (WSL Ubuntu, GCC): builds; agc_driver_storage_array_layers is skipped (exit 77) in 3 runs, no Vulkan driver in WSL. check_conventions passes.

Head ec41941094 on main 2dc85609fc, same machine as below. ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation ctest --test-dir build -R "array_layer|image_store|storage|depth_plane" -V, 3 runs: 53 of 54 pass each time, 0 VUID-, no missing-layer message; the failure is again agc_driver_depth_plane_partial_store, as on main. agc_driver_storage_array_layers with only ShaderResources.cpp reverted to cd720c71a4 fails with "the pending image of the 2-layer array holds layers 0..3". Linux (WSL Ubuntu, GCC): builds; agc_driver_storage_array_layers is skipped (exit 77) in 3 runs because WSL has no Vulkan driver. check_conventions passes. The DEATHLOOP flush count below is from cdfc7a986f and was not rerun at this head.

Earlier heads:

Windows 11 Pro 26200, AMD Ryzen 7 9700X, NVIDIA GeForce RTX 5070 Ti (driver 616.64), WinLibs GCC, Release. Head cd720c71a4 on main 2dc85609fc.

  • ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation ctest --test-dir build -R "array_layer|image_store|storage|depth_plane" -V, 3 runs at cd720c71a4: 53 of 54 pass each time, 0 VUID-, no missing-layer message. The failure is agc_driver_depth_plane_partial_store ("repeated lookups of the first layer of an unchanged array proved no refresh"), which fails the same way on main 2fade7ef4e on this machine. On that main the same set also fails agc_driver_storage_array_layers, and logs 0 VUID-.
  • Full ctest at cdfc7a986f (before the allocation bound): 2182 tests; failures agc_driver_depth_plane_partial_store and agc_host_import_cut_lifetime (both fail the same way on main 2fade7ef4e here) and select_tests (a temp-directory symlink error in tools/tests/test_select_tests.py).
  • tools/check_conventions.py --base origin/main: passes.
  • Linux (WSL Ubuntu, GCC, same checkout) at cd720c71a4: builds; agc_driver_storage_array_layers is skipped (exit 77) in 3 runs because WSL has no Vulkan driver, so the GPU path is covered only by the Windows runs.

DEATHLOOP (PPSA01670), same machine, behaviour count only (no speed or traffic claim). main cannot reach this scene yet, so both builds are main + #10414 + #10507 + a port of #6192, one without and one with this PR: base fa00d49312, change d26dce2835 (this PR's head cdfc7a986f cherry-picked). Same scripted input (PSN dialog and brightness calibration screens), run with APS5_TRACE_FLUSH=1: the base build logs about 1050 storage refresh flushes of each of the four overlapping images of the 0x26a7200000 array in that flush log; the change logs none for it. What remains comes from 2D T#s at the address of each slice of a 2-layer array that the title also reads as an array (in the debt entry). Alternated base/change captures showed no frame-time difference beyond run-to-run noise, so this PR makes no performance claim.

Checklist

orezraey and others added 3 commits October 24, 2026 17:12
A T# that views one layer of a 2D array (BASE_ARRAY = LAST_ARRAY = N)
used to build a storage image of layers 0..N. Writes to each layer then
made overlapping images that flushed and re-uploaded each other on every
dispatch. Storage lookups now widen a 2D array to the largest layer seen
for its surface, bind views over the requested layers, and refresh and
mark dirty only those layers.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions github-actions Bot added perf Performance change perf numbers missing perf pull request without a before and after summary line labels Oct 24, 2026
@github-actions

Copy link
Copy Markdown

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

@MarcZX10 MarcZX10 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Reviewed exact head 636ef21f8a724030a06c91473ed926508b5656ce. I found a deadlock when this feature is combined with the existing extended-mip tracking. StorageSurface takes surfaces.mutex at the std::lock_guard below the surfaces.any fast path, then its final return calls StorageArraySurface; for a 2D-array resource, StorageArraySurface takes the same non-recursive AgcDriver::Mutex again to update lastLayers. This occurs immediately for an extended 2D-array request, and for any array request after surfaces.any becomes true, so a game that uses extended mip chains before storage arrays can hang on its next array lookup. Please release the outer lock before calling StorageArraySurface (or refactor the state update so it takes the lock only once) and add a regression that first establishes an extended mip chain, then resolves a 2D-array storage view. Separately, the performance captures are not attached; CONTRIBUTING.md requires the traces alongside the summaries. I cannot approve until the deadlock is fixed and the documented performance-evidence requirement is met or the speed claim/perf classification is removed. Hosted policy checks pass; product jobs were skipped, so I have not independently run the GPU tests.

StorageSurface held the ExtendedChains mutex while StorageArraySurface
locked it again, which deadlocks a storage lookup of a 2D array once any
mip chain was extended. A write through a 2D shape of an array now marks
only its first slice dirty.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Oct 24, 2026 •

Copy link
Copy Markdown

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 862 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 1395 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 4448 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
docs/dev/debt/libSceAgcDriver.md
PR 5372 docs/dev/debt/libSceAgcDriver.md
PR 5609 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 5925 docs/dev/debt/libSceAgcDriver.md
PR 6186 docs/dev/debt/libSceAgcDriver.md
PR 6188 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 6192 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 6197 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 6209 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 6340 core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 6412 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
docs/dev/debt/libSceAgcDriver.md
PR 6808 docs/dev/debt/libSceAgcDriver.md
PR 7002 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 7256 docs/dev/debt/libSceAgcDriver.md
PR 7642 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
docs/dev/debt/libSceAgcDriver.md
PR 7668 docs/dev/debt/libSceAgcDriver.md
PR 7689 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 8246 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 9318 core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 9356 docs/dev/debt/libSceAgcDriver.md
PR 9387 docs/dev/debt/libSceAgcDriver.md
PR 9592 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
docs/dev/debt/libSceAgcDriver.md
PR 9712 core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 9748 docs/dev/debt/libSceAgcDriver.md
PR 9852 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 9895 docs/dev/debt/libSceAgcDriver.md
PR 9897 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 9915 docs/dev/debt/libSceAgcDriver.md
PR 10359 docs/dev/debt/libSceAgcDriver.md
PR 10492 core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 10497 core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 11444 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
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 11551 core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
docs/dev/debt/libSceAgcDriver.md
PR 11587 docs/dev/debt/libSceAgcDriver.md
PR 11825 docs/dev/debt/libSceAgcDriver.md
PR 12575 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 12746 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 12792 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
docs/dev/debt/libSceAgcDriver.md
PR 12904 docs/dev/debt/libSceAgcDriver.md
PR 12944 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 13147 docs/dev/debt/libSceAgcDriver.md
PR 13251 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 13809 core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
docs/dev/debt/libSceAgcDriver.md
PR 14032 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 14262 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 14871 core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 14944 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
docs/dev/debt/libSceAgcDriver.md
PR 14964 docs/dev/debt/libSceAgcDriver.md
PR 15058 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 15136 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
docs/dev/debt/libSceAgcDriver.md
PR 15456 docs/dev/debt/libSceAgcDriver.md
PR 15529 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
docs/dev/debt/libSceAgcDriver.md
PR 15548 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 15570 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 15936 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 16260 docs/dev/debt/libSceAgcDriver.md
PR 16427 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
docs/dev/debt/libSceAgcDriver.md
PR 16831 core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 16879 core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 16935 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 16953 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 18082 docs/dev/debt/libSceAgcDriver.md
PR 18173 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 18177 docs/dev/debt/libSceAgcDriver.md
PR 18956 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 19610 docs/dev/debt/libSceAgcDriver.md
PR 19821 docs/dev/debt/libSceAgcDriver.md
PR 19852 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 20010 docs/dev/debt/libSceAgcDriver.md
PR 20041 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
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 20063 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
PR 20153 docs/dev/debt/libSceAgcDriver.md
PR 20183 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 20248 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 20519 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 20580 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 20728 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
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 21199 core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 21669 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 22062 docs/dev/debt/libSceAgcDriver.md
PR 22190 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 22424 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 22434 docs/dev/debt/libSceAgcDriver.md
PR 22439 core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 22531 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 22647 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
docs/dev/debt/libSceAgcDriver.md
PR 22690 core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 22703 core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 22944 core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 23234 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 23242 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 23545 core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 23674 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
PR 23739 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 24444 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 24445 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 24510 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 24661 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 24735 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 25534 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 26802 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 26913 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 27133 docs/dev/debt/libSceAgcDriver.md
PR 27171 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 27343 core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 27648 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 27670 core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 27688 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 27812 core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 27979 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 28059 core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 28077 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 28090 core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
docs/dev/debt/libSceAgcDriver.md
PR 28118 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
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 28119 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 28169 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 28176 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 28187 core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 28193 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 28198 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 28214 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 28240 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 28268 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 28291 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 28292 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 28293 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 28321 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 28333 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 28411 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
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 28451 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 28468 core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 28470 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 28487 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 28488 core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 28522 core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 28523 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 28559 docs/dev/debt/libSceAgcDriver.md
PR 28560 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 28583 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 28586 core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 28620 core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 28659 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 28660 core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 28668 core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 28673 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 28681 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 28694 core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 28765 core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 28766 core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 28786 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 28787 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 28805 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 28814 core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 28858 core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 28894 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 28914 core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 28933 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 28937 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 28938 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 28945 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
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 28950 core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 28952 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 28953 core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 28957 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 28958 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 28959 core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 28963 core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 28965 core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 28968 core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 28970 core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 28971 core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 28975 core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 28980 core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 28983 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 28984 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 28985 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 28986 core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 28995 core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 28996 core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 29018 core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 29042 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 29051 core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 29066 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 29067 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 29069 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 29070 core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 29072 core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 29073 core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 29074 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
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 29076 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 29082 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 29083 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 29084 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 29085 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 29087 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 29089 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 29095 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
docs/dev/debt/libSceAgcDriver.md
PR 29096 core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 29097 core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 29098 core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 29101 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 29102 core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 29103 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 29104 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 29105 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 29106 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 29107 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 29108 core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 29110 core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 29113 core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 29115 core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 29116 core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 29117 core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 29118 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 29119 core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 29120 core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 29121 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 29123 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 29218 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 29279 core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 29287 core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 29315 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp

@MarcZX10 MarcZX10 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The new lock scope fixes the recursive acquisition I reported, and the regression now establishes an extended mip chain before looking up an array storage view. Thanks for addressing that path.

I found a separate lifetime/bounds issue in lastLayers. Its key is computed after setting baseArray and depthOrLastArray to zero, and the map is never invalidated. If guest memory is later reused at the same address for a shorter array with otherwise matching surface properties, this entry widens the new descriptor back to the largest layer seen in the earlier allocation. cachedStorageTexture then discards the caller's guestBytes for a widened resource and derives the larger byte range from DescribeSurface, so the stale layer count is used for image creation and memory access. The new debt entry describes this as reading past the new array.

Please bound widening to the currently valid guest allocation or track/invalidate the state with the allocation lifetime, and add a regression that reuses an address for a shorter array after a larger array. I cannot approve a path that knowingly expands a later storage view beyond its current allocation.

The PR still has the perf label, and the performance traces are not attached (Tested says they can be shared on request). Please attach the six traces required by the performance report rule, or remove the perf classification and the unverified title-performance claim if those measurements are not part of this PR's evidence. I did not run the Vulkan tests locally; the Windows GPU results in Tested are author-reported, and hosted product jobs were skipped.

@tablefrogpillow

tablefrogpillow commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

Edit — corrected baseline. My first version mistakenly used an intermediate commit of this PR as the "base", so that diff only covered a docs line. The comparison below is against the true merge-base and the current head.

Linux/RADV, first AMD run — the per-layer storage-array change is correct on three AMD architectures with no regression.

Merge-base 2dc85609f vs the PR head cdfc7a986, agc_driver_.*(storage|array_layer|image) with ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation, ctest -V, RADV Mesa 25.2.8, kernel 6.8.

GPU (RADV) base 2dc85609f (89 tests) PR head cdfc7a986 (90 tests)
RX 7900 GRE (NAVI31, 1002:744c, RDNA3) 89/89 pass 90/90 pass
Ryzen 7 7800X3D iGPU (RAPHAEL, 1002:164e, RDNA2) 89/89 pass 90/90 pass
RX Vega 56 (VEGA10, 1002:687f, GCN5) 89/89 pass 90/90 pass

The PR adds agc_driver_storage_array_layers (the one extra test), which passes on all three arches; the 89 pre-existing storage/image tests pass on both sides. The only VUID- on any arm is the pre-existing VUID-VkDeviceCreateInfo-pNext-pNext; its count rises 261 → 264 only because the new test creates a few more devices, with no new VUID type. So keeping the per-layer storage views of a 2D array in one image is correct and regression-free on RADV across GCN5/RDNA2/RDNA3.

AI-assisted: yes.

@orezraey

Copy link
Copy Markdown
Contributor Author

Overlap check against the PRs listed by the bot, done by merging each head with this one (git merge-tree):

I propose those land first; this PR will then be refreshed over them, keeping their behaviour and this PR's per-layer views. I listed them in Depends on (merge order only). #1368, #1395, #2434, #4448, #5058, #5372 and #5609 already conflict with main; their edits to the shared files are small, and I will recheck them once they are refreshed.

@github-actions github-actions Bot added docs agc libSceAgc* and removed perf numbers missing perf pull request without a before and after summary line labels Oct 24, 2026
The widest slice seen for a storage array is kept only while the registered
guest range holding its base keeps the same backing, and a view is widened
only when the wider image ends inside that range. A shorter array placed at
the address of an earlier, longer one no longer builds the longer image.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@orezraey

Copy link
Copy Markdown
Contributor Author

cd720c7 ties lastLayers to the guest allocation: the widest slice is kept only while the registered range holding the base keeps the same backingSerial (a new mapping or a protection change starts again from the view's own slices), and a view is widened only when the wider image ends inside that range, so a later storage view is never expanded past its current allocation. agc_driver_storage_array_layers now re-registers the same address as a 2-layer allocation after the 4-layer rounds and requires the pending image to hold layers 0..1 with layers 2 and 3 untouched; on cdfc7a986f it fails with "the pending image of the 2-layer array holds layers 0..3". With validation, the focused array_layer|image_store|storage|depth_plane set gives 53 of 54 in 3 runs on Windows with 0 VUID- (the remaining failure is agc_driver_depth_plane_partial_store, which fails the same way on main); on Linux it builds and the test is skipped because WSL has no Vulkan driver. The debt entry and Tested are updated; the perf classification and traces are not changed by this commit.

@MarcZX10 MarcZX10 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Reviewed the updated exact head cd720c71a4b4e709b11e6dcd55885ccec0d8fd39. Tying lastLayers to backingSerial and checking the mapped range are useful: the new re-registration case changes the backing serial and correctly resets the remembered layer count. One stale-resource case remains untested and still crosses the logical surface extent:

  • GuestAllocations::Range::backingSerial identifies a registered backing range, not a texture's logical lifetime. The debt entry now explicitly records that a shorter array placed at the same address inside the same mapping still widens to the prior maximum. In that case the remembered lastLayers survives because backingSerial is unchanged.
  • This affects actual guest reads: cachedStorageTexture clears guestBytes when the resource is widened, and StorageTexture::Create calls upload() for the full widened descriptor. So a 2-layer descriptor can upload 4 layers of bytes from the same backing range after a prior 4-layer descriptor, even though only the first two belong to the current texture. The new regression removes and re-adds the allocation, which assigns a new backing serial; it does not cover reuse within the same range.

Please invalidate or constrain the remembered width when a logical surface is reused within an unchanged backing range, and add a regression that preserves the backing serial while changing the same-address surface from four layers to two. If the emulator cannot observe that logical lifetime, please avoid widening in that ambiguous case so the upload stays within the requested descriptor's extent. The separate performance-evidence requirement also remains: the PR is titled perf(...), but the six referenced traces are not attached. CONTRIBUTING requires attaching the captures; please attach them and the trace_digest.py output, or remove the perf title/classification and the storage-traffic performance claim. I did not run the GPU test locally; current PR product jobs are skipped by policy, so the posted hardware results are author-reported.

…g its last slice

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@orezraey

Copy link
Copy Markdown
Contributor Author

In ec41941094, only a view that names the remembered largest slice creates the wider image. A view whose own last slice is lower now reuses a cached image of more slices if there is one, and otherwise creates an image of only slices 0 to its own last. So a creation never uploads slices past the requested descriptor's extent, even when backingSerial is unchanged. agc_driver_storage_array_layers now also repeats the rounds as a 2-layer array on the same allocation, without re-registering it, and expects a pending image of layers 0..1 with layers 2 and 3 untouched. With only ShaderResources.cpp reverted to cd720c71a4, it fails with "the pending image of the 2-layer array holds layers 0..3". With validation, the focused set passes 53 of 54 in 3 runs with 0 VUID-; the failure is the agc_driver_depth_plane_partial_store failure that main also has here. I updated the debt entry and Tested. The traces or the perf classification are still open; that choice is with me.

@orezraey orezraey changed the title perf(agc): keep per-layer storage views of a 2D array in one image fix(agc): keep per-layer storage views of a 2D array in one image Oct 25, 2026
@orezraey

Copy link
Copy Markdown
Contributor Author

I dropped the perf classification instead of attaching traces: the alternated DEATHLOOP captures showed no frame-time difference beyond run-to-run noise, so they are not evidence for this change. The title is now fix(agc), and the frame-time and storage-traffic tables are gone from the body. What stays is the behaviour count (about 1050 storage refresh flushes per overlapping image with APS5_TRACE_FLUSH=1 on the base build, none with the change), labelled as such; the test results at ec41941094 are unchanged.

@github-actions github-actions Bot removed the perf Performance change label Oct 25, 2026

@MarcZX10 MarcZX10 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Reviewed exact head ec4194109429e476dfe29412a9658e6fb6501118. The latest change fixes the remaining same-mapping shorter-array case: a shorter view now reuses a larger cached image only when one already exists, and does not create a widened image from that shorter view. The regression repeats the two-layer case at the same address and backing serial after a four-layer case, asserting layers 2–3 remain untouched; the author reports that reverting the relevant lookup change reproduces the failure. The earlier extended-mip lock ordering and re-registration checks remain in the test sequence. The PR removed its perf classification and time-improvement claim because its captures showed no measurable frame-time difference. I ran tools/check_conventions.py --base upstream/main --head HEAD and git diff upstream/main...HEAD --check; both pass. Product GPU tests are skipped by hosted PR workflow policy, and I could not run them locally because the checkout has no populated third-party submodules. The remaining behavior and coverage limits are documented in the debt entry.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions github-actions Bot removed the needs rebase Conflicts with main, rebase needed label Oct 25, 2026

@ahmadmuj ahmadmuj left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Reviewed head 53e11f112b1d, merged locally onto current main 0119103fa9ed (clean). Linux, lavapipe, GCC Release, targeted build.

What I ran:

  • array_layer|image_store|storage|depth_plane|image_atomic|image_table with ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation: merge 63/63 pass, main 62/62 pass. Same skip on both (agc_storage_clear_hand_over). The only VUID on either side is VUID-VkDeviceCreateInfo-pNext-pNext from my older local layer.
  • agc_driver_storage_array_layers runs on lavapipe (no skip) and passes. Dropped onto main's code it fails with "the pending image of the 4-layer array holds layers 0..3" (base slice is 3 there, so the message reads a bit off, but the red is real).
  • The buildComplete merge resolution: both sites pass storageLayers[index] to Atomic64View, AtomicView and StorageView, storageLayers is pushed in step at all three push sites, and atomicViews is keyed by format now. Looks right to me. agc_driver_image_atomics64 passes, but it uses a Type2D image, so nothing runs a 64-bit atomic through a widened window yet.

CachedStorageSurface can now return an image with more slices than asked for, and AliasCopy throws on that.

AliasCopy (VulkanDevice.cpp:2799) creates the destination image with CachedStorageSurface(from->Descriptor() at destination), then calls CopyFrom. If SameSurfaceShape fails there, it throws "an image copy its check allowed was refused: shape" (:2803). With this PR, CachedStorageSurface goes through StorageArraySurface. So if a storage view at the destination already named a later slice (same backingSerial), the lookup widens, and the step-down loop (ShaderResources.cpp:1286) returns the cached wider image.

Example, a local probe built from your test's helpers (not for this PR): StoreLayer into all 4 layers of the 128x128 R32_UINT array at A, then a 2-layer array image at B, then CachedStorageSurface with B's descriptor moved to A:

  • this PR: returns the 0..3 image, SameSurfaceShape false, CopyRefusal = shape
  • main: returns a 0..1 image, SameSurfaceShape true, CopyRefusal = none

PlanAlias doesn't catch it, because FindLive(destination, bytes) matches on guestBytes and the 0..3 image is bigger. So the plan passes and the throw comes from CopyFrom. I didn't drive a full DMA copy through AliasCopy, so the throw itself is from reading. The layout is the one your debt entry describes (a shorter array at the same address inside the same mapping).

One way out: keep CachedStorageSurface exact (no array widening for it). Another: have AliasCopy treat a shape mismatch after the lookup like copyAliasShape and take the transfer path. The Draw.cpp callers of CachedStorageSurface may also expect the exact shape; I didn't check those.

Limits: lavapipe only, synthetic tests, no DEATHLOOP dump.

@TechLevelZero

Copy link
Copy Markdown
Contributor

✅ AMD GPU test: passed

PR head 72ac10a merged onto main 1c8c0ef · tested 2026-11-04 01:56 UTC · 39 min

GPU AMD Radeon RX 6300 (RADV NAVI24), driver Mesa 25.2.8-0ubuntu0.24.04.4, Vulkan 1.4.318
Host Ubuntu 26.04.1 LTS, kernel 7.0.0-42-generic, container ubuntu:24.04
Logs build and test logs for this run
Build ✅ passed (Release, -DANYPS5_ENABLE_SPIRV_TOOLS=ON)
Tests ✅ 2,713 passed · 9 failed (0 new, 7 also fail on main, 2 unstable on main) · 61 skipped (ANYPS5_REQUIRE_VULKAN=1)
Test setup CPU-only tests without a GPU; GPU tests (and any CPU-only test that failed or skipped without one) once on the GPU with VK_LAYER_KHRONOS_validation and ANYPS5_NO_SHADER_CACHE=1; main ran the same way
Test selection 2,783 of 3,842 tests run: the ones this change can reach, chosen by tools/select_tests.py from main's build graph
Vulkan validation ✅ no new validation IDs vs main (952 tests run on the GPU)
Slow tests (>30 s, GPU tests timed with validation layers) ⚠️ agc_driver_pipeline_journal 121.5 s, ⚠️ agc_driver_image_sample_unnormalized 46.3 s, ⚠️ agc_driver_sample_multisample_target 45.9 s, ⚠️ agc_driver_lazy_resolved_abi 43.2 s, ⚠️ agc_shader_sampler_limits 39.8 s
Unstable on main (2, these also failed in recent main runs on this machine; not counted against this PR)
agc_driver_pipeline_journal: failed in 8 of the last 10 main runs
agc_driver_submit_progress: failed in 8 of the last 10 main runs
Failing on main too (7, not counted against this PR)
agc_driver_image_table
agc_driver_native_depth_bda_clear
agc_driver_native_multisample_depth
agc_submit_progress
agc_submit_progress_no_timeline
guest_mmap_executable
guest_socket_options_multicast
Validated but not compared (1, not in the main baseline's validation pass)
agc_driver_storage_array_layers
Validation IDs already present on main (8 IDs in 530 tests)
VUID-VkDeviceCreateInfo-pNext-pNext (530 tests): agc_driver, agc_driver_address_passes, agc_driver_alias_copy_label, agc_driver_alpha_to_coverage, agc_driver_array_layer_target, agc_driver_bc_block_copy, agc_driver_bda_anchor_reads, agc_driver_bda_span_reads, and 522 more
VUID-vkCmdCopyImage-srcImage-01548 (4 tests): agc_driver_depth_clear_hle, agc_driver_depth_storage_dispatch, agc_driver_depth_surface_from_storage, agc_driver_dispatch_move_depth
VUID-vkCmdCopyImage-srcImage-01551 (4 tests): agc_driver_depth_clear_hle, agc_driver_depth_storage_dispatch, agc_driver_depth_surface_from_storage, agc_driver_dispatch_move_depth
VUID-VkPipelineColorBlendStateCreateInfo-pAttachments-00605 (1 test): agc_driver_srgb8_color_target
VUID-VkSamplerCreateInfo-addressModeU-01079 (1 test): agc_driver_image_gather_volume
VUID-VkSamplerCreateInfo-addressModeU-parameter (1 test): agc_driver_image_gather_volume
VUID-VkSamplerCreateInfo-addressModeV-parameter (1 test): agc_driver_image_gather_volume
VUID-VkSamplerCreateInfo-addressModeW-parameter (1 test): agc_driver_image_gather_volume
Skipped (61)
agc_driver_bda_reads_shadowed_results: skipped, the device reports watched host memory written when it imports or reads it
agc_driver_bda_reads_shadowed_results_per_build: skipped, the device reports watched host memory written when it imports or reads it
agc_driver_copied_writer_label_order: skipped, the device reports a minStorageBufferOffsetAlignment of 4, so the dispatch binds its record at +0x1004 in place and nothing is written back; the test needs an alignment above 4
agc_driver_float16_unused_nan_payloads: skipped, the device has no native f16 conversions with RTE rounding and kept f16 denormals
agc_driver_gcn_display_present: skipped, no display: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
agc_driver_image_table_vouched_lookups: skipped, the device reports 4 of 4 host-imported pages written after a GPU read, so a watched imported table cannot be vouched for
agc_driver_linear_target_direct_write_completion: skipped, the device does not keep host imports write-watched, so no completion stamp over the target is tracked
agc_driver_ngg_vertex_wave_reduction: skipped, s3 describes a 32-lane wave only on 32-lane subgroups, and the device has 64 lanes
agc_driver_scattered_runs: skipped, host imports are unavailable: /dev/udmabuf is not accessible
agc_driver_sparse_dma_buf_import: skipped, host imports are unavailable: /dev/udmabuf is not accessible
agc_driver_unit_shadow: skipped, the device does not import watched host memory for unit shadows
agc_driver_unit_shadow_budget: skipped, the device does not import watched host memory for unit shadows
agc_driver_vertex_elected_atomic_max: skipped, the device runs vertex programs in subgroups, so they keep their cross-lane reductions
agc_host_import_sparse: skipped, host imports are unavailable: /dev/udmabuf is not accessible
agc_idle_publish_wait: skipped, the device reports 4 of 4 host-imported pages written after a GPU read, so a forced watch of the import reads its submissions as CPU stores
agc_import_settle_initial_dcc: skipped, the device has no deferred settle of host imports: imports under 1 MiB wait for one only on Windows
agc_shadowed_key_stores: skipped, the device imports no watched host memory under a unit shadow
agc_small_tiled_shadow_label: skipped, host imports are unavailable: the test block is not imported and watched
agc_storage_clear_hand_over: skipped, the device imports no watched host memory for the clear-key hand-over
agc_storage_pending_key_refresh: skipped, refreshes over a pending key store are not testable here
agc_unit_shadow: skipped, the device does not import watched host memory for unit shadows
agc_unit_shadow_completion_store: skipped, the device reports watched host memory written when it imports or reads it
guest_http_uri_locale: 
guest_net_ctl: skipped, the host has no IPv4 address
guest_video_out_color_space: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_hdr: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_high_frame_rate: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_output_mode: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_resolution_status: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_wqhd_detection: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
video_out_flip_aftergpu: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_backtoback: skipped, no display or Vulkan d
Reproduce
git fetch origin 72ac10a20278e4b99554a42d9c5888ffcc8a0a90 1c8c0efc8c41314402e6966da5bef6ea3d639d10
git checkout 1c8c0efc8c41314402e6966da5bef6ea3d639d10 && git merge --no-ff 72ac10a20278e4b99554a42d9c5888ffcc8a0a90
git submodule update --init --recursive
cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=ON -DANYPS5_ENABLE_SPIRV_TOOLS=ON
cmake --build build && cmake --build build --target libs
VK_DRIVER_FILES=/nonexistent/icd.json ctest --test-dir build -E '^(agc|shader|recompiler|videoout|video_out|guest_video_out|vulkan)|gpu' --timeout 120 --parallel 12 --output-on-failure
ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation \
  ctest --test-dir build -R '^(agc|shader|recompiler|videoout|video_out|guest_video_out|vulkan)|gpu' --timeout 120 --parallel 16 --output-on-failure
# failures are then re-run alone: --timeout 360 --parallel 2; new validation IDs: the test alone, twice, --parallel 1

Automated build and test on a contributor's AMD machine; it does not replace upstream CI. A new comment is posted for each new push. Full logs.

@github-actions github-actions Bot removed the needs rebase Conflicts with main, rebase needed label Nov 4, 2026
@orezraey

orezraey commented Nov 4, 2026

Copy link
Copy Markdown
Contributor Author

@hugodearaujo the overlap bot lists #15710 here. I checked both heads against main with git merge-tree: the real conflict is the descriptor write in ShaderResources::buildComplete (ShaderResources.cpp around L2646), where #15710 adds the ArrayView() choice for sampled entries and this PR adds the layer count to the storage views, plus the added counters and docs/dev/debt/libSceAgcDriver.md entries. Both changes can be kept side by side. I suggest #15710 lands first; this PR will be refreshed after it, keeping both behaviours, and I have added #15710 to Depends on (merge order only).

@orezraey

orezraey commented Nov 4, 2026

Copy link
Copy Markdown
Contributor Author

@zorde23 the overlap bot lists #15741 here. I checked both heads against main with git merge-tree: the only conflict is the two storage descriptor writes in ShaderResources::buildComplete (ShaderResources.cpp L2646 and L2693), where #15741 replaces the inline UINT binding range with RuntimeAbi::UintStorageImageBinding and this PR adds the layer count to the storage views. Both changes can be kept side by side. I suggest #15741 lands first; this PR will be refreshed after it, keeping both behaviours, and I have added #15741 to Depends on (merge order only).

@github-actions github-actions Bot added the needs rebase Conflicts with main, rebase needed label Nov 4, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions github-actions Bot removed the needs rebase Conflicts with main, rebase needed label Nov 4, 2026
@DonRyuzaki

Copy link
Copy Markdown
Contributor

Windows/RX 7800 XT check of the current per-layer storage-array fix (AI-assisted test/report).

I built agc_driver_storage_array_layers_tests from PR head 6d750b2 merged locally onto pinned main a992b80 (local merge a66e49abd48b7e417fe21560329940668b6ba471). The Windows x64 Release build with MinGW GCC 15.2.0 passed. With ANYPS5_GPU=7800 XT, ANYPS5_REQUIRE_VULKAN=1, ANYPS5_NO_SHADER_CACHE=1 and VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation, the focused agc_driver_storage_array_layers CTest passed 3/3 separate runs, with no skips. Each log selected AMD Radeon RX 7800 XT (1002:747e, subgroup 64) and printed 'storage array layers tests passed'.

The validation layer reported VUID-VkDeviceCreateInfo-pNext-pNext on device creation in every run (unknown structure types with this older validation header). No other VUID ID appeared in these focused logs. I therefore do not count this as a validation-clean run.

The fixture checks four 128×128 R32_UINT array layers addressed by one-layer descriptors through three rounds of 32-lane compute stores. After round one it requires one pending image spanning layers 0–3, and later stores must reuse that image; after flush it reads selected written texels and sentinel positions. It repeats as a two-layer array at the same address and backing registration, then after re-registering that address as a shorter allocation; both paths require a 0–1 pending image and untouched sampled positions in layers 2–3. It also creates a two-mip storage chain before another four-layer run and requires exact 0–1 shapes for two-layer copy-destination and color-target lookups after four per-layer stores.

This adds RX 7800 XT/Windows coverage for this exact PR head and pinned main, beyond the earlier reports on other GPUs and older heads. It does not measure frame time, storage traffic, a complete DMA alias copy, or game behavior.

@TechLevelZero

Copy link
Copy Markdown
Contributor

✅ AMD GPU test: passed

PR head 6d750b2 merged onto main b611e63 · tested 2026-11-05 00:52 UTC · 41 min

GPU AMD Radeon RX 6300 (RADV NAVI24), driver Mesa 25.2.8-0ubuntu0.24.04.4, Vulkan 1.4.318
Host Ubuntu 26.04.1 LTS, kernel 7.0.0-42-generic, container ubuntu:24.04
Logs build and test logs for this run
Build ✅ passed (Release, -DANYPS5_ENABLE_SPIRV_TOOLS=ON)
Tests ✅ 2,807 passed · 8 failed (0 new, 7 also fail on main, 1 unstable on main) · 59 skipped (ANYPS5_REQUIRE_VULKAN=1)
Test setup CPU-only tests without a GPU; GPU tests (and any CPU-only test that failed or skipped without one) once on the GPU with VK_LAYER_KHRONOS_validation and ANYPS5_NO_SHADER_CACHE=1; main ran the same way
Test selection 2,874 of 3,946 tests run: the ones this change can reach, chosen by tools/select_tests.py from main's build graph
Vulkan validation ✅ no new validation IDs vs main (989 tests run on the GPU)
Slow tests (>30 s, GPU tests timed with validation layers) ⚠️ agc_driver_pipeline_journal 120.8 s, ⚠️ public_headers 61.0 s, ⚠️ agc_driver_image_sample_unnormalized 50.1 s, ⚠️ conventions_pr_template 38.1 s, ⚠️ check_skips 37.4 s
Unstable on main (1, these also failed in recent main runs on this machine; not counted against this PR)
agc_driver_pipeline_journal: failed in 9 of the last 10 main runs
Failing on main too (7, not counted against this PR)
agc_driver_image_gather_volume
agc_driver_image_table
agc_driver_native_depth_bda_clear
agc_driver_native_multisample_depth
agc_driver_submit_progress
agc_submit_progress
agc_submit_progress_no_timeline
Validated but not compared (3, not in the main baseline's validation pass)
agc_driver_storage_array_layers
public_headers
public_headers_compile_15
Validation IDs already present on main (4 IDs in 558 tests)
VUID-VkDeviceCreateInfo-pNext-pNext (558 tests): agc_driver, agc_driver_address_draw_space_reuse, agc_driver_address_passes, agc_driver_alias_copy_label, agc_driver_alpha_to_coverage, agc_driver_array_layer_target, agc_driver_bc_block_copy, agc_driver_bda_anchor_reads, and 550 more
VUID-vkCmdCopyImage-srcImage-01548 (4 tests): agc_driver_depth_clear_hle, agc_driver_depth_storage_dispatch, agc_driver_depth_surface_from_storage, agc_driver_dispatch_move_depth
VUID-vkCmdCopyImage-srcImage-01551 (4 tests): agc_driver_depth_clear_hle, agc_driver_depth_storage_dispatch, agc_driver_depth_surface_from_storage, agc_driver_dispatch_move_depth
VUID-VkPipelineColorBlendStateCreateInfo-pAttachments-00605 (1 test): agc_driver_srgb8_color_target
Skipped (59)
agc_driver_bda_reads_shadowed_results: skipped, the device reports watched host memory written when it imports or reads it
agc_driver_bda_reads_shadowed_results_per_build: skipped, the device reports watched host memory written when it imports or reads it
agc_driver_copied_writer_label_order: skipped, the device reports a minStorageBufferOffsetAlignment of 4, so the dispatch binds its record at +0x1004 in place and nothing is written back; the test needs an alignment above 4
agc_driver_float16_unused_nan_payloads: skipped, the device has no native f16 conversions with RTE rounding and kept f16 denormals
agc_driver_gcn_display_present: skipped, no display: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
agc_driver_image_table_vouched_lookups: skipped, the device reports 4 of 4 host-imported pages written after a GPU read, so a watched imported table cannot be vouched for
agc_driver_linear_target_direct_write_completion: skipped, the device does not keep host imports write-watched, so no completion stamp over the target is tracked
agc_driver_ngg_vertex_wave_reduction: skipped, s3 describes a 32-lane wave only on 32-lane subgroups, and the device has 64 lanes
agc_driver_scattered_runs: skipped, host imports are unavailable: /dev/udmabuf is not accessible
agc_driver_sparse_dma_buf_import: skipped, host imports are unavailable: /dev/udmabuf is not accessible
agc_driver_unit_shadow: skipped, the device does not import watched host memory for unit shadows
agc_driver_unit_shadow_budget: skipped, the device does not import watched host memory for unit shadows
agc_host_import_sparse: skipped, host imports are unavailable: /dev/udmabuf is not accessible
agc_idle_publish_wait: skipped, the device reports 4 of 4 host-imported pages written after a GPU read, so a forced watch of the import reads its submissions as CPU stores
agc_import_settle_initial_dcc: skipped, the device has no deferred settle of host imports: imports under 1 MiB wait for one only on Windows
agc_shadowed_key_stores: skipped, the device imports no watched host memory under a unit shadow
agc_small_tiled_shadow_label: skipped, host imports are unavailable: the test block is not imported and watched
agc_storage_clear_hand_over: skipped, the device imports no watched host memory for the clear-key hand-over
agc_storage_pending_key_refresh: skipped, refreshes over a pending key store are not testable here
agc_unit_shadow: skipped, the device does not import watched host memory for unit shadows
agc_unit_shadow_completion_store: skipped, the device reports watched host memory written when it imports or reads it
guest_http_uri_locale: 
guest_video_out_color_space: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_hdr: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_high_frame_rate: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_output_mode: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_resolution_status: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_wqhd_detection: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
video_out_flip_aftergpu: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_backtoback: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_controls: skipped, no display or V
Reproduce
git fetch origin 6d750b25ad67728dfabf510c1598796330a73d55 b611e634f7fc024f0c13e342d96de744448ef1d9
git checkout b611e634f7fc024f0c13e342d96de744448ef1d9 && git merge --no-ff 6d750b25ad67728dfabf510c1598796330a73d55
git submodule update --init --recursive
cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=ON -DANYPS5_ENABLE_SPIRV_TOOLS=ON
cmake --build build && cmake --build build --target libs
VK_DRIVER_FILES=/nonexistent/icd.json ctest --test-dir build -E '^(agc|shader|recompiler|videoout|video_out|guest_video_out|vulkan)|gpu' --timeout 120 --parallel 12 --output-on-failure
ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation \
  ctest --test-dir build -R '^(agc|shader|recompiler|videoout|video_out|guest_video_out|vulkan)|gpu' --timeout 120 --parallel 16 --output-on-failure
# failures are then re-run alone: --timeout 360 --parallel 2; new validation IDs: the test alone, twice, --parallel 1

Automated build and test on a contributor's AMD machine; it does not replace upstream CI. A new comment is posted for each new push. Full logs.

@TechLevelZero

Copy link
Copy Markdown
Contributor

✅ NVIDIA GPU test: passed

PR head 6d750b2 merged onto main acac7c8 · tested 2026-11-05 02:59 UTC · 29 min

GPU NVIDIA RTX 2000 Ada Generation, driver 595.99.02, Vulkan 1.4.329
Host Ubuntu 26.04.1 LTS, kernel 7.0.0-38-generic, container ubuntu:24.04
Logs build and test logs for this run
Build ✅ passed (Release, -DANYPS5_ENABLE_SPIRV_TOOLS=ON)
Tests ✅ 2,823 passed · 6 failed (0 new, 3 also fail on main, 3 unstable on main) · 54 skipped (ANYPS5_REQUIRE_VULKAN=1)
Test setup CPU-only tests without a GPU; GPU tests (and any CPU-only test that failed or skipped without one) once on the GPU with VK_LAYER_KHRONOS_validation and ANYPS5_NO_SHADER_CACHE=1; main ran the same way
Test selection 2,883 of 3,960 tests run: the ones this change can reach, chosen by tools/select_tests.py from main's build graph
Vulkan validation ✅ no new validation IDs vs main (993 tests run on the GPU)
Slow tests (>30 s, GPU tests timed with validation layers) ⚠️ agc_driver_pipeline_journal 120.2 s
Unstable on main (3, these also failed in recent main runs on this machine; not counted against this PR)
agc_driver_pipeline_journal: failed in 3 of the last 10 main runs
agc_submit_progress: failed in 3 of the last 10 main runs
agc_submit_progress_no_timeline: failed in 2 of the last 10 main runs
Failing on main too (3, not counted against this PR)
agc_driver_image_table
guest_mmap_executable
guest_socket_options_multicast
Validated but not compared (1, not in the main baseline's validation pass)
agc_driver_storage_array_layers
Validation IDs already present on main (9 IDs in 556 tests)
VUID-VkDeviceCreateInfo-pNext-pNext (556 tests): agc_driver, agc_driver_address_draw_space_reuse, agc_driver_address_passes, agc_driver_alias_copy_label, agc_driver_alpha_to_coverage, agc_driver_array_layer_target, agc_driver_bc_block_copy, agc_driver_bda_anchor_reads, and 548 more
VUID-VkShaderModuleCreateInfo-pCode-08737 (14 tests): agc_driver_dpp16_operands, agc_driver_dpp8_pk_fmac, agc_driver_dx10_clamp, agc_driver_f16_fma_denormal_modes, agc_driver_f16_fma_invalid_nan, agc_driver_float16_fma_rounding, agc_driver_float16_modifiers, agc_driver_float16_native, and 6 more
VUID-VkShaderModuleCreateInfo-pCode-08739 (14 tests): agc_driver_dpp16_operands, agc_driver_dpp8_pk_fmac, agc_driver_dx10_clamp, agc_driver_f16_fma_denormal_modes, agc_driver_f16_fma_invalid_nan, agc_driver_float16_fma_rounding, agc_driver_float16_modifiers, agc_driver_float16_native, and 6 more
VUID-VkShaderModuleCreateInfo-pCode-08741 (14 tests): agc_driver_dpp16_operands, agc_driver_dpp8_pk_fmac, agc_driver_dx10_clamp, agc_driver_f16_fma_denormal_modes, agc_driver_f16_fma_invalid_nan, agc_driver_float16_fma_rounding, agc_driver_float16_modifiers, agc_driver_float16_native, and 6 more
VUID-vkCmdCopyImage-srcImage-01548 (7 tests): agc_driver_depth_clear_hle, agc_driver_depth_plane_buffer_memory, agc_driver_depth_plane_partial_store, agc_driver_depth_plane_sampling, agc_driver_depth_storage_dispatch, agc_driver_depth_surface_from_storage, agc_driver_dispatch_move_depth
VUID-vkCmdCopyImage-srcImage-01551 (7 tests): agc_driver_depth_clear_hle, agc_driver_depth_plane_buffer_memory, agc_driver_depth_plane_partial_store, agc_driver_depth_plane_sampling, agc_driver_depth_storage_dispatch, agc_driver_depth_surface_from_storage, agc_driver_dispatch_move_depth
VUID-VkPipelineColorBlendStateCreateInfo-pAttachments-00605 (2 tests): agc_driver_prepared_exports, agc_driver_srgb8_color_target
VUID-VkPipelineShaderStageCreateInfo-module-parameter (1 test): agc_driver_float16_unused_nan_payloads
VUID-VkPipelineShaderStageCreateInfo-pSpecializationInfo-06849 (1 test): agc_driver_float16_unused_nan_payloads
Skipped (54)
agc_driver_bda_reads_shadowed_results: skipped, the device reports watched host memory written when it imports or reads it
agc_driver_bda_reads_shadowed_results_per_build: skipped, the device reports watched host memory written when it imports or reads it
agc_driver_gcn_display_present: skipped, no display: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
agc_driver_sample_order_grid_reference: skipped, the device does not keep depth drawn at custom sample locations at those locations, even after a transition that names them: the composite of uniform renders holds the guest's depth in 0 of 3005 sloped samples, so no path can be compared with it bit for bit
agc_driver_scattered_runs: skipped, host imports are unavailable: /dev/udmabuf is not accessible
agc_driver_sparse_dma_buf_import: skipped, host imports are unavailable: /dev/udmabuf is not accessible
agc_driver_stencil_ref_export: skipped, the device lacks VK_EXT_shader_stencil_export
agc_host_import_sparse: skipped, host imports are unavailable: /dev/udmabuf is not accessible
agc_import_settle_initial_dcc: skipped, the device has no deferred settle of host imports: imports under 1 MiB wait for one only on Windows
agc_unit_shadow_completion_store: skipped, the device reports watched host memory written when it imports or reads it
guest_http_uri_locale: 
guest_video_out_color_space: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_hdr: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_high_frame_rate: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_host_resolution_disabled: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_host_resolution_four_k: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_host_resolution_height_only: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_host_resolution_limit: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_host_resolution_malformed: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_host_resolution_width_only: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_output_mode: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_resolution_status: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_wqhd_detection: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
video_out_flip_aftergpu: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_backtoback: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_controls: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_cpuflip: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_cpuflip_in_or
Reproduce
git fetch origin 6d750b25ad67728dfabf510c1598796330a73d55 acac7c854182a1674162f5e623aa25a6469985ae
git checkout acac7c854182a1674162f5e623aa25a6469985ae && git merge --no-ff 6d750b25ad67728dfabf510c1598796330a73d55
git submodule update --init --recursive
cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=ON -DANYPS5_ENABLE_SPIRV_TOOLS=ON
cmake --build build && cmake --build build --target libs
VK_DRIVER_FILES=/nonexistent/icd.json ctest --test-dir build -E '^(agc|shader|recompiler|videoout|video_out|guest_video_out|vulkan)|gpu' --timeout 120 --parallel 32 --output-on-failure
ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation \
  ctest --test-dir build -R '^(agc|shader|recompiler|videoout|video_out|guest_video_out|vulkan)|gpu' --timeout 120 --parallel 4 --output-on-failure
# failures are then re-run alone: --timeout 360 --parallel 2; new validation IDs: the test alone, twice, --parallel 1

Automated build and test on a contributor's NVIDIA machine; it does not replace upstream CI. A new comment is posted for each new push. Full logs.

@github-actions github-actions Bot added the needs rebase Conflicts with main, rebase needed label Nov 10, 2026
The main merge kept both sides of the libSceAgcDriver debt conflict; main's measured entry stays.
@github-actions github-actions Bot added needs rebase Conflicts with main, rebase needed and removed needs rebase Conflicts with main, rebase needed labels Nov 13, 2026

@MarcZX10 MarcZX10 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Reviewed — no blocking findings

The storage array widening and per-view layer tracking are consistent with the stated goal; no verified blocking defect was found in the inspected changes.

What I ran

Reviewed head 169535353891ac73274c805a00543458f026ef2a. I inspected the prepared description, commit list, manifest and diff, then read the changed lines and targeted storage cache, binding, image view, refresh and dirty tracking code with repo_read.py. I did not run build or test commands.

Results

Check Result Note
Diff and targeted source review passed Changed paths and core behavior inspected
Build and tests not run Author-reported results are not independently verified

Findings

Blocking

None verified.

Non-blocking

None.

Sources

The reviewed changes are in core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp, core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp, core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp, core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp, core/libs/prx/libSceAgcDriver/tests/execution/StorageArrayLayers.cpp, and docs/dev/debt/libSceAgcDriver.md.

Not verified

Builds, tests, Vulkan validation, and runtime behavior were not independently run. The full text of ShaderResources.cpp and Texture.cpp was excluded from the prepared folder; only targeted ranges and changed hunks were read. No files were omitted from the manifest’s reviewed list.

To get this to a good state

Nothing is required.

@oneandonlydean

Copy link
Copy Markdown
Collaborator

This passed review on 1695353, but it now conflicts with main in ShaderResources.cpp, Texture.cpp. Please merge main into the branch and push; it goes back to the merge queue on the new head.

@DerKarussellbremser

Copy link
Copy Markdown
Contributor

A heads-up, because #28814 changes the same lookup (cachedStorageTexture).

It gives a storage view that starts past slice 0 of a thin array the window ViewedArrayWindow already gives sampled views: an image of the viewed slices only, at their own address. The case behind it is PPSA28183, which views slices 276..299 of a 300-slice array once from the array's base and once from the address of slice 276; on main those are two images over the same memory.

How it meets this PR:

I have not built or run this branch; this is from its description.

AI-assisted (Claude Code).

@THEMANnt THEMANnt left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The backingSerial check resets the layer count for the same key after a remap. A separate concern is the lifetime of lastLayers: the map is process-wide and inserts on every new surface key, with no size bound or eviction. Churn through distinct allocations leaves old keys in the map even after the textures are evicted. Could the entries follow the storage cache lifetime, with a test that cycles through fresh keys and checks that the bookkeeping stays bounded? I verified the source path, not memory growth in a title.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agc libSceAgc* docs needs rebase Conflicts with main, rebase needed

Projects

None yet

Development

Successfully merging this pull request may close these issues.