diff options
author | Christian König <christian.koenig@amd.com> | 2022-04-29 14:36:16 +0300 |
---|---|---|
committer | Christian König <christian.koenig@amd.com> | 2022-05-02 10:02:54 +0300 |
commit | ab7c37ec11d2f3c88e1d49c5fb4fe4ed568d88e3 (patch) | |
tree | 861a5f8af9e86cfb91037958a7959a033d69cd9e /drivers/gpu/drm/nouveau | |
parent | 1ea28bc5542d607ff7c806e409a72862c5af8f5e (diff) | |
download | linux-ab7c37ec11d2f3c88e1d49c5fb4fe4ed568d88e3.tar.xz |
drm/nouveau: use drm_gem_plane_helper_prepare_fb
Instead of manually adjusting the plane state.
Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Lyude Paul <lyude@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220429134230.24334-3-christian.koenig@amd.com
Diffstat (limited to 'drivers/gpu/drm/nouveau')
-rw-r--r-- | drivers/gpu/drm/nouveau/dispnv50/wndw.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/gpu/drm/nouveau/dispnv50/wndw.c b/drivers/gpu/drm/nouveau/dispnv50/wndw.c index 8642b84ea20c..bb8a4601e0d9 100644 --- a/drivers/gpu/drm/nouveau/dispnv50/wndw.c +++ b/drivers/gpu/drm/nouveau/dispnv50/wndw.c @@ -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; |