AGC: Unity title stops on Intel Iris Xe (Windows): viewport depth outside [0, 1] requires VK_EXT_depth_range_unrestricted #4762
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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=Intelon the same machine it stops after the first frame, 3 of 3 runs, about 1.1 s:The throw is
ValidateViewportincore/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cpp:126. The Intel Windows driver does not exposeVK_EXT_depth_range_unrestricted, anddepthRangeUnrestricted=0in the log above confirms this.On the same build and title, the RTX 4070 reports
depthRangeUnrestricted=1and runs 3 of 3 runs for 120 s at 59.94 FPS.Environment
main1acfa7f78, Release, WinLibs GCC 15.2.0 r7, relinker and libs from the same build.0x8086:0x46a6). Reproduced on drivers 32.0.101.6790 (April 2025) and 32.0.101.7092 (September 2026).apps/PPSA28319.json. ItsMedia/ModulesandMedia/Pluginsmodules were converted fromprx/and placed beside the originals as.guest.prx.Notes
agc_driver_prepared_shaders, where the test drew withPA_CL_CLIP_CNTL.DX_CLIP_SPACE_DEFclear, 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.minDepth/maxDepthvalues the title submits. I can add them if a trace option prints them.Measured and written with Claude Code assistance.
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_unrestrictedeither (maind53960612with #4690, which gets it past an earlier/datastop). Its first draw asks for a viewport depth range of [-1, 1] (minDepth-1,maxDepth1 atValidateViewport, read with gdb), the same range #4650 describes for Minecraft. #4650 remaps such a range into the vertex shader on devices without the extension.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.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 currentmain, 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.