projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f4821da
)
gallium/radeon: use the internal clear_buffer callback to fix r600g
author
Marek Olšák
<marek.olsak@amd.com>
Fri, 6 Jan 2017 21:01:46 +0000
(22:01 +0100)
committer
Marek Olšák
<marek.olsak@amd.com>
Fri, 6 Jan 2017 22:32:25 +0000
(23:32 +0100)
r600g doesn't set pipe_context::clear_buffer.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=99303
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
src/gallium/drivers/radeon/r600_pipe_common.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/radeon/r600_pipe_common.c
b/src/gallium/drivers/radeon/r600_pipe_common.c
index 28bb791707ef40ea697a87e60630a93ba7251d58..51137655faef8ae400f990ede147224eca41708b 100644
(file)
--- 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,