Shader: sampled image_load at a base mip past the physical chain is unsupported (SAROS PPSA07631) #27616

Open
opened 2026-11-26 19:23:27 +00:00 by Amoenus · 0 comments
Amoenus commented 2026-11-26 19:23:27 +00:00 (Migrated from github.com)
Contributor

Imported from boykopovar/AnyPS5. Originally posted by Amoenus on 2026-11-26T19:23:27Z.


What happens

After #7085 removes the storage clear stop, SAROS (PPSA07631) reaches the explicit sampled-image refusal for a plain image_load, no image table, base mip 6 beyond a 32x32 image's physical chain. This is a remaining capability gap, not a request to remove the guard or silently reuse mip 5.

Title, test or build step

SAROS, PPSA07631 01.005.002. Real-title observations are @aKazm1's, from the controlled retest and diagnostic; I have not independently run this title.

AnyPS5 commit

Reporter's composition: main 63b2e14408 + #27216 + #7085 head c4cb53c03425807f26726e07b76f87d2d0a7b80c, with a fresh shader-cache directory for that head. #27216 has since merged. This is not a claim about a fresh standalone-current-main game run.

The supplied full log/host report identifies the reported merge as 96d4eb794a9c, with the diagnostic applied locally. It also discloses APS5_EXP_LOOSE_WAIT_PATCH=1 in a local libSceAgc build: the reporter says this returns 0x8a6c000c from wait/end-of-pipe patch functions instead of throwing. That patch is outside main/#7085, was not independently reviewed or run here, and the reporter did not retest without it. Treat this as an experimental composed-stack observation, not standalone #7085/title qualification.

System

Reporter: Windows 11 Pro 26200, NVIDIA RTX 4080 (10de:2704), driver 621.40, WinLibs GCC Release. The full host report is supplied in the linked comment (Ryzen 9 7900X, Vulkan 1.4.357); the local libSceAgc modification above is part of that run.

Steps to reproduce

The reporter loads the same save beside the first blue projectiles; no input is needed. With c4cb53c034, the previous storage clear does not cover its physical chain stop is gone, and the run stops at this shader refusal after 71 seconds. This is an attributed external result, not a local reproduction or performance comparison.

Log

