summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2016-11-09 13:36:36 +0100
committerLiu Ying <victor.liu@nxp.com>2018-01-03 13:17:17 +0800
commitb027711a7661af652f464390beaa00ab00ee860d (patch)
treee0edbec2f95f2a65e76fd544d6de8a1f753f3220
parent61938c64d7dc8597c1321c49ddbe13eec019006a (diff)
drm_fourcc: Document linear modifier
Not setting the fb modifiers flag is something different from setting the fb modifiers to 0 (which means explicitly linear). We kinda failed to document that properly. Spotted by Kristian. Cc: hoegsberg@google.com Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> Link: http://patchwork.freedesktop.org/patch/msgid/1478694996-4200-1-git-send-email-daniel.vetter@ffwll.ch (cherry picked from commit b9fb2a21ac8058965a6b3fcae736cfa7f411d6eb) (cherry picked from commit f9c59801c36c0c887a9d76704f0028afa7c01273)
-rw-r--r--include/uapi/drm/drm_fourcc.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/uapi/drm/drm_fourcc.h b/include/uapi/drm/drm_fourcc.h
index 5d8336822457..ea518f7c4bde 100644
--- a/include/uapi/drm/drm_fourcc.h
+++ b/include/uapi/drm/drm_fourcc.h
@@ -175,6 +175,16 @@ extern "C" {
* authoritative source for all of these.
*/
+/*
+ * Linear Layout
+ *
+ * Just plain linear layout. Note that this is different from no specifying any
+ * modifier (e.g. not setting DRM_MODE_FB_MODIFIERS in the DRM_ADDFB2 ioctl),
+ * which tells the driver to also take driver-internal information into account
+ * and so might actually result in a tiled framebuffer.
+ */
+#define DRM_FORMAT_MOD_LINEAR fourcc_mod_code(NONE, 0)
+
/* Intel framebuffer modifiers */
/*