Mesa (master): freedreno: fix dEQP-GLES3.functional.fence_sync.*
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Fri Aug 17 15:05:03 UTC 2018
Module: Mesa
Branch: master
Commit: 2658f63701664950eba43fc255784eacbf3b6362
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=2658f63701664950eba43fc255784eacbf3b6362
Author: Rob Clark <robdclark at gmail.com>
Date: Wed Aug 15 08:13:40 2018 -0400
freedreno: fix dEQP-GLES3.functional.fence_sync.*
Signed-off-by: Rob Clark <robdclark at gmail.com>
---
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 c4e20226b5..e2602cb411 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 */
}
More information about the mesa-commit
mailing list