radeonsi: inline clear_buffer in si_screen_clear_buffer

We'll add a new parameter there.

Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9795>
This commit is contained in:
Marek Olšák 2021-03-19 23:12:55 -04:00 committed by Marge Bot
parent 1af99a28a0
commit a4ad08b455

View file

@ -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);
}