[PATCH v7 3/3] drm/fence: add out-fences support

Brian Starkey brian.starkey at arm.com
Tue Nov 8 15:36:49 UTC 2016


On Tue, Nov 08, 2016 at 03:54:50PM +0900, Gustavo Padovan wrote:
>From: Gustavo Padovan <gustavo.padovan at collabora.co.uk>
>
>+static struct dma_fence *get_crtc_fence(struct drm_crtc *crtc,
>+					struct drm_crtc_state *crtc_state)
>+{
>+	struct dma_fence *fence;
>+
>+	fence = kzalloc(sizeof(*fence), GFP_KERNEL);
>+	if (!fence)
>+		return NULL;
>+
>+	dma_fence_init(fence, &drm_crtc_fence_ops, &crtc->fence_lock,
>+		       crtc->fence_context, ++crtc->fence_seqno);
>+
>+	return fence;
>+}
>+

crtc_state is unused in this function.

-Brian



More information about the dri-devel mailing list