fix(shader): take the LDS lock with one attempt per loop iteration #2800
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2800"
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 ThatsLeo on 2026-10-10T15:30:20Z.
What
The 64-bit LDS atomic lock let the elected lane spin in an inner loop until its compare-exchange succeeded. With the LDS in a storage buffer (#1776, LDS beyond the device's shared memory limit), that loop never ended on Intel Arc (Meteor Lake, Mesa 26.2.3 ANV,
shaderSharedInt64Atomics0):agc_driver_lds_beyond_device_limitlost the device (VK_ERROR_DEVICE_LOST) in its first run. The same lock in workgroup memory (agc_driver_lds_atomics64) passes there.Dropping the lock removes the hang, so the lock is the cause. A device-scope compare-exchange and release, and an atomic initial store of the lock, did not help. Why ANV does not finish the inner loop is not established.
Tested
Fedora 44, GCC 16.2.1, Release.
agc_driver_lds*tests pass 3 of 3 runs on Intel Arc; the LDS and atomic tests pass on lavapipe.ctestonmain(5edae353) and on this branch, on Intel Arc and lavapipe: Intel Arc 9 failures onmain, 8 here; lavapipe 4 and 4; no new failure. The remaining failures also fail onmain: on Intel Arcagc_driver_mesh,agc_driver_f64_fma_subnormals,agc_driver_vop1_float_unary,agc_driver_vopc_compare,agc_pipeline_cacheand, on Fedora's non-PIE GCC,guest_dynamic_loader,guest_unwind_module_infoandguest_unwind_module_info_failure; on lavapipeagc_driver_f64_fma_subnormalsandguest_dynamic_loader,guest_unwind_module_infoandguest_unwind_module_info_failure.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 github-actions[bot] on 2026-10-10T15:30:29Z.
Thank you for your interest in the project! We are sorry, but we cannot accept more PRs while we work through the existing backlog. This PR has been automatically closed and labeled "intake paused". This is not a judgment of the quality of your changes.
Pull request closed