radeonsi: use SDMA in rvid_buffer_clear on CIK-VI
authorMarek Olšák <marek.olsak@amd.com>
Sat, 24 Dec 2016 22:00:27 +0000 (23:00 +0100)
committerMarek Olšák <marek.olsak@amd.com>
Thu, 5 Jan 2017 17:43:23 +0000 (18:43 +0100)
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/gallium/drivers/radeon/radeon_video.c

index 59e735b47444cd7ab6a11338706dc1aa11bf9d2a..ecafaf8b54651caba65114c65adf48ccf909600e 100644 (file)
@@ -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);
 }