From 27c374451b562ea8ff6e9aa93a87c367555284a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Fri, 6 Jan 2017 22:01:46 +0100 Subject: [PATCH] gallium/radeon: use the internal clear_buffer callback to fix r600g r600g doesn't set pipe_context::clear_buffer. --- src/gallium/drivers/radeon/r600_pipe_common.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/radeon/r600_pipe_common.c b/src/gallium/drivers/radeon/r600_pipe_common.c index 28bb791..5113765 100644 --- a/src/gallium/drivers/radeon/r600_pipe_common.c +++ b/src/gallium/drivers/radeon/r600_pipe_common.c @@ -545,7 +545,9 @@ static void r600_dma_clear_buffer_fallback(struct pipe_context *ctx, uint64_t offset, uint64_t size, unsigned value) { - ctx->clear_buffer(ctx, dst, offset, size, &value, 4); + struct r600_common_context *rctx = (struct r600_common_context *)ctx; + + rctx->clear_buffer(ctx, dst, offset, size, value, R600_COHERENCY_NONE); } bool r600_common_context_init(struct r600_common_context *rctx, -- 2.7.4