zink: add clear-on-flush mechanic deeper into flush codepath

Graphics / Mesa 3D Graphics Library / Mesa - Mike Blumenkrantz [gmail.com] - 21 April 2021 14:18 UTC

we should probably trigger this any time a flush occurs just to avoid doing too much (unexpected) cmdstream rewriting

both calls must be kept, however, as the one in the base flush hook will change the behavior of flushing if no other work is queued

Fixes: 104603fa763 ("zink: create separate linear tiling image for scanout") Part-of:

04241e826ea zink: add clear-on-flush mechanic deeper into flush codepath
src/gallium/drivers/zink/zink_context.c | 13 +++++++------
1 file changed, 7 insertions(+), 6 deletions(-)

Upstream: cgit.freedesktop.org


  • Share