From 4403e4d8190246d8654e0f1655827316731c5a21 Mon Sep 17 00:00:00 2001 From: Orion Brody Date: Wed, 24 Jun 2020 15:32:48 -0700 Subject: [PATCH] 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 --- include/uapi/display/drm/sde_drm.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/include/uapi/display/drm/sde_drm.h b/include/uapi/display/drm/sde_drm.h index 67fc98b415..71169b5a02 100644 --- a/include/uapi/display/drm/sde_drm.h +++ b/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 *