c97f79ac0c
For reads, we use the LD_PKA (AKA LD_BUFFER) so we can directly pass the buffer index. For writes, we still convert the SSBO index into a global address before doing a global load/store/atomic operation, but we do that with an LEA_PKA instruction that takes care of bounds checking. Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com> Reviewed-by: Eric R. Smith <eric.smith@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31164>