fix(agc): back large pixel LDS with the storage buffer on Intel's Windows driver #21683
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/21683"
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 androidbaklava on 2026-11-16T15:08:15Z.
What
On Intel's Windows driver, a pixel shader that keeps the full 8192-dword LDS in a per-invocation
Functionarray loses the device:agc_driver_pixel_lds_limitfails every run withvkWaitForFences graphics: Vulkan result -4on Intel UHD Graphics (#12522). The storage-buffer pool that NVIDIA proprietary already uses for arrays abovepixelFunctionStorageDwordsneeds no vendor data (it sizes itself frommaxStorageBufferRange), so this enables it forVK_DRIVER_ID_INTEL_PROPRIETARY_WINDOWSas well. WithoutVK_NV_shader_sm_builtinsthe threshold stays at the default 4096 dwords. The shader debt entry now names the Intel measurement.Part of #12522: this fixes the
pixel_lds_limitdevice loss only; the other failures listed there are unchanged.Tested
Windows 11 Home, i7-13620H, Intel UHD Graphics (8086:a7a8), Intel driver 101.7084, WinLibs GCC 15.2.0 r7, Release,
BUILD_TESTING=ON.agc_driver_pixel_lds_limit: fails onmainwith device loss in 3 of 3 runs; passes 3 of 3 with this change, including the overflow case that only runs with the buffer pool (pixel LDS limit overflow passed).^agc_driver_.*(pixel|lds|ps_|fragment)withANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1:main49 of 50 (onlypixel_lds_limitfails), this change 50 of 50.ctest -R "^agc_driver_pixel_lds" -Vonmainand on this change withANYPS5_REQUIRE_VULKAN=1,ANYPS5_NO_SHADER_CACHE=1,VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation,VK_LOADER_DEBUG=layerand the LunarG SDK 1.4.363 layer. Each log showsInsert instance layer "VK_LAYER_KHRONOS_validation"for all four tests, neither containswas not found but was requested by env var VK_INSTANCE_LAYERS, and both have 0VUID-lines.Not tested on Intel Arc or on Linux (the Mesa ANV driver is unchanged).
Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-19T01:08:33Z.
Review: COMMENTED
Reviewed — no blocking findings
Nothing blocks this change; the points below are optional.
What I ran
Reviewed head
c622d4de54123f16940016a92980b3668e4e9a78. I read the prepared description, commits, manifest, diff, and the changedVulkanDevice.cppcontext throughrepo_read.py. No commands or tests were run.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
The description reports Windows 11 Intel UHD results, but I did not run or independently verify them. The
files.jsoninventory was unavailable through the reader. TheVulkanDevice.cppfull text was excluded from the review folder; I inspected the changed function context only.docs/dev/debt/shader.mdfull text was listed as included, but I did not retrieve it from the reader. No other repository context, tests, or runtime behavior was verified.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-21T01:32:52Z.
Review: APPROVED
Reviewed — looks good
The change enables the existing large pixel LDS buffer path for Intel proprietary Windows drivers; no blocking defect is evident in the inspected code.
What I ran
Reviewed head
92d83ca05c1511f1a7f17820e390ddbb658ebf2b. Read the prepared description, commits, manifest and diff, plus the changed debt note and targeted source context viarepo_read.py. No tests were run in this review.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
Did not run tests or independently verify the author-reported Windows results. Reviewed changed files:
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp(changed line and nearby device setup),docs/dev/debt/changes/fix-agc-intel-pixel-lds-buffer.md(full file).files.jsonwas not available in the prepared bundle; the manifest lists these two changed files, and both were read. No changed files were excluded from review.To get this to a good state
Nothing is required.