compute shader 0x1540cbda00: image_load_mip, image_get_lod, an image_load at a base level past the chain or an image_get_resinfo through an image table of a T# whose levels reach 0 past its extent's full mip chain is not implemented
[uses: load; table none; past base 1; dimension 5; T# 30a72300 c4b00000 0007c007 d0966fac 0000003f 00700070 00000000 00000000]

The bracketed line is the reporter's local diagnostic; its patch is in the linked comment. Shader addresses vary between runs.

Proposed implementation - updated 4 December

#28176 proposes the direct, single-level 2D/2D-array plain image_load case using the selected extra mip backing. It depends on #7085 and retains refusals for image tables, explicit-mip loads and unsupported layouts. Current child e21b758b56 includes parent 6e70d4e7eb. Its author reports synthetic descriptor and Windows GPU validation. @JJenkx's independent refreshed Linux retest reports 26/26 passing, zero skips or VUID-/SYNC-HAZARD lines, with the validation layer inserted in every Vulkan instance. These component results are not standalone SAROS gameplay confirmation. We have not locally validated that dependent composition. Keep this issue open pending the implementation and applicable validation; no duplicate implementation is planned here.

What was checked

  • The reported eight words decode to guest address 0x30a7230000, guest format 75 (Format32_32_32_32UInt), 32x32, 2D array, 64 layers, MAX_MIP 7 (eight guest levels), BASE_LEVEL=LAST_LEVEL=6 (a one-level view). The extent has six physical levels, 0..5.
  • In the published materializer, a sampled ImageLevelUseLoad with past.base is explicitly refused. past.levels == 0 here does not mean the base is represented: both the guest view and clamped host view have one level; past.base == true identifies the missing base.
  • #6280 caps physical allocations. #7085 adds extra storage/rendering backing and deliberately retains this sampled-load refusal; its clear correction is confirmed by the retest. A sampled representation with the correct extra-level contents is now proposed separately in #28176. No new implementation or console-semantics claim is attached to this report.
  • This is distinct from #7066's render-target stop, #862's sampled-view usage restriction, #9318's allocation-bounded array views, #3219's compressed FMASK reads and merged #8962's truncated 128-bit/resident descriptor handling. These are complete eight-word descriptors with nonzero words 4/5. #18463's face-corruption report does not identify this plain-load refusal.
  • At issue creation, open/closed issue and PR searches for the exception, unrepresented/base-level/chain terms and this title/load combination found no matching report. The subsequently opened #28176 now tracks a proposed implementation. The host fixture at 7e56a07a9425 now checks the exact descriptor, decoded fields, past.levels=0 / past.base=true, the plain-load refusal and accepted size-only query. Ordinary and profiling Graphics host suites pass on main21e1+#7085 at this pin; exact evidence. This validates the current admission/refusal boundary, not a fix, GPU execution of that sampled load, or a fresh game run. The supplied 249,032-byte text log was inspected without execution (SHA-256 3a06acc213d2f0288356e6c532aba36625c73e17b3ef0d40896d2afd0907ac89): it contains the exact load/no-table/past-base descriptor diagnostic and no previous storage-clear refusal. This corroborates the reported stop; it does not remove the composed-stack qualification above.

AI-assisted: yes (Codex); original title evidence and diagnostic credited to @aKazm1. No game assets or shaders attached.

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:6633655774 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/27616). Originally posted by [Amoenus](https://github.com/Amoenus) on 2026-11-26T19:23:27Z. --- ### What happens After #7085 removes the storage clear stop, SAROS (PPSA07631) reaches the explicit sampled-image refusal for a **plain `image_load`, no image table, base mip 6 beyond a 32x32 image's physical chain**. This is a remaining capability gap, not a request to remove the guard or silently reuse mip 5. ### Title, test or build step SAROS, PPSA07631 `01.005.002`. Real-title observations are **@aKazm1's**, from [the controlled retest and diagnostic](https://github.com/boykopovar/AnyPS5/pull/7085#issuecomment-7196706378); I have not independently run this title. ### AnyPS5 commit Reporter's composition: main `63b2e14408` + #27216 + #7085 head `c4cb53c03425807f26726e07b76f87d2d0a7b80c`, with a fresh shader-cache directory for that head. #27216 has since merged. This is not a claim about a fresh standalone-current-main game run. The [supplied full log/host report](https://github.com/boykopovar/AnyPS5/issues/27616#issuecomment-7201848307) identifies the reported merge as `96d4eb794a9c`, with the diagnostic applied locally. It also discloses `APS5_EXP_LOOSE_WAIT_PATCH=1` in a local **libSceAgc** build: the reporter says this returns `0x8a6c000c` from wait/end-of-pipe patch functions instead of throwing. That patch is outside main/#7085, was not independently reviewed or run here, and the reporter did not retest without it. Treat this as an experimental composed-stack observation, not standalone #7085/title qualification. ### System Reporter: Windows 11 Pro 26200, NVIDIA RTX 4080 (10de:2704), driver 621.40, WinLibs GCC Release. The full host report is supplied in the linked comment (Ryzen 9 7900X, Vulkan 1.4.357); the local libSceAgc modification above is part of that run. ### Steps to reproduce The reporter loads the same save beside the first blue projectiles; no input is needed. With c4cb53c03425, the previous `storage clear does not cover its physical chain` stop is gone, and the run stops at this shader refusal after 71 seconds. This is an attributed external result, not a local reproduction or performance comparison. ### Log ```text compute shader 0x1540cbda00: image_load_mip, image_get_lod, an image_load at a base level past the chain or an image_get_resinfo through an image table of a T# whose levels reach 0 past its extent's full mip chain is not implemented [uses: load; table none; past base 1; dimension 5; T# 30a72300 c4b00000 0007c007 d0966fac 0000003f 00700070 00000000 00000000] ``` The bracketed line is the reporter's local diagnostic; its patch is in the linked comment. Shader addresses vary between runs. ### Proposed implementation - updated 4 December #28176 proposes the direct, single-level 2D/2D-array plain `image_load` case using the selected extra mip backing. It depends on #7085 and retains refusals for image tables, explicit-mip loads and unsupported layouts. Current child **e21b758b568c8d115cfb59d8c8a8fe75363cc9e9** includes parent **6e70d4e7ebb80cc9e551d1c7b726caea77a274d9**. Its author reports synthetic descriptor and Windows GPU validation. @JJenkx's [independent refreshed Linux retest](https://github.com/boykopovar/AnyPS5/pull/28176#issuecomment-7399861821) reports 26/26 passing, zero skips or VUID-/SYNC-HAZARD lines, with the validation layer inserted in every Vulkan instance. These component results are not standalone SAROS gameplay confirmation. We have not locally validated that dependent composition. Keep this issue open pending the implementation and applicable validation; no duplicate implementation is planned here. ### What was checked - The reported eight words decode to guest address `0x30a7230000`, guest format 75 (`Format32_32_32_32UInt`), 32x32, 2D array, 64 layers, MAX_MIP 7 (eight guest levels), BASE_LEVEL=LAST_LEVEL=6 (a one-level view). The extent has six physical levels, 0..5. - In the [published materializer](https://github.com/Amoenus/AnyPS5/blob/c4cb53c03425807f26726e07b76f87d2d0a7b80c/core/shader/recompiler/Optimization/src/ResourceMaterializer.cpp), a sampled `ImageLevelUseLoad` with `past.base` is explicitly refused. `past.levels == 0` here does **not** mean the base is represented: both the guest view and clamped host view have one level; `past.base == true` identifies the missing base. - #6280 caps physical allocations. #7085 adds extra **storage/rendering** backing and deliberately retains this sampled-load refusal; its clear correction is confirmed by the retest. A sampled representation with the correct extra-level contents is now proposed separately in #28176. No new implementation or console-semantics claim is attached to this report. - This is distinct from #7066's render-target stop, #862's sampled-view usage restriction, #9318's allocation-bounded array views, #3219's compressed FMASK reads and merged #8962's truncated 128-bit/resident descriptor handling. These are complete eight-word descriptors with nonzero words 4/5. #18463's face-corruption report does not identify this plain-load refusal. - At issue creation, open/closed issue and PR searches for the exception, unrepresented/base-level/chain terms and this title/load combination found no matching report. The subsequently opened #28176 now tracks a proposed implementation. The host fixture at [7e56a07a9425](https://github.com/Amoenus/AnyPS5/blob/7e56a07a9425a334d241e6a472b5d3098258349d/core/libs/prx/libSceAgcDriver/tests/TextureMipChain.cpp) now checks the exact descriptor, decoded fields, `past.levels=0` / `past.base=true`, the plain-load refusal and accepted size-only query. Ordinary and profiling Graphics host suites pass on main21e1+#7085 at this pin; [exact evidence](https://gist.github.com/Amoenus/0e70fef3757baec3a2e0f3390cbde230). This validates the **current admission/refusal boundary**, not a fix, GPU execution of that sampled load, or a fresh game run. The supplied 249,032-byte text log was inspected without execution (SHA-256 `3a06acc213d2f0288356e6c532aba36625c73e17b3ef0d40896d2afd0907ac89`): it contains the exact load/no-table/past-base descriptor diagnostic and no previous storage-clear refusal. This corroborates the reported stop; it does not remove the composed-stack qualification above. AI-assisted: yes (Codex); original title evidence and diagnostic credited to @aKazm1. No game assets or shaders attached.
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5#27616
No description provided.