zink: add a pipe_context::clear_texture hook
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Thu, 13 Aug 2020 21:23:51 +0000 (17:23 -0400)
committerMarge Bot <eric+marge@anholt.net>
Fri, 15 Jan 2021 16:38:04 +0000 (16:38 +0000)
commit622f8f6ed57bb32cb6b1014e4f8c7be2a58a5bd3
tree5d58ab62bc3393fd8f18835b7ee525f2c71acae9
parente100746a73f0af337121d0b0386d7f3128d07452
zink: add a pipe_context::clear_texture hook

there's a lot going on here, but the gist of it is:
* if we're not in a renderpass, use the no_rp clear helpers
* if we're in a renderpass, use our lord and savior u_blitter with a temporary
  surface that we create just for the blit

Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8512>
src/gallium/drivers/zink/zink_clear.c
src/gallium/drivers/zink/zink_context.c
src/gallium/drivers/zink/zink_context.h