diff mbox

[v2,2/4] drm/i915: Add P010, P012, P016 plane control definitions

Message ID 1528802198-856-3-git-send-email-juhapekka.heikkila@gmail.com (mailing list archive)
State New, archived
Headers show

Commit Message

Juha-Pekka Heikkila June 12, 2018, 11:16 a.m. UTC
Add needed plane control flag definitions for P010, P012 and
P016 formats.

Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
---
 drivers/gpu/drm/i915/i915_reg.h | 3 +++
 1 file changed, 3 insertions(+)

Comments

Maarten Lankhorst June 26, 2018, 12:33 p.m. UTC | #1
Op 12-06-18 om 13:16 schreef Juha-Pekka Heikkila:
> Add needed plane control flag definitions for P010, P012 and
> P016 formats.
>
> Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
> ---
>  drivers/gpu/drm/i915/i915_reg.h | 3 +++
>  1 file changed, 3 insertions(+)
>
> diff --git a/drivers/gpu/drm/i915/i915_reg.h b/drivers/gpu/drm/i915/i915_reg.h
> index 987def2..9add270 100644
> --- a/drivers/gpu/drm/i915/i915_reg.h
> +++ b/drivers/gpu/drm/i915/i915_reg.h
> @@ -6378,8 +6378,11 @@ enum {
>  #define   PLANE_CTL_FORMAT_YUV422		(  0 << 24)
>  #define   PLANE_CTL_FORMAT_NV12			(  1 << 24)
>  #define   PLANE_CTL_FORMAT_XRGB_2101010		(  2 << 24)
> +#define   PLANE_CTL_FORMAT_P010			(  3 << 24)
>  #define   PLANE_CTL_FORMAT_XRGB_8888		(  4 << 24)
> +#define   PLANE_CTL_FORMAT_P012			(  5 << 24)
>  #define   PLANE_CTL_FORMAT_XRGB_16161616F	(  6 << 24)
> +#define   PLANE_CTL_FORMAT_P016			(  7 << 24)
>  #define   PLANE_CTL_FORMAT_AYUV			(  8 << 24)
>  #define   PLANE_CTL_FORMAT_INDEXED		( 12 << 24)
>  #define   PLANE_CTL_FORMAT_RGB_565		( 14 << 24)

I think this will break with

commit af7187b784432d62cb2059d65ef91b7e0aa77a4f
Author: Paulo Zanoni <paulo.r.zanoni@intel.com>
Date:   Tue Jun 12 16:56:53 2018 -0700

    drm/i915/i915_reg.h: fix the checkpatch SPACE_BEFORE_TAB issues
diff mbox

Patch

diff --git a/drivers/gpu/drm/i915/i915_reg.h b/drivers/gpu/drm/i915/i915_reg.h
index 987def2..9add270 100644
--- a/drivers/gpu/drm/i915/i915_reg.h
+++ b/drivers/gpu/drm/i915/i915_reg.h
@@ -6378,8 +6378,11 @@  enum {
 #define   PLANE_CTL_FORMAT_YUV422		(  0 << 24)
 #define   PLANE_CTL_FORMAT_NV12			(  1 << 24)
 #define   PLANE_CTL_FORMAT_XRGB_2101010		(  2 << 24)
+#define   PLANE_CTL_FORMAT_P010			(  3 << 24)
 #define   PLANE_CTL_FORMAT_XRGB_8888		(  4 << 24)
+#define   PLANE_CTL_FORMAT_P012			(  5 << 24)
 #define   PLANE_CTL_FORMAT_XRGB_16161616F	(  6 << 24)
+#define   PLANE_CTL_FORMAT_P016			(  7 << 24)
 #define   PLANE_CTL_FORMAT_AYUV			(  8 << 24)
 #define   PLANE_CTL_FORMAT_INDEXED		( 12 << 24)
 #define   PLANE_CTL_FORMAT_RGB_565		( 14 << 24)