radeonsi: don't use si_decompress_dcc if the blitter is running

Otherwise this will cause a blitter recursion which will crash at
some point.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21984>
This commit is contained in:
Pierre-Eric Pelloux-Prayer
2023-03-22 15:24:28 +01:00
committed by Marge Bot
parent 46d2655a18
commit f315774727
+3 -1
View File
@@ -1325,8 +1325,10 @@ void si_decompress_dcc(struct si_context *sctx, struct si_texture *tex)
/* If graphics is disabled, we can't decompress DCC, but it shouldn't
* be compressed either. The caller should simply discard it.
* If blitter is running, we can't decompress DCC either because it
* will cause a blitter recursion.
*/
if (!tex->surface.meta_offset || !sctx->has_graphics)
if (!tex->surface.meta_offset || !sctx->has_graphics || sctx->blitter_running)
return;
si_blit_decompress_color(sctx, tex, 0, tex->buffer.b.b.last_level, 0,