Skip to contentSkip to conversation

drm_fourcc: Fix DRM_FORMAT_MOD_LINEAR #define

PATCH In review Kristian H. Kristensen 2 participants 2 messages Dec 13, 2016

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm_fourcc: Fix DRM_FORMAT_MOD_LINEAR #define

We need to define DRM_FORMAT_MOD_VENDOR_NONE for the fourcc_mod_code() macro to work correctly.

---
 include/uapi/drm/drm_fourcc.h | 1 +
 1 file changed, 1 insertion(+)
include/uapi/drm/drm_fourcc.h +1 -0
index 0ccef30..9e1bb7f 100644
@@ -154,6 +154,7 @@ extern "C" {
 
 /* Vendor Ids: */
 #define DRM_FORMAT_MOD_NONE           0
+#define DRM_FORMAT_MOD_VENDOR_NONE    0
 #define DRM_FORMAT_MOD_VENDOR_INTEL   0x01
 #define DRM_FORMAT_MOD_VENDOR_AMD     0x02
 #define DRM_FORMAT_MOD_VENDOR_NV      0x03
Signature · 6 lines
2.8.0.rc3.226.g39d4020

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#1 lore raw
Quoted 4 lines · Kristian H. Kristensen

We need to define DRM_FORMAT_MOD_VENDOR_NONE for the fourcc_mod_code() macro to work correctly.

Oopsies. Applied to drm-misc, thx for spotting.
-Daniel

Quoted 19 lines
---
 include/uapi/drm/drm_fourcc.h | 1 +
 1 file changed, 1 insertion(+)
include/uapi/drm/drm_fourcc.h +1 -0
index 0ccef30..9e1bb7f 100644
@@ -154,6 +154,7 @@ extern "C" {
 
 /* Vendor Ids: */
 #define DRM_FORMAT_MOD_NONE           0
+#define DRM_FORMAT_MOD_VENDOR_NONE    0
 #define DRM_FORMAT_MOD_VENDOR_INTEL   0x01
 #define DRM_FORMAT_MOD_VENDOR_AMD     0x02
 #define DRM_FORMAT_MOD_VENDOR_NV      0x03
Signature · 1 line
2.8.0.rc3.226.g39d4020
Signature · 7 lines
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel