drm/vc4: Export fence through syncobj
authorStefan Schake <stschake@gmail.com>
Tue, 24 Apr 2018 22:03:46 +0000 (00:03 +0200)
committerEric Anholt <eric@anholt.net>
Mon, 30 Apr 2018 23:04:23 +0000 (16:04 -0700)
commite84fcb95e07442edd7ce3b13973523646dbc581a
treeee68eb7b0814f397e85b8870fb9504d7effecd63
parent818f5c8f4cd27747e8218e8a5fb230c322e02d1e
drm/vc4: Export fence through syncobj

Allow specifying a syncobj on render job submission where we store the
fence for the job. This gives userland flexible access to the fence.

v2: Use 0 as invalid syncobj to drop flag (Eric)
    Don't reintroduce the padding (Eric)

Signed-off-by: Stefan Schake <stschake@gmail.com>
Signed-off-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Eric Anholt <eric@anholt.net>
Link: https://patchwork.freedesktop.org/patch/msgid/1524607427-12876-3-git-send-email-stschake@gmail.com
drivers/gpu/drm/vc4/vc4_gem.c
include/uapi/drm/vc4_drm.h