summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/svga
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2015-06-26 13:13:16 +0200
committerMarek Olšák <[email protected]>2015-07-05 15:08:58 +0200
commit3da1c7919d0dffee3887f390fcf29893016e3043 (patch)
tree154477ca532ad5729a4b7459a5daf5729a17a65f /src/gallium/drivers/svga
parentd50598fbad16bfb2b46800b664d382f42af64db0 (diff)
gallium: handle fence_finish timeout in various drivers
I copied what fence_signalled does. Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/gallium/drivers/svga')
-rw-r--r--src/gallium/drivers/svga/svga_screen.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/svga/svga_screen.c b/src/gallium/drivers/svga/svga_screen.c
index 770f4933b4c..8eff3d5e337 100644
--- a/src/gallium/drivers/svga/svga_screen.c
+++ b/src/gallium/drivers/svga/svga_screen.c
@@ -560,6 +560,9 @@ svga_fence_finish(struct pipe_screen *screen,
{
struct svga_winsys_screen *sws = svga_screen(screen)->sws;
+ if (!timeout)
+ return sws->fence_signalled(sws, fence, 0) == 0;
+
SVGA_DBG(DEBUG_DMA|DEBUG_PERF, "%s fence_ptr %p\n",
__FUNCTION__, fence);