broadcom/vc4: Detect syncobj support
authorStefan Schake <stschake@gmail.com>
Tue, 24 Apr 2018 22:00:58 +0000 (00:00 +0200)
committerEric Anholt <eric@anholt.net>
Thu, 17 May 2018 15:04:26 +0000 (16:04 +0100)
commit9ed05e2520f77a11f73d21bccfe149b2b800082c
tree106193fef3a2901654b83bed76f01d7fea6b8f11
parent4fc0ebdff55419965919e4d6bf3c7f7f2759f7aa
broadcom/vc4: Detect syncobj support

We need to know if the kernel supports syncobj submission since otherwise
all the DRM syncobj calls fail.

v2: Use drmGetCap to detect syncobj support (Eric)

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