Commit ab7c37ec authored by Christian König's avatar Christian König
Browse files

drm/nouveau: use drm_gem_plane_helper_prepare_fb

parent 1ea28bc5
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -32,6 +32,7 @@

#include <drm/drm_atomic.h>
#include <drm/drm_atomic_helper.h>
#include <drm/drm_gem_atomic_helper.h>
#include <drm/drm_fourcc.h>

#include "nouveau_bo.h"
@@ -558,9 +559,7 @@ nv50_wndw_prepare_fb(struct drm_plane *plane, struct drm_plane_state *state)
			asyw->image.handle[0] = ctxdma->object.handle;
	}

	ret = dma_resv_get_singleton(nvbo->bo.base.resv,
				     DMA_RESV_USAGE_WRITE,
				     &asyw->state.fence);
	ret = drm_gem_plane_helper_prepare_fb(plane, state);
	if (ret)
		return ret;