From: Marek Olšák Date: Sat, 24 Dec 2016 22:00:27 +0000 (+0100) Subject: radeonsi: use SDMA in rvid_buffer_clear on CIK-VI X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=69f489dfa11a6182c413c252addb0b0010550861;p=mesa.git radeonsi: use SDMA in rvid_buffer_clear on CIK-VI Reviewed-by: Nicolai Hähnle --- diff --git a/src/gallium/drivers/radeon/radeon_video.c b/src/gallium/drivers/radeon/radeon_video.c index 59e735b4744..ecafaf8b546 100644 --- a/src/gallium/drivers/radeon/radeon_video.c +++ b/src/gallium/drivers/radeon/radeon_video.c @@ -129,8 +129,8 @@ void rvid_clear_buffer(struct pipe_context *context, struct rvid_buffer* buffer) { struct r600_common_context *rctx = (struct r600_common_context*)context; - rctx->clear_buffer(context, &buffer->res->b.b, 0, buffer->res->buf->size, - 0, R600_COHERENCY_NONE); + rctx->dma_clear_buffer(context, &buffer->res->b.b, 0, + buffer->res->buf->size, 0); context->flush(context, NULL, 0); }