summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlex Deucher <alexdeucher@gmail.com>2009-08-26 13:08:49 -0400
committerAlex Deucher <alexdeucher@gmail.com>2009-08-26 13:10:15 -0400
commitf988c750a9d3baa2c71f9fd1c0493daef93afc86 (patch)
treef88fffe39048c2d7b2ffdc95b9044b220ad2a237 /src
parenta0966c41a913666f0a6b04bde63162a30b1a1879 (diff)
r600: add missing radeon_cs_space_set_flush call
fixes crash in etracer reported by kdekorte on IRC
Diffstat (limited to 'src')
-rw-r--r--src/mesa/drivers/dri/r600/r600_cmdbuf.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/r600/r600_cmdbuf.c b/src/mesa/drivers/dri/r600/r600_cmdbuf.c
index 1734b0a89f..65930ff589 100644
--- a/src/mesa/drivers/dri/r600/r600_cmdbuf.c
+++ b/src/mesa/drivers/dri/r600/r600_cmdbuf.c
@@ -487,6 +487,9 @@ void r600InitCmdBuf(context_t *r600) /* from rcommonInitCmdBuf */
assert(rmesa->cmdbuf.cs != NULL);
rmesa->cmdbuf.size = size;
+ radeon_cs_space_set_flush(rmesa->cmdbuf.cs,
+ (void (*)(void *))rmesa->glCtx->Driver.Flush, rmesa->glCtx);
+
if (!rmesa->radeonScreen->kernel_mm) {
radeon_cs_set_limit(rmesa->cmdbuf.cs, RADEON_GEM_DOMAIN_VRAM, rmesa->radeonScreen->texSize[0]);
radeon_cs_set_limit(rmesa->cmdbuf.cs, RADEON_GEM_DOMAIN_GTT, rmesa->radeonScreen->gartTextures.size);