summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Olšák <marek.olsak@amd.com>2022-07-20 00:34:57 -0400
committerMarge Bot <emma+marge@anholt.net>2022-08-03 00:57:16 +0000
commit233b4271dc58c1e9ee5b5c3ba3815397c6994c19 (patch)
tree3c83242586e909f6de67ec3ab2e6a30ff8222415
parent922f54a0c86f35e7b8c6f597d0969e4a72ad4766 (diff)
downloadmesa-233b4271dc58c1e9ee5b5c3ba3815397c6994c19.tar.gz
radeonsi: call pipe->blit instead of util_blitter_blit after MSAA resolving
This fixes a problem where the destination has a DCC-incompatible view format and triggers a DCC decompression using a custom u_blitter path, which is disallowed inside u_blitter due to it being a u_blitter recursion that always crashes. This is also better because we'll get the best codepath (u_blitter or compute) instead of just u_blitter, Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17864>
-rw-r--r--src/gallium/drivers/radeonsi/si_blit.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/gallium/drivers/radeonsi/si_blit.c b/src/gallium/drivers/radeonsi/si_blit.c
index 495502d0fc7..26511dc3fa5 100644
--- a/src/gallium/drivers/radeonsi/si_blit.c
+++ b/src/gallium/drivers/radeonsi/si_blit.c
@@ -1205,9 +1205,7 @@ resolve_to_temp:
blit.src.resource = tmp;
blit.src.box.z = 0;
- si_blitter_begin(sctx, SI_BLIT | (info->render_condition_enable ? 0 : SI_DISABLE_RENDER_COND));
- util_blitter_blit(sctx->blitter, &blit);
- si_blitter_end(sctx);
+ ctx->blit(ctx, &blit);
pipe_resource_reference(&tmp, NULL);
return true;