summaryrefslogtreecommitdiff
path: root/include/uapi
diff options
context:
space:
mode:
authorLiu Ying <victor.liu@nxp.com>2017-08-03 16:00:46 +0800
committerLeonard Crestez <leonard.crestez@nxp.com>2018-08-24 12:41:33 +0300
commitfd9ae9865ca1f4bfaceded890131fb5b602fe3f8 (patch)
treea3ce93187b3e48686c5282e63237e16d95b9eab5 /include/uapi
parenta9932e3ba6a8e3ca0d6437fad303e42f4fa4e0fb (diff)
MLK-15110-1 drm/fourcc: Add Amphion tiled layout format modifier
Amphion VPU has a tiled layout using 8x128 pixel vertical strips, where each strip contains 1x16 groups of 8x8 pixels in a row-major layout. Signed-off-by: Song Bing <bing.song@nxp.com> Signed-off-by: Liu Ying <victor.liu@nxp.com>
Diffstat (limited to 'include/uapi')
-rw-r--r--include/uapi/drm/drm_fourcc.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/uapi/drm/drm_fourcc.h b/include/uapi/drm/drm_fourcc.h
index 3ec23c83fbc7..912c63780508 100644
--- a/include/uapi/drm/drm_fourcc.h
+++ b/include/uapi/drm/drm_fourcc.h
@@ -162,6 +162,7 @@ extern "C" {
#define DRM_FORMAT_MOD_VENDOR_QCOM 0x05
#define DRM_FORMAT_MOD_VENDOR_VIVANTE 0x06
#define DRM_FORMAT_MOD_VENDOR_BROADCOM 0x07
+#define DRM_FORMAT_MOD_VENDOR_AMPHION 0x08
/* add more to the end as needed */
#define fourcc_mod_code(vendor, val) \
@@ -341,6 +342,16 @@ extern "C" {
*/
#define DRM_FORMAT_MOD_BROADCOM_VC4_T_TILED fourcc_mod_code(BROADCOM, 1)
+/* Amphion tiled layout */
+
+/*
+ * Amphion 8x128 tiling layout
+ *
+ * This is a tiled layout using 8x128 pixel vertical strips, where each strip
+ * contains 1x16 groups of 8x8 pixels in a row-major layout.
+ */
+#define DRM_FORMAT_MOD_AMPHION_TILED fourcc_mod_code(AMPHION, 1)
+
#if defined(__cplusplus)
}
#endif