From fddb4eda2f9ee3414746a52a6a2cd0be2a852b67 Mon Sep 17 00:00:00 2001 From: Pierre-Eric Pelloux-Prayer Date: Wed, 10 Aug 2022 12:31:35 +0200 Subject: [PATCH] radeonsi: prevent u_blitter recursion in si_update_ps_colorbuf0_slot MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When u_blitter calls util_blitter_restore_fragment_states we may end up in si_update_ps_colorbuf0_slot. This commit makes sure we don't call u_blitter from there. Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/6921 Cc: mesa-stable Reviewed-by: Marek Olšák Part-of: --- src/gallium/drivers/radeonsi/si_descriptors.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/radeonsi/si_descriptors.c b/src/gallium/drivers/radeonsi/si_descriptors.c index 55729a57051..1924304a087 100644 --- a/src/gallium/drivers/radeonsi/si_descriptors.c +++ b/src/gallium/drivers/radeonsi/si_descriptors.c @@ -947,7 +947,7 @@ void si_update_ps_colorbuf0_slot(struct si_context *sctx) struct pipe_surface *surf = NULL; /* si_texture_disable_dcc can get us here again. */ - if (sctx->in_update_ps_colorbuf0_slot) { + if (sctx->in_update_ps_colorbuf0_slot || sctx->blitter_running) { assert(!sctx->ps_uses_fbfetch || sctx->framebuffer.state.cbufs[0]); return; }