zink: explicitly flush src clears when u_blittering

this otherwise relies on set_framebuffer_state flushing them,
which may or may not be accurate/desired

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21739>
This commit is contained in:
Mike Blumenkrantz 2023-03-01 17:13:34 -05:00 committed by Marge Bot
parent 1aa62912b7
commit 8e3ee9aad6

View file

@ -355,6 +355,7 @@ zink_blit(struct pipe_context *pctx,
* flush all pending clears anyway
*/
apply_dst_clears(ctx, info, true);
zink_fb_clears_apply_region(ctx, info->src.resource, zink_rect_from_box(&info->src.box));
/* this will draw a full-resource quad, so ignore existing data */
if (util_blit_covers_whole_resource(info))