Commit 00a16d02 authored by Dave Airlie's avatar Dave Airlie Committed by Jani Nikula

drm/i915: refactor i915 plane code into separate file.

Ville suggested this as a good idea, let's move this before moving
the crtc code.
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
Reviewed-by: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
[Jani: fixed i915xx_plane.h standalone build.]
Signed-off-by: default avatarJani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20201221110957.18215-1-jani.nikula@intel.com
parent 99ce270a
...@@ -215,7 +215,8 @@ i915-y += \ ...@@ -215,7 +215,8 @@ i915-y += \
display/intel_quirks.o \ display/intel_quirks.o \
display/intel_sprite.o \ display/intel_sprite.o \
display/intel_tc.o \ display/intel_tc.o \
display/intel_vga.o display/intel_vga.o \
display/i9xx_plane.o
i915-$(CONFIG_ACPI) += \ i915-$(CONFIG_ACPI) += \
display/intel_acpi.o \ display/intel_acpi.o \
display/intel_opregion.o display/intel_opregion.o
......
This diff is collapsed.
/* SPDX-License-Identifier: MIT */
/*
* Copyright © 2020 Intel Corporation
*/
#ifndef _I9XX_PLANE_H_
#define _I9XX_PLANE_H_
#include <linux/types.h>
enum pipe;
struct drm_i915_private;
struct intel_plane;
struct intel_plane_state;
unsigned int i9xx_plane_max_stride(struct intel_plane *plane,
u32 pixel_format, u64 modifier,
unsigned int rotation);
int i9xx_check_plane_surface(struct intel_plane_state *plane_state);
struct intel_plane *
intel_primary_plane_create(struct drm_i915_private *dev_priv, enum pipe pipe);
#endif
...@@ -630,11 +630,7 @@ u32 skl_plane_ctl_crtc(const struct intel_crtc_state *crtc_state); ...@@ -630,11 +630,7 @@ u32 skl_plane_ctl_crtc(const struct intel_crtc_state *crtc_state);
u32 skl_plane_stride(const struct intel_plane_state *plane_state, u32 skl_plane_stride(const struct intel_plane_state *plane_state,
int plane); int plane);
int skl_check_plane_surface(struct intel_plane_state *plane_state); int skl_check_plane_surface(struct intel_plane_state *plane_state);
int i9xx_check_plane_surface(struct intel_plane_state *plane_state);
int skl_format_to_fourcc(int format, bool rgb_order, bool alpha); int skl_format_to_fourcc(int format, bool rgb_order, bool alpha);
unsigned int i9xx_plane_max_stride(struct intel_plane *plane,
u32 pixel_format, u64 modifier,
unsigned int rotation);
int bdw_get_pipemisc_bpp(struct intel_crtc *crtc); int bdw_get_pipemisc_bpp(struct intel_crtc *crtc);
unsigned int intel_plane_fence_y_offset(const struct intel_plane_state *plane_state); unsigned int intel_plane_fence_y_offset(const struct intel_plane_state *plane_state);
......
...@@ -49,6 +49,7 @@ ...@@ -49,6 +49,7 @@
#include "intel_psr.h" #include "intel_psr.h"
#include "intel_dsi.h" #include "intel_dsi.h"
#include "intel_sprite.h" #include "intel_sprite.h"
#include "i9xx_plane.h"
int intel_usecs_to_scanlines(const struct drm_display_mode *adjusted_mode, int intel_usecs_to_scanlines(const struct drm_display_mode *adjusted_mode,
int usecs) int usecs)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment