fix(agc-driver): rasterize nothing through a zero-scale viewport #2197
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2197"
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 XairRrR on 2026-10-09T11:29:34Z.
What
Uncharted: Legacy of Thieves Collection (PPSA05684) stops on
mainwith:A viewport whose X or Y scale is zero maps every vertex onto one line, so a triangle, strip, fan or rect-list draw through it covers no pixel. Such draws now get a valid 1x1 Vulkan viewport and an empty scissor instead of throwing. Points, lines, and negative or non-finite scales still throw. Test in
tests/Graphics.cpp(DepthClipTests).Tested
Arch Linux, GCC 16.2.1, NVIDIA GeForce RTX 4070 Ti SUPER (driver 615.71.09).
main(d70b8998):tools/check_conventions.pypasses; of the 513 ctest tests all pass exceptagc_driver_dcc_keys_first_write, which fails the same way onmain(an unchanged pending image was uploaded again).agc_driver_storage_cache_budgetpasses run alone; underctest -j8a local 3 GB RSS limit stopped it.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by rmz-24 on 2026-10-09T13:07:54Z.
Windows run: Windows 11 Pro 25H2 (10.0.26200.9457), RTX 5060 Ti (NVIDIA 617.42), MinGW-w64 GCC 15.2.0 (WinLibs r7), Release,
-DANYPS5_ENABLE_SPIRV_TOOLS=ON, full build pluslibs.0fc522d9cherry-picked onto currentmaind70b8998(applies cleanly).agc_driver_dcc_keys_first_writepasses onmainand with this change, so the failure noted in the description (an unchanged pending image was uploaded again) doesn't reproduce on Windows/NVIDIA.agc_driver_storage_cache_budgetalso passes underctest -j8here (14 s).AI-assisted: yes