gallium/tgsi_exec: Use the new SSBO lookup interface for SSBO loads.
authorEric Anholt <eric@anholt.net>
Wed, 30 Dec 2020 20:17:21 +0000 (12:17 -0800)
committerMarge Bot <eric+marge@anholt.net>
Thu, 31 Dec 2020 06:13:18 +0000 (06:13 +0000)
commit08dc1b2dcb0c0982d88f0a6ba015616d2c9958e1
tree67ddffb96a77bad9f07fde4ec400793e4b0692ff
parent89ec36457ead92410b8799f79268dceb5727696b
gallium/tgsi_exec: Use the new SSBO lookup interface for SSBO loads.

We were ignoring the requested size of the load in the overflow handling
and would read past the end of buffers, rather than just returning 0 as
robustness would like us to do.

Fixes valgrind complaint on softpipe in:
EQP-GLES31.functional.shaders.builtin_functions.common.sign.float_mediump_compute

Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8276>
src/gallium/auxiliary/tgsi/tgsi_exec.c
src/gallium/auxiliary/tgsi/tgsi_exec.h
src/gallium/drivers/softpipe/sp_buffer.c