zink: handle null attachment for ARB_texture_buffer_object samplers
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Thu, 2 Jul 2020 18:56:43 +0000 (14:56 -0400)
committerMarge Bot <eric+marge@anholt.net>
Thu, 15 Oct 2020 12:02:55 +0000 (12:02 +0000)
commitc364124440c7e08e4e092beb9a1d064838167994
tree3d7bf8bb26af5de1a491626b8dfafa5db72cde61
parent69dc0f2f7490920fc16dfa8b6a33b6c2acc8b98b
zink: handle null attachment for ARB_texture_buffer_object samplers

according to spec:

If no buffer object is bound to the buffer texture,
the results of the texel access are undefined.

so this is technically allowed

Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7132>
src/gallium/drivers/zink/zink_draw.c