diff options
author | Marek Olšák <[email protected]> | 2015-06-26 13:13:16 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2015-07-05 15:08:58 +0200 |
commit | 3da1c7919d0dffee3887f390fcf29893016e3043 (patch) | |
tree | 154477ca532ad5729a4b7459a5daf5729a17a65f /src/gallium/drivers/llvmpipe | |
parent | d50598fbad16bfb2b46800b664d382f42af64db0 (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/llvmpipe')
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_screen.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_screen.c b/src/gallium/drivers/llvmpipe/lp_screen.c index 47f1897c732..d3392e7d63d 100644 --- a/src/gallium/drivers/llvmpipe/lp_screen.c +++ b/src/gallium/drivers/llvmpipe/lp_screen.c @@ -550,6 +550,9 @@ llvmpipe_fence_finish(struct pipe_screen *screen, { struct lp_fence *f = (struct lp_fence *) fence_handle; + if (!timeout) + return lp_fence_signalled(f); + lp_fence_wait(f); return TRUE; } |