aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2017-01-06 22:01:46 +0100
committerMarek Olšák <[email protected]>2017-01-06 23:32:25 +0100
commitaead6a1e947af84b0af2853c204d5cad6d92bfff (patch)
tree07958769ab7b32328a387b9475907c04191dcec0 /src/gallium
parentf4821daed1ec185d16f9ee3cc0951d306ce6e2b9 (diff)
gallium/radeon: use the internal clear_buffer callback to fix r600g
r600g doesn't set pipe_context::clear_buffer. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=99303 Reviewed-by: Alex Deucher <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/radeon/r600_pipe_common.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gallium/drivers/radeon/r600_pipe_common.c b/src/gallium/drivers/radeon/r600_pipe_common.c
index 28bb791707e..51137655fae 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,