zink: handle empty attachments
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Fri, 29 May 2020 20:23:49 +0000 (16:23 -0400)
committerMarge Bot <eric+marge@anholt.net>
Tue, 14 Jul 2020 16:40:12 +0000 (16:40 +0000)
commit1ee598cfed3de5d220900efcd93f158da324cb10
treeda0bee042ee109493e0766701dec405d2e612962
parent6493d29f2117d63d7949fc3888c2c5d901eaeb95
zink: handle empty attachments

create an empty buffer and surface to reuse for the fb attachment here

this fixes most of the arb_framebuffer_object tests in piglit

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