summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/softpipe/sp_flush.c
diff options
context:
space:
mode:
authorMarek Olšák <maraeo@gmail.com>2011-06-02 00:50:45 +0200
committerMarek Olšák <maraeo@gmail.com>2011-06-02 16:50:46 +0200
commitbddf275db44695e3850c4b62b8f4b77d93299ae9 (patch)
tree53038f1c9fc6b45365222e4faccb2b275c81053a /src/gallium/drivers/softpipe/sp_flush.c
parentf62e1f41b4d6047e72222aebbb0b55a508269b0c (diff)
softpipe: add a better fake implementation of fences
The flush function, when asked for, should not return a NULL fence. NULL can only be returned if fences are not implemented, and st/mesa doesn't call any of the fence functions if it receives a NULL fence (because some drivers don't even set the fence hooks). ARB_sync is exposed if fence_finish is set.
Diffstat (limited to 'src/gallium/drivers/softpipe/sp_flush.c')
-rw-r--r--src/gallium/drivers/softpipe/sp_flush.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/softpipe/sp_flush.c b/src/gallium/drivers/softpipe/sp_flush.c
index 720fea83cb2..a2733e95878 100644
--- a/src/gallium/drivers/softpipe/sp_flush.c
+++ b/src/gallium/drivers/softpipe/sp_flush.c
@@ -96,9 +96,9 @@ softpipe_flush( struct pipe_context *pipe,
++frame_no;
}
#endif
-
+
if (fence)
- *fence = NULL;
+ *fence = (void*)(intptr_t)1;
}
void