aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrzej Pietrasiewicz <andrzej.p@samsung.com>2018-08-10 09:28:59 -0400
committerInki Dae <inki.dae@samsung.com>2018-09-20 04:19:25 -0400
commitb1c7a57448307898cb3a44f5c9b0cfdff43bb633 (patch)
tree452489bcf5fdf3b527102934115746abd014e54f
parent714c9994110fa43a02f2cc92142c25e9bf58d167 (diff)
drm: drm_fourcc: add Samsung 16x16 tile format
Add modifier for tiled formats used by graphics modules found in Samsung Exynos5250/542x/5433 SoCs. This is a simple tiled layout using tiles of 16x16 pixels in a row-major layout. Signed-off-by: Andrzej Pietrasiewicz <andrzej.p@samsung.com> Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> Signed-off-by: Inki Dae <inki.dae@samsung.com>
-rw-r--r--include/uapi/drm/drm_fourcc.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/uapi/drm/drm_fourcc.h b/include/uapi/drm/drm_fourcc.h
index 139632b87181..0cd40ebfa1b1 100644
--- a/include/uapi/drm/drm_fourcc.h
+++ b/include/uapi/drm/drm_fourcc.h
@@ -339,6 +339,15 @@ extern "C" {
339#define DRM_FORMAT_MOD_SAMSUNG_64_32_TILE fourcc_mod_code(SAMSUNG, 1) 339#define DRM_FORMAT_MOD_SAMSUNG_64_32_TILE fourcc_mod_code(SAMSUNG, 1)
340 340
341/* 341/*
342 * Tiled, 16 (pixels) x 16 (lines) - sized macroblocks
343 *
344 * This is a simple tiled layout using tiles of 16x16 pixels in a row-major
345 * layout. For YCbCr formats Cb/Cr components are taken in such a way that
346 * they correspond to their 16x16 luma block.
347 */
348#define DRM_FORMAT_MOD_SAMSUNG_16_16_TILE fourcc_mod_code(SAMSUNG, 2)
349
350/*
342 * Qualcomm Compressed Format 351 * Qualcomm Compressed Format
343 * 352 *
344 * Refers to a compressed variant of the base format that is compressed. 353 * Refers to a compressed variant of the base format that is compressed.