The Pathless (PPSA01825): upside-down picture and garbage-descriptor crashes since #16053 #20835

Closed
opened 2026-11-15 16:38:02 +00:00 by Kannorhart · 0 comments
Kannorhart commented 2026-11-15 16:38:02 +00:00 (Migrated from github.com)
Contributor

Imported from boykopovar/AnyPS5. Originally posted by Kannorhart on 2026-11-15T16:38:02Z.


What happens

Since #16053 the picture is upside down from the first logo, and within 46–85 s of boot the driver aborts on garbage descriptors, for example AGC graphics: guest sampler descriptor uses an unknown reduction filter mode 3.

Title, test or build step

The Pathless, PPSA01825 02.000.000 (EU)

AnyPS5 commit

main 2c2c07a7b3, nothing merged on top.

System

Windows 11 (10.0.26300), WinLibs GCC 15.2.0 UCRT (MinGW), RTX 4070 Ti (NVIDIA 610.47), Ryzen 7 5800X

Host report

AnyPS5 host report (format 1)
commit: 2c2c07a7b30b
[system]
os: Windows 10.0.26300
cpu: AMD Ryzen 7 5800X 8-Core Processor
cpu_threads: 16
memory_mib: 65461
cpu_gate: passed
[sdl]
linked: 2.33.0
compiled: 2.33.0
[gpu]
device: NVIDIA GeForce RTX 4070 Ti
type: discrete
vendor_id: 0x10de
device_id: 0x2782
vulkan_api: 1.4.341
driver: NVIDIA
driver_info: 610.47
driver_version: 610.47.0.0
driver_version_raw: 0x988bc000
subgroup_size: 32
device_local_mib: 11994
candidates: NVIDIA GeForce RTX 4070 Ti
present_modes: fifo, fifo_latest_ready, fifo_relaxed, immediate, mailbox
present_mode_requested: default
[shader_cache]
state: present
size_mib: 23676
[environment]
ANYPS5_HOST_REPORT: 1
ANYPS5_LANGUAGE: 8
APS5_PAD_INPUT_FILE: <path>
APS5_PLAYGO_UNLISTED_CHUNKS: absent
APS5_TRACE_DIR: <path>
APS5_TRACE_SUMMARY_EVERY: 10

(All required Vulkan items are present; the optional list is left out.)

Steps to reproduce

  1. Build main 2c2c07a7b3 for Windows and relink the title: relinker --windows --registry eboot.elf app.exe.
  2. Run app.exe with APS5_PLAYGO_UNLISTED_CHUNKS=absent (needed for this title on any commit) and ANYPS5_LANGUAGE=8.
  3. The Annapurna and Giant Squid logos and the title menu are upside down, and the menu background is bright green.
  4. Press Cross through the menu to Continue a save. The process aborts 46–85 s after boot, with a different message almost every run.

Log

[gpu] driver failure: AGC graphics: guest sampler descriptor uses an unknown reduction filter mode 3
[videoout] presentation failed: AGC graphics: guest sampler descriptor uses an unknown reduction filter mode 3
terminate called after throwing an instance of 'std::runtime_error'
  what():  AGC graphics: guest sampler descriptor uses an unknown reduction filter mode 3
FATAL: abort() (SIGABRT) on thread 4040

The other messages seen, one per run:

