gallium/tgsi_exec: Replace the SSBO RESQ-specific interface with lookup.
authorEric Anholt <eric@anholt.net>
Wed, 30 Dec 2020 20:44:42 +0000 (12:44 -0800)
committerMarge Bot <eric+marge@anholt.net>
Thu, 31 Dec 2020 06:13:18 +0000 (06:13 +0000)
commit851e3af07c6e7cb03a75db54428e23853ce9943d
tree067061c9987b4ce6568001994849be94f92fe870
parent44c4979227c83b8241c8b30c9e7bb96bf9232c89
gallium/tgsi_exec: Replace the SSBO RESQ-specific interface with lookup.

We've got the new lookup with size+ptr, just use that one for querying
buffer size.

This means we now return 0 instead of undefined for unbound buffers, but
it also means we return 0 for a buffer view with a size larger than that
of the underlying buffer.

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