zink: handle null xfb buffers
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Fri, 14 Aug 2020 21:38:44 +0000 (17:38 -0400)
committerMarge Bot <eric+marge@anholt.net>
Wed, 10 Feb 2021 14:21:01 +0000 (14:21 +0000)
commitd81087a700c1115fa93c87e4d7299dd31cbba9c6
treee067a27828ec0fdf6169b696160551bc2209f7da
parent79dd0562f461b429aca81ea35ead9c6315659b85
zink: handle null xfb buffers

ARB_enhanced_layouts allows specifying explicit locations for xfb buffers,
which means we get arrays of buffers with gaps in the middle sometimes and
have to throw in a null handle

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