[gpu] driver failure: AGC graphics: guest sampler descriptor uses unnormalized coordinates with MC_COORD_TRUNC, which is not implemented
[gpu] driver failure: shader 0x10… stage 5: AGC driver: guest memory is not readable at 0xf000000007ac (range 0xf000000007ac+0x4)
[gpu] driver failure: shader 0x10… stage 5: runtime image descriptor is invalid: image 9 first used at pc 0xc04 (required, read 1, written 0, r128 0), T# 00000113 3f800000 00000110 44f00000 00000112 44870000 00000114 00000000
[gpu] driver failure: shader 0x10… stage 5: runtime image descriptor is invalid: image 5 first used at pc 0x5c0 (required, read 1, written 0, r128 0), T# 0000022a 000000a0 0000022a ff6321d0 00000212 402c0040 00000213 00000090
[gpu] driver failure: shader 0x10a9430000 stage 5: buffer descriptor uses an unsupported type (buffer 3 V# 105cce00 08200000 00000000 90100f2e) first used at pc 0x1b0

What was checked

All runs are on the same machine and save. Each build was run for 130–180 s.

Driver Runs Aborts on a descriptor Picture
main 2c2c07a7b3 (4 of the runs with a debug build that only adds logging on the failure path) 7 7 (at 46–85 s) upside down
main with libSceAgcDriver.prx from 016db0480e (2026-11-11, with #17787 on top) 1 0 upright, in game
main with bade67338c reverted 5 0 upright
main with only PA_CL_VTE_CNTL (0x206) starting at 0x43f again 1 1 upright
main with only CB_TARGET_MASK/CB_SHADER_MASK (0x8e/0x8f) starting at 0 again 2 0 not checked
main with APS5_NO_STATE_SUPPRESSION=1 (#16752 off) 1 1 upside down
  • Bisect. I bisected core/libs/prx/libSceAgcDriver and core/shader between 016db0480e (good) and 2c2c07a7b3 (bad), swapping only libSceAgcDriver.prx. It ended on the merge of #16053 (83d984dff5). The PR commit bade67338c passed one 150 s run and failed the next three, so the abort is not on every run, but it is on most.
  • The two parts of #16053 fail separately.
    • The PA_CL_VTE_CNTL default turns the picture upside down. With 0 the draw gets a viewport covering the target, and the title's own viewport registers, which flip Y, are ignored. This matches the concern raised in review on #16053.
    • The mask defaults cause the aborts. A draw that used to look as if it wrote no colour now runs, and its pixel-stage resources come from memory that holds no descriptors.
  • What the garbage descriptors look like. Two of the T# above are {register, value} pairs rather than descriptors:
    • 0x113 = 1.0, 0x110 = 1920.0, 0x112 = 1080.0, 0x114 = 0 are the viewport registers of a 3840x2160 target.
    • So the stage reads a register list that the title keeps in memory.
  • Where the sampler words come from. A temporary debug build stopped on the first sampler decode failure. The words came from the compiled stage's guestDescriptor (ShaderResources::buildPrepare → addImageBinding → SamplerCache::Get → DecodeSamplerResource).
  • What this suggests. These draws seem to depend on state this title programs through a path the driver does not model yet, rather than on the hardware reset values. That is the question asked in the #16053 review.

I can test a change on this title.

Screenshots (attached): main-2c2c07a7b3-upside-down.png, main-with-vte-0x43f.png, main-with-16053-reverted.png.

AI-assisted: yes

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:6406593963 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/20835). Originally posted by [Kannorhart](https://github.com/Kannorhart) on 2026-11-15T16:38:02Z. --- ### What happens Since #16053 the picture is upside down from the first logo, and within 46–85 s of boot the driver aborts on garbage descriptors, for example `AGC graphics: guest sampler descriptor uses an unknown reduction filter mode 3`. ### Title, test or build step The Pathless, PPSA01825 02.000.000 (EU) ### AnyPS5 commit `main` 2c2c07a7b3, nothing merged on top. ### System Windows 11 (10.0.26300), WinLibs GCC 15.2.0 UCRT (MinGW), RTX 4070 Ti (NVIDIA 610.47), Ryzen 7 5800X ### Host report ```text AnyPS5 host report (format 1) commit: 2c2c07a7b30b [system] os: Windows 10.0.26300 cpu: AMD Ryzen 7 5800X 8-Core Processor cpu_threads: 16 memory_mib: 65461 cpu_gate: passed [sdl] linked: 2.33.0 compiled: 2.33.0 [gpu] device: NVIDIA GeForce RTX 4070 Ti type: discrete vendor_id: 0x10de device_id: 0x2782 vulkan_api: 1.4.341 driver: NVIDIA driver_info: 610.47 driver_version: 610.47.0.0 driver_version_raw: 0x988bc000 subgroup_size: 32 device_local_mib: 11994 candidates: NVIDIA GeForce RTX 4070 Ti present_modes: fifo, fifo_latest_ready, fifo_relaxed, immediate, mailbox present_mode_requested: default [shader_cache] state: present size_mib: 23676 [environment] ANYPS5_HOST_REPORT: 1 ANYPS5_LANGUAGE: 8 APS5_PAD_INPUT_FILE: <path> APS5_PLAYGO_UNLISTED_CHUNKS: absent APS5_TRACE_DIR: <path> APS5_TRACE_SUMMARY_EVERY: 10 ``` (All required Vulkan items are present; the optional list is left out.) ### Steps to reproduce 1. Build `main` 2c2c07a7b3 for Windows and relink the title: `relinker --windows --registry eboot.elf app.exe`. 2. Run `app.exe` with `APS5_PLAYGO_UNLISTED_CHUNKS=absent` (needed for this title on any commit) and `ANYPS5_LANGUAGE=8`. 3. The Annapurna and Giant Squid logos and the title menu are upside down, and the menu background is bright green. 4. Press Cross through the menu to Continue a save. The process aborts 46–85 s after boot, with a different message almost every run. ### Log ```text [gpu] driver failure: AGC graphics: guest sampler descriptor uses an unknown reduction filter mode 3 [videoout] presentation failed: AGC graphics: guest sampler descriptor uses an unknown reduction filter mode 3 terminate called after throwing an instance of 'std::runtime_error' what(): AGC graphics: guest sampler descriptor uses an unknown reduction filter mode 3 FATAL: abort() (SIGABRT) on thread 4040 ``` The other messages seen, one per run: ```text [gpu] driver failure: AGC graphics: guest sampler descriptor uses unnormalized coordinates with MC_COORD_TRUNC, which is not implemented [gpu] driver failure: shader 0x10… stage 5: AGC driver: guest memory is not readable at 0xf000000007ac (range 0xf000000007ac+0x4) [gpu] driver failure: shader 0x10… stage 5: runtime image descriptor is invalid: image 9 first used at pc 0xc04 (required, read 1, written 0, r128 0), T# 00000113 3f800000 00000110 44f00000 00000112 44870000 00000114 00000000 [gpu] driver failure: shader 0x10… stage 5: runtime image descriptor is invalid: image 5 first used at pc 0x5c0 (required, read 1, written 0, r128 0), T# 0000022a 000000a0 0000022a ff6321d0 00000212 402c0040 00000213 00000090 [gpu] driver failure: shader 0x10a9430000 stage 5: buffer descriptor uses an unsupported type (buffer 3 V# 105cce00 08200000 00000000 90100f2e) first used at pc 0x1b0 ``` ### What was checked All runs are on the same machine and save. Each build was run for 130–180 s. | Driver | Runs | Aborts on a descriptor | Picture | |---|---|---|---| | `main` 2c2c07a7b3 (4 of the runs with a debug build that only adds logging on the failure path) | 7 | 7 (at 46–85 s) | upside down | | `main` with `libSceAgcDriver.prx` from 016db0480e (2026-11-11, with #17787 on top) | 1 | 0 | upright, in game | | `main` with bade67338c reverted | 5 | 0 | upright | | `main` with only `PA_CL_VTE_CNTL` (0x206) starting at 0x43f again | 1 | 1 | upright | | `main` with only `CB_TARGET_MASK`/`CB_SHADER_MASK` (0x8e/0x8f) starting at 0 again | 2 | 0 | not checked | | `main` with `APS5_NO_STATE_SUPPRESSION=1` (#16752 off) | 1 | 1 | upside down | - **Bisect.** I bisected `core/libs/prx/libSceAgcDriver` and `core/shader` between 016db0480e (good) and 2c2c07a7b3 (bad), swapping only `libSceAgcDriver.prx`. It ended on the merge of #16053 (83d984dff5). The PR commit bade67338c passed one 150 s run and failed the next three, so the abort is not on every run, but it is on most. - **The two parts of #16053 fail separately.** - The `PA_CL_VTE_CNTL` default turns the picture upside down. With 0 the draw gets a viewport covering the target, and the title's own viewport registers, which flip Y, are ignored. This matches the concern raised in review on #16053. - The mask defaults cause the aborts. A draw that used to look as if it wrote no colour now runs, and its pixel-stage resources come from memory that holds no descriptors. - **What the garbage descriptors look like.** Two of the T# above are `{register, value}` pairs rather than descriptors: - `0x113 = 1.0`, `0x110 = 1920.0`, `0x112 = 1080.0`, `0x114 = 0` are the viewport registers of a 3840x2160 target. - So the stage reads a register list that the title keeps in memory. - **Where the sampler words come from.** A temporary debug build stopped on the first sampler decode failure. The words came from the compiled stage's `guestDescriptor` (`ShaderResources::buildPrepare` → `addImageBinding` → `SamplerCache::Get` → `DecodeSamplerResource`). - **What this suggests.** These draws seem to depend on state this title programs through a path the driver does not model yet, rather than on the hardware reset values. That is the question asked in the #16053 review. I can test a change on this title. Screenshots (attached): `main-2c2c07a7b3-upside-down.png`, `main-with-vte-0x43f.png`, `main-with-16053-reverted.png`. AI-assisted: yes
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#20835
No description provided.