projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a0966c4
)
r600: add missing radeon_cs_space_set_flush call
author
Alex Deucher
<alexdeucher@gmail.com>
Wed, 26 Aug 2009 17:08:49 +0000
(13:08 -0400)
committer
Alex Deucher
<alexdeucher@gmail.com>
Wed, 26 Aug 2009 17:10:15 +0000
(13:10 -0400)
fixes crash in etracer reported by kdekorte on IRC
src/mesa/drivers/dri/r600/r600_cmdbuf.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/r600/r600_cmdbuf.c
b/src/mesa/drivers/dri/r600/r600_cmdbuf.c
index 1734b0a89f990650ff1e2dd60389db8c5a238b55..65930ff589f77f7e03861f0703ed5766630014aa 100644
(file)
--- 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);