From: Marek Olšák <marek.ol...@amd.com>

---
 src/gallium/drivers/radeon/radeon_video.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/gallium/drivers/radeon/radeon_video.c 
b/src/gallium/drivers/radeon/radeon_video.c
index 59e735b..ecafaf8 100644
--- a/src/gallium/drivers/radeon/radeon_video.c
+++ b/src/gallium/drivers/radeon/radeon_video.c
@@ -122,22 +122,22 @@ error:
        rvid_destroy_buffer(new_buf);
        *new_buf = old_buf;
        return false;
 }
 
 /* clear the buffer with zeros */
 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);
 }
 
 /**
  * join surfaces into the same buffer with identical tiling params
  * sumup their sizes and replace the backend buffers with a single bo
  */
 void rvid_join_surfaces(struct radeon_winsys* ws,
                        struct pb_buffer** buffers[VL_NUM_COMPONENTS],
                        struct radeon_surf *surfaces[VL_NUM_COMPONENTS])
-- 
2.7.4

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to