Merge branch 'parisc-4.20-2' of git://git.kernel.org/pub/scm/linux/kernel/git/deller...
[linux-2.6-block.git] / include / drm / drm_mode_config.h
index a0b202e1d69a08363c9cf1d39dbc3377f9d07ef1..928e4172a0bbe277058f5c791cfa9070eca9a9ca 100644 (file)
@@ -809,6 +809,21 @@ struct drm_mode_config {
 
        /* dumb ioctl parameters */
        uint32_t preferred_depth, prefer_shadow;
+       bool quirk_addfb_prefer_xbgr_30bpp;
+
+       /**
+        * @quirk_addfb_prefer_host_byte_order:
+        *
+        * When set to true drm_mode_addfb() will pick host byte order
+        * pixel_format when calling drm_mode_addfb2().  This is how
+        * drm_mode_addfb() should have worked from day one.  It
+        * didn't though, so we ended up with quirks in both kernel
+        * and userspace drivers to deal with the broken behavior.
+        * Simply fixing drm_mode_addfb() unconditionally would break
+        * these drivers, so add a quirk bit here to allow drivers
+        * opt-in.
+        */
+       bool quirk_addfb_prefer_host_byte_order;
 
        /**
         * @async_page_flip: Does this device support async flips on the primary