Repository navigation
Conversation
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>
|
This pull request is labeled |
MarcZX10
left a comment
There was a problem hiding this comment.
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>
|
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.
|
MarcZX10
left a comment
There was a problem hiding this comment.
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.
|
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
The PR adds AI-assisted: yes. |
|
Overlap check against the PRs listed by the bot, done by merging each head with this one (
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 |
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>
|
cd720c7 ties |
MarcZX10
left a comment
There was a problem hiding this comment.
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::backingSerialidentifies 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 rememberedlastLayerssurvives becausebackingSerialis unchanged.- This affects actual guest reads:
cachedStorageTextureclearsguestByteswhen the resource is widened, andStorageTexture::Createcallsupload()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>
|
In |
|
I dropped the |
MarcZX10
left a comment
There was a problem hiding this comment.
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>
ahmadmuj
left a comment
There was a problem hiding this comment.
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_tablewithANYPS5_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 isVUID-VkDeviceCreateInfo-pNext-pNextfrom my older local layer.agc_driver_storage_array_layersruns 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
buildCompletemerge resolution: both sites passstorageLayers[index]toAtomic64View,AtomicViewandStorageView,storageLayersis pushed in step at all three push sites, andatomicViewsis keyed by format now. Looks right to me.agc_driver_image_atomics64passes, 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,
SameSurfaceShapefalse,CopyRefusal=shape - main: returns a 0..1 image,
SameSurfaceShapetrue,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.
✅ AMD GPU test: passedPR head
Unstable on main (2, these also failed in recent main runs on this machine; not counted against this PR)Failing on main too (7, not counted against this PR)Validated but not compared (1, not in the main baseline's validation pass)Validation IDs already present on main (8 IDs in 530 tests)Skipped (61)ReproduceAutomated 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. |
|
@hugodearaujo the overlap bot lists #15710 here. I checked both heads against |
|
@zorde23 the overlap bot lists #15741 here. I checked both heads against |
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
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. |
✅ AMD GPU test: passedPR head
Unstable on main (1, these also failed in recent main runs on this machine; not counted against this PR)Failing on main too (7, not counted against this PR)Validated but not compared (3, not in the main baseline's validation pass)Validation IDs already present on main (4 IDs in 558 tests)Skipped (59)ReproduceAutomated 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. |
✅ NVIDIA GPU test: passedPR head
Unstable on main (3, these also failed in recent main runs on this machine; not counted against this PR)Failing on main too (3, not counted against this PR)Validated but not compared (1, not in the main baseline's validation pass)Validation IDs already present on main (9 IDs in 556 tests)Skipped (54)ReproduceAutomated 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. |
The main merge kept both sides of the libSceAgcDriver debt conflict; main's measured entry stays.
MarcZX10
left a comment
There was a problem hiding this comment.
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.
|
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. |
|
A heads-up, because #28814 changes the same lookup ( It gives a storage view that starts past slice 0 of a thin array the window How it meets this PR:
I have not built or run this branch; this is from its description. AI-assisted (Claude Code). |
THEMANnt
left a comment
There was a problem hiding this comment.
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.
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 refreshwrite-backs). DEATHLOOP (PPSA01670) does this every frame on a 960x540 4-layer array.StorageArraySurface(inStorageSurface): 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 wayStorageSurfacealready widens mip chains. It falls back to the view itself when the widened geometry would move the viewed slices.RefreshLayers). The binding gets a view of those slices:StorageView,AtomicView,Atomic64View,ViewandFirstLayerViewtake 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-layerimage_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 (samebackingSerial), with the same expectations. Last, it extends a storage mip chain (which switchesStorageSurfaceto its locked path) and repeats the rounds on another array. Onmainit fails with the pending image of the 4-layer array not holding every layer; oncdfc7a986fit fails with "the pending image of the 2-layer array holds layers 0..3", and oncd720c71a4it fails the same way in the unchanged-allocation case.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.CachedStorageSurface,CachedStorageLayers) are never widened:AliasCopybuilds its destination withCachedStorageSurfaceand 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_layersnow also stores into all four layers and then asks both for layers 0..1 at the same address; withShaderResources.cppat53e11f112bit fails with "a copy destination of layers 0..1 got layers 0..3".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(mainb611e634f7merged; the conflict was fix(agc): bind UINT views for float16 stores outside compute shaders #15741's storage descriptor writes inShaderResources.cpp, which now pick UINT storage views withShaderRecompiler::RuntimeAbi::UintStorageImageBinding(binding.layout.binding)instead of the binding 7 to 13 range test. Both writes keep that call and pass this PR'sstorageLayers[index]toAtomic64View,AtomicViewandStorageView). 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, includingagc_driver_storage_array_layers, 0VUID-, no missing-layer message. Linux (WSL Ubuntu, GCC, tree reconfigured at this head):libsand the tests build; the samectestset, 3 runs: 94 of 94 pass each time, 92 of them skipped (exit 77, no Vulkan driver in WSL).check_conventionspasses.Head
72ac10a202(main1c8c0efc8cmerged; the conflict was incachedStorageTexture, wheremain(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 toStorageTexture::PrepareCreationinstead of flushing it. The merge keeps this PR's layer-narrowing lookup and widening eviction, detaches asmaindoes, 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, includingagc_driver_storage_array_layersandagc_storage_clear_hand_over, 0VUID-, no missing-layer message. Linux (WSL Ubuntu, GCC):libsandagc_driver_storage_array_layers_testsbuild; the test is skipped (exit 77), no Vulkan driver in WSL.check_conventionspasses.Head
7d2be0318b:mainwas 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.hppkeepsappendStoredLayersfrommainnext to this PR'screateView(..., 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) withANYPS5_REQUIRE_VULKAN=1,ANYPS5_NO_SHADER_CACHE=1andVK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation: noVUID-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_conventionspasses.Head
8be6c1abe8(mainbb04a4f1eamerged; no textual conflict, butmain's newRepeatStorageSurfacecalledStorageSurface(context, viewed), which this PR gives awidenArrayparameter, so the merge did not build, as the NVIDIA GPU test reported. It now passesfalse, asCachedStorageSurface, 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 18VUID-VkPipelineColorBlendStateCreateInfo-pAttachments-00605, all fromagc_driver_prepared_exportsandagc_driver_srgb8_color_target, andmainbb04a4f1ealogs 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), includingagc_driver_storage_array_layers.check_conventionspasses.Head
924af40153(main81267b2204merged; the conflict was #8998's UINT storage views for bindings 7 to 13 against this PR's layer window:StorageTexture::StorageViewnow takes both,(mip, firstLayer, uintStorage, layers), keeps #8998's format choice, and the two storage descriptor writes inShaderResources.cpppass #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_layerspasses, 0VUID-, no missing-layer message. Linux (WSL Ubuntu, GCC): builds;agc_driver_storage_array_layersis skipped (exit 77) in 3 runs, no Vulkan driver in WSL.check_conventionspasses.Head
e1ee11a812(main9c6d153decmerged 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_layerspasses, 0VUID-, no missing-layer message; the failure isagc_driver_depth_plane_partial_store(#10664), which fails onmaintoo. Linux (WSL): these tests need a Vulkan device and WSL has none, so they skip (exit 77).Head
09450f2499(90ac083960plus a test-only change that prints the base slice in the failure messages;agc_driver_storage_array_layersrerun 3 times at09450f2499on Windows with validation: passes, 0VUID-; on Linux: skipped, exit 77). The set below ran at90ac083960, on53e11f112b, 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, 0VUID-, no missing-layer message; the failure is againagc_driver_depth_plane_partial_store, as onmain. Linux (WSL Ubuntu, GCC): builds;agc_driver_storage_array_layers,agc_driver_alias_copy_labelandagc_driver_dcc_keys_first_writeare skipped (exit 77) in 3 runs because WSL has no Vulkan driver.check_conventionspasses.Head
53e11f112b(main16ff208dc3merged after #10440 landed; inShaderResources.cppthe storage descriptor now picks #10440'sAtomic64Viewfor 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, 0VUID-, no missing-layer message; the failure isagc_driver_depth_plane_partial_store, which fails the same way onmain16ff208dc3(1 of 53 failed there, 0VUID-, no missing-layer message). Linux (WSL Ubuntu, GCC): builds;agc_driver_storage_array_layersis skipped (exit 77) in 3 runs, no Vulkan driver in WSL.check_conventionspasses.Head
ec41941094onmain2dc85609fc, 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, 0VUID-, no missing-layer message; the failure is againagc_driver_depth_plane_partial_store, as onmain.agc_driver_storage_array_layerswith onlyShaderResources.cppreverted tocd720c71a4fails with "the pending image of the 2-layer array holds layers 0..3". Linux (WSL Ubuntu, GCC): builds;agc_driver_storage_array_layersis skipped (exit 77) in 3 runs because WSL has no Vulkan driver.check_conventionspasses. The DEATHLOOP flush count below is fromcdfc7a986fand 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
cd720c71a4onmain2dc85609fc.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 atcd720c71a4: 53 of 54 pass each time, 0VUID-, no missing-layer message. The failure isagc_driver_depth_plane_partial_store("repeated lookups of the first layer of an unchanged array proved no refresh"), which fails the same way onmain2fade7ef4eon this machine. On thatmainthe same set also failsagc_driver_storage_array_layers, and logs 0VUID-.ctestatcdfc7a986f(before the allocation bound): 2182 tests; failuresagc_driver_depth_plane_partial_storeandagc_host_import_cut_lifetime(both fail the same way onmain2fade7ef4ehere) andselect_tests(a temp-directory symlink error intools/tests/test_select_tests.py).tools/check_conventions.py --base origin/main: passes.cd720c71a4: builds;agc_driver_storage_array_layersis 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).
maincannot reach this scene yet, so both builds aremain+ #10414 + #10507 + a port of #6192, one without and one with this PR: basefa00d49312, changed26dce2835(this PR's headcdfc7a986fcherry-picked). Same scripted input (PSN dialog and brightness calibration screens), run withAPS5_TRACE_FLUSH=1: the base build logs about 1050storage refreshflushes 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
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)