From a4ad08b455971d0b1cb15bcd705e316ef93d8763 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Fri, 19 Mar 2021 23:12:55 -0400 Subject: [PATCH] radeonsi: inline clear_buffer in si_screen_clear_buffer We'll add a new parameter there. Reviewed-by: Pierre-Eric Pelloux-Prayer Part-of: --- src/gallium/drivers/radeonsi/si_compute_blit.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/radeonsi/si_compute_blit.c b/src/gallium/drivers/radeonsi/si_compute_blit.c index 0835ec722af..cf77c018c3a 100644 --- a/src/gallium/drivers/radeonsi/si_compute_blit.c +++ b/src/gallium/drivers/radeonsi/si_compute_blit.c @@ -383,7 +383,8 @@ void si_screen_clear_buffer(struct si_screen *sscreen, struct pipe_resource *dst struct si_context *ctx = (struct si_context *)sscreen->aux_context; simple_mtx_lock(&sscreen->aux_context_lock); - ctx->b.clear_buffer(&ctx->b, dst, offset, size, &value, 4); + si_clear_buffer(ctx, dst, offset, size, &value, 4, SI_COHERENCY_SHADER, + SI_AUTO_SELECT_CLEAR_METHOD); sscreen->aux_context->flush(sscreen->aux_context, NULL, 0); simple_mtx_unlock(&sscreen->aux_context_lock); }