AGC: Unity title stops on Intel Iris Xe (Windows): viewport depth outside [0, 1] requires VK_EXT_depth_range_unrestricted #4762

Closed
opened 2026-10-12 21:14:13 +00:00 by iDiesIrae-Req · 3 comments
iDiesIrae-Req commented 2026-10-12 21:14:13 +00:00 (Migrated from github.com)
Contributor

Imported from boykopovar/AnyPS5. Originally posted by iDiesIrae-Req on 2026-10-12T21:14:13Z.


What happens

Middle Ages Ping Pong (PPSA28319, Unity, MIT, from the homebrew catalog) renders its main menu at 60 FPS on an NVIDIA GPU. With ANYPS5_GPU=Intel on the same machine it stops after the first frame, 3 of 3 runs, about 1.1 s:

[src/VulkanDevice.cpp:1351 VulkanDevice] Vulkan features tessellationAvailable=1 mesh=0 depthClip=1 depthRangeUnrestricted=0 pipelineLibrary=1
[videoout] presentation failed: AGC graphics: viewport depth outside [0, 1] requires VK_EXT_depth_range_unrestricted
terminate called after throwing an instance of 'std::runtime_error'
  what():  AGC graphics: viewport depth outside [0, 1] requires VK_EXT_depth_range_unrestricted

The throw is ValidateViewport in core/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cpp:126. The Intel Windows driver does not expose VK_EXT_depth_range_unrestricted, and depthRangeUnrestricted=0 in the log above confirms this.

On the same build and title, the RTX 4070 reports depthRangeUnrestricted=1 and runs 3 of 3 runs for 120 s at 59.94 FPS.

Environment

  • AnyPS5: main 1acfa7f78, Release, WinLibs GCC 15.2.0 r7, relinker and libs from the same build.
  • OS: Windows 11 Home 10.0.26300.
  • Intel GPU: Intel Iris Xe Graphics (0x8086:0x46a6). Reproduced on drivers 32.0.101.6790 (April 2025) and 32.0.101.7092 (September 2026).
  • Comparison GPU: NVIDIA GeForce RTX 4070 Laptop GPU, driver 32.0.16.1714.
  • Title: https://github.com/blackbearreloaded/ps5-homebrew-catalog apps/PPSA28319.json. Its Media/Modules and Media/Plugins modules were converted from prx/ and placed beside the originals as .guest.prx.

Notes

  • Relation to #3207: that issue covered the same check in agc_driver_prepared_shaders, where the test drew with PA_CL_CLIP_CNTL.DX_CLIP_SPACE_DEF clear, so the depth range became [-1, 1]. Only the test was changed, and it noted that "a title that really asks for depth outside [0, 1] still gets the error on such a device". This is such a title.
  • Impact: Unity on PS5 seems to submit a viewport depth range outside [0, 1]. Other Unity titles probably stop the same way on GPUs without this extension, which includes Intel on Windows.
  • What I have not checked: the exact minDepth/maxDepth values the title submits. I can add them if a trace option prints them.

Measured and written with Claude Code assistance.

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5820512473 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/4762). Originally posted by [iDiesIrae-Req](https://github.com/iDiesIrae-Req) on 2026-10-12T21:14:13Z. --- ## What happens Middle Ages Ping Pong (PPSA28319, Unity, MIT, from the homebrew catalog) renders its main menu at 60 FPS on an NVIDIA GPU. With `ANYPS5_GPU=Intel` on the same machine it stops after the first frame, 3 of 3 runs, about 1.1 s: ``` [src/VulkanDevice.cpp:1351 VulkanDevice] Vulkan features tessellationAvailable=1 mesh=0 depthClip=1 depthRangeUnrestricted=0 pipelineLibrary=1 [videoout] presentation failed: AGC graphics: viewport depth outside [0, 1] requires VK_EXT_depth_range_unrestricted terminate called after throwing an instance of 'std::runtime_error' what(): AGC graphics: viewport depth outside [0, 1] requires VK_EXT_depth_range_unrestricted ``` The throw is `ValidateViewport` in `core/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cpp:126`. The Intel Windows driver does not expose `VK_EXT_depth_range_unrestricted`, and `depthRangeUnrestricted=0` in the log above confirms this. On the same build and title, the RTX 4070 reports `depthRangeUnrestricted=1` and runs 3 of 3 runs for 120 s at 59.94 FPS. ## Environment - **AnyPS5:** `main` 1acfa7f78, Release, WinLibs GCC 15.2.0 r7, relinker and libs from the same build. - **OS:** Windows 11 Home 10.0.26300. - **Intel GPU:** Intel Iris Xe Graphics (`0x8086:0x46a6`). Reproduced on drivers 32.0.101.6790 (April 2025) and 32.0.101.7092 (September 2026). - **Comparison GPU:** NVIDIA GeForce RTX 4070 Laptop GPU, driver 32.0.16.1714. - **Title:** https://github.com/blackbearreloaded/ps5-homebrew-catalog `apps/PPSA28319.json`. Its `Media/Modules` and `Media/Plugins` modules were converted from `prx/` and placed beside the originals as `.guest.prx`. ## Notes - **Relation to #3207:** that issue covered the same check in `agc_driver_prepared_shaders`, where the test drew with `PA_CL_CLIP_CNTL.DX_CLIP_SPACE_DEF` clear, so the depth range became [-1, 1]. Only the test was changed, and it noted that "a title that really asks for depth outside [0, 1] still gets the error on such a device". This is such a title. - **Impact:** Unity on PS5 seems to submit a viewport depth range outside [0, 1]. Other Unity titles probably stop the same way on GPUs without this extension, which includes Intel on Windows. - **What I have not checked:** the exact `minDepth`/`maxDepth` values the title submits. I can add them if a trace option prints them. Measured and written with Claude Code assistance.
David-cmrg commented 2026-10-12 21:22:26 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by David-cmrg on 2026-10-12T21:22:26Z.


Same stop on Linux: ProsperoEden (PPSA99008, homebrew catalog) on an Intel HD Graphics 520 with Mesa 26.2.4 ANV, which has no VK_EXT_depth_range_unrestricted either (main d53960612 with #4690, which gets it past an earlier /data stop). Its first draw asks for a viewport depth range of [-1, 1] (minDepth -1, maxDepth 1 at ValidateViewport, read with gdb), the same range #4650 describes for Minecraft. #4650 remaps such a range into the vertex shader on devices without the extension.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6132848365 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/4762#issuecomment-6132848365). Originally posted by [David-cmrg](https://github.com/David-cmrg) on 2026-10-12T21:22:26Z. --- Same stop on Linux: ProsperoEden (PPSA99008, homebrew catalog) on an Intel HD Graphics 520 with Mesa 26.2.4 ANV, which has no `VK_EXT_depth_range_unrestricted` either (`main` `d53960612` with #4690, which gets it past an earlier `/data` stop). Its first draw asks for a viewport depth range of [-1, 1] (`minDepth` -1, `maxDepth` 1 at `ValidateViewport`, read with gdb), the same range #4650 describes for Minecraft. #4650 remaps such a range into the vertex shader on devices without the extension.
MarcZX10 commented 2026-10-17 13:40:55 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-17T13:40:55Z.


I checked this against the current code and related PRs. This report confirms the same [-1, 1] viewport range on a second unsupported GPU, and the Linux follow-up confirms the exact submitted values. Open PR #4650 already implements the device fallback and has Intel/Linux catalog validation; it is still being redesigned around runtime scale/offset reads and has not merged. I do not see a separate, non-duplicate fix to propose from this report. Linking the evidence here so it is available when #4650 is completed.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6234570496 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/4762#issuecomment-6234570496). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-17T13:40:55Z. --- I checked this against the current code and related PRs. This report confirms the same `[-1, 1]` viewport range on a second unsupported GPU, and the Linux follow-up confirms the exact submitted values. Open PR #4650 already implements the device fallback and has Intel/Linux catalog validation; it is still being redesigned around runtime scale/offset reads and has not merged. I do not see a separate, non-duplicate fix to propose from this report. Linking the evidence here so it is available when #4650 is completed.
MarcZX10 commented 2026-10-19 19:06:09 +00:00 (Migrated from github.com)
Author
Contributor

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


Update: PR #4650 merged on 2026-10-19. It adds a generic vertex-shader fallback for viewport depth ranges the device cannot express, and its tests cover the [-1, 1] case reported here. The implementation still rejects remapping on mesh and tessellation draw paths. If you get a chance to re-run Middle Ages Ping Pong or ProsperoEden on current main, the result would show whether this covers these reports; if one still stops, noting its draw path would help identify the remaining gap. I’m leaving the issue open pending that check.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6275045899 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/4762#issuecomment-6275045899). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-19T19:06:09Z. --- Update: PR #4650 merged on 2026-10-19. It adds a generic vertex-shader fallback for viewport depth ranges the device cannot express, and its tests cover the `[-1, 1]` case reported here. The implementation still rejects remapping on mesh and tessellation draw paths. If you get a chance to re-run Middle Ages Ping Pong or ProsperoEden on current `main`, the result would show whether this covers these reports; if one still stops, noting its draw path would help identify the remaining gap. I’m leaving the issue open pending that check.
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#4762
No description provided.