Browse Source

disp: include: uapi: add QCOM fourcc modifiers

Adds QCOM fourcc modifiers to support frame buffer size
calculations for linear and compressed tp10 format and
a5x tile formats.

Change-Id: I26df3b1680b2ad5bd548f90eaaba011b4d9f5bd8
Signed-off-by: Orion Brody <[email protected]>
Orion Brody 5 years ago
parent
commit
4403e4d819
1 changed files with 23 additions and 0 deletions
  1. 23 0
      include/uapi/display/drm/sde_drm.h

+ 23 - 0
include/uapi/display/drm/sde_drm.h

@@ -41,6 +41,29 @@ extern "C" {
 #define SCALER_LUT_Y_SEP_WR		0x10
 #define SCALER_LUT_UV_SEP_WR		0x20
 
+/**
+ * DRM format modifier tokens
+ *
+ * @DRM_FORMAT_MOD_QCOM_DX:         Refers to a DX variant of the base format.
+ *                                  Implementation may be platform and
+ *                                  base-format specific.
+ */
+#define DRM_FORMAT_MOD_QCOM_DX	fourcc_mod_code(QCOM, 0x2)
+
+/**
+ * @DRM_FORMAT_MOD_QCOM_TIGHT:      Refers to a tightly packed variant of the
+ *                                  base variant. Implementation may be
+ *                                  platform and base-format specific.
+ */
+#define DRM_FORMAT_MOD_QCOM_TIGHT	fourcc_mod_code(QCOM, 0x4)
+
+/**
+ * @DRM_FORMAT_MOD_QCOM_TILE:       Refers to a tile variant of the base format.
+ *                                  Implementation may be platform and
+ *                                  base-format specific.
+ */
+#define DRM_FORMAT_MOD_QCOM_TILE	fourcc_mod_code(QCOM, 0x8)
+
 /**
  * Blend operations for "blend_op" property
  *