freedreno: fix dEQP-GLES3.functional.fence_sync.*

Signed-off-by: Rob Clark <robdclark@gmail.com>
This commit is contained in:
Rob Clark 2018-08-15 08:13:40 -04:00
parent d27e1584ce
commit 2658f63701

View file

@ -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 */
}