OSDN Git Service

drm/vc4: Use newer fence API properly to fix build errors
authorJavier Martinez Canillas <javierm@redhat.com>
Thu, 7 Apr 2022 13:19:50 +0000 (15:19 +0200)
committerJavier Martinez Canillas <javierm@redhat.com>
Thu, 7 Apr 2022 13:26:06 +0000 (15:26 +0200)
commitbe273ecfbe8a32fd8f875cc2990223cfc8a32031
treef472c6672de02fbf65f35e0599676b144302592a
parent7cee157b4225089cb831f77515f9c4f4f7c24182
drm/vc4: Use newer fence API properly to fix build errors

The commit 73511edf8b19 ("dma-buf: specify usage while adding fences to
dma_resv obj v7") ported all the DRM drivers to use the newer fence API
that specifies the usage with the enum dma_resv_usage rather than doing
an explicit shared / exclusive distinction.

But the commit didn't do it properly in two callers of the vc4 driver,
leading to build errors.

Fixes: 73511edf8b19 ("dma-buf: specify usage while adding fences to dma_resv obj v7")
Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220407131950.915091-1-javierm@redhat.com
drivers/gpu/drm/vc4/vc4_gem.c