From 2658f63701664950eba43fc255784eacbf3b6362 Mon Sep 17 00:00:00 2001 From: Rob Clark Date: Wed, 15 Aug 2018 08:13:40 -0400 Subject: [PATCH] freedreno: fix dEQP-GLES3.functional.fence_sync.* Signed-off-by: Rob Clark --- src/gallium/drivers/freedreno/freedreno_fence.c | 4 ++++ 1 file changed, 4 insertions(+) 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 */ } -- 2.30.2