broadcom/vc4: Native fence fd support
authorStefan Schake <stschake@gmail.com>
Tue, 24 Apr 2018 22:01:00 +0000 (00:01 +0200)
committerEric Anholt <eric@anholt.net>
Thu, 17 May 2018 15:04:30 +0000 (16:04 +0100)
commitb0acc3a5628c6c6dd669cbb7cff2d974b175605e
treeef0d04117ae2f56fc3c891e4baf1cb93974af265
parent44036c354d800dda08d3688b042130039f3d592a
broadcom/vc4: Native fence fd support

With the syncobj support in place, lets use it to implement the
EGL_ANDROID_native_fence_sync extension. This mostly follows previous
implementations in freedreno and etnaviv.

v2: Drop the flags (Eric)
    Handle in_fence_fd already in job_submit (Eric)
    Drop extra vc4_fence_context_init (Eric)
    Dup fds with CLOEXEC (Eric)
    Mention exact extension name (Eric)

Signed-off-by: Stefan Schake <stschake@gmail.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/gallium/drivers/vc4/vc4_context.c
src/gallium/drivers/vc4/vc4_context.h
src/gallium/drivers/vc4/vc4_fence.c
src/gallium/drivers/vc4/vc4_job.c
src/gallium/drivers/vc4/vc4_screen.c
src/gallium/drivers/vc4/vc4_screen.h