plane.c (cbecf716ca618fd44feda6bd9a64a8179d031fc5) | plane.c (820c1707177c6fe96beed7f8cc842a683afbf890) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * Copyright (C) 2017 NVIDIA CORPORATION. All rights reserved. 4 */ 5 6#include <linux/iommu.h> 7 8#include <drm/drm_atomic.h> 9#include <drm/drm_atomic_helper.h> 10#include <drm/drm_fourcc.h> | 1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * Copyright (C) 2017 NVIDIA CORPORATION. All rights reserved. 4 */ 5 6#include <linux/iommu.h> 7 8#include <drm/drm_atomic.h> 9#include <drm/drm_atomic_helper.h> 10#include <drm/drm_fourcc.h> |
11#include <drm/drm_gem_framebuffer_helper.h> | 11#include <drm/drm_gem_atomic_helper.h> |
12#include <drm/drm_plane_helper.h> 13 14#include "dc.h" 15#include "plane.h" 16 17static void tegra_plane_destroy(struct drm_plane *plane) 18{ 19 struct tegra_plane *p = to_tegra_plane(plane); --- 173 unchanged lines hidden (view full) --- 193int tegra_plane_prepare_fb(struct drm_plane *plane, 194 struct drm_plane_state *state) 195{ 196 struct tegra_dc *dc = to_tegra_dc(state->crtc); 197 198 if (!state->fb) 199 return 0; 200 | 12#include <drm/drm_plane_helper.h> 13 14#include "dc.h" 15#include "plane.h" 16 17static void tegra_plane_destroy(struct drm_plane *plane) 18{ 19 struct tegra_plane *p = to_tegra_plane(plane); --- 173 unchanged lines hidden (view full) --- 193int tegra_plane_prepare_fb(struct drm_plane *plane, 194 struct drm_plane_state *state) 195{ 196 struct tegra_dc *dc = to_tegra_dc(state->crtc); 197 198 if (!state->fb) 199 return 0; 200 |
201 drm_gem_fb_prepare_fb(plane, state); | 201 drm_gem_plane_helper_prepare_fb(plane, state); |
202 203 return tegra_dc_pin(dc, to_tegra_plane_state(state)); 204} 205 206void tegra_plane_cleanup_fb(struct drm_plane *plane, 207 struct drm_plane_state *state) 208{ 209 struct tegra_dc *dc = to_tegra_dc(state->crtc); --- 388 unchanged lines hidden --- | 202 203 return tegra_dc_pin(dc, to_tegra_plane_state(state)); 204} 205 206void tegra_plane_cleanup_fb(struct drm_plane *plane, 207 struct drm_plane_state *state) 208{ 209 struct tegra_dc *dc = to_tegra_dc(state->crtc); --- 388 unchanged lines hidden --- |