diff options
author | Rob Clark <[email protected]> | 2018-08-15 08:13:40 -0400 |
---|---|---|
committer | Rob Clark <[email protected]> | 2018-08-17 11:04:21 -0400 |
commit | 2658f63701664950eba43fc255784eacbf3b6362 (patch) | |
tree | f5b96a23839a032c3a161a3ec1796d5421049875 /src/gallium/drivers | |
parent | d27e1584ce30b2186ac933f976dc31c3624b385b (diff) |
freedreno: fix dEQP-GLES3.functional.fence_sync.*
Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | src/gallium/drivers/freedreno/freedreno_fence.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/drivers/freedreno/freedreno_fence.c b/src/gallium/drivers/freedreno/freedreno_fence.c index c4e20226b58..e2602cb4112 100644 --- a/src/gallium/drivers/freedreno/freedreno_fence.c +++ b/src/gallium/drivers/freedreno/freedreno_fence.c @@ -136,6 +136,10 @@ void fd_fence_server_sync(struct pipe_context *pctx, fence_flush(fence); + /* if not an external fence, then nothing more to do without preemption: */ + if (fence->fence_fd == -1) + return; + if (sync_accumulate("freedreno", &batch->in_fence_fd, fence->fence_fd)) { /* error */ } |