zink: add a dynamic render version of clear_texture hook
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Thu, 2 Mar 2023 17:12:32 +0000 (12:12 -0500)
committerMarge Bot <emma+marge@anholt.net>
Mon, 20 Mar 2023 02:26:20 +0000 (02:26 +0000)
commit7411264ca6758293349ba8730165eade8b8235b0
tree80359dd19aac491842d70066ae5f93b89188377c
parente1621d3e6df51fcc92a684f2033a109fb63ab168
zink: add a dynamic render version of clear_texture hook

this avoids the (sizable) overhead of going through the previous path
with set_frame_buffer state et al, instead just firing off a quick
begin+end rendering with a clear

it's also easily reorderable

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21906>
src/gallium/drivers/zink/zink_clear.c
src/gallium/drivers/zink/zink_clear.h
src/gallium/drivers/zink/zink_context.c