Skip to contentSkip to conversation

libdrm: Update plane type enum definitions to correspond to kernel change

PATCH In review Dhinakaran Pandiyan 3 participants 3 messages Sep 23, 2016 – Oct 6, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libdrm: Update plane type enum definitions to correspond to kernel change

The positions of primary and overlay plane type enums in the kernel were updated in

drm/doc: Polish for drm_plane.[hc]

So, making the change here as well.

---
 xf86drmMode.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
xf86drmMode.h +3 -3
index 4de7bbb..718b34f 100644
@@ -305,9 +305,9 @@ typedef struct _drmModeConnector {
 	uint32_t *encoders; /**< List of encoder ids */
 } drmModeConnector, *drmModeConnectorPtr;
 
-#define DRM_PLANE_TYPE_OVERLAY 0
-#define DRM_PLANE_TYPE_PRIMARY 1
-#define DRM_PLANE_TYPE_CURSOR  2
+#define DRM_PLANE_TYPE_PRIMARY 0
+#define DRM_PLANE_TYPE_CURSOR  1
+#define DRM_PLANE_TYPE_OVERLAY 2
 
 typedef struct _drmModeObjectProperties {
 	uint32_t count_props;
Signature · 6 lines
2.5.0

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#1 lore raw
Quoted 6 lines · Dhinakaran Pandiyan

The positions of primary and overlay plane type enums in the kernel were updated in

drm/doc: Polish for drm_plane.[hc]

So, making the change here as well.

NAK. That was a regression in the kernel, and fixed in the kernel.

BR,
Jani.

Quoted 24 lines
---
 xf86drmMode.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
xf86drmMode.h +3 -3
index 4de7bbb..718b34f 100644
@@ -305,9 +305,9 @@ typedef struct _drmModeConnector {
 	uint32_t *encoders; /**< List of encoder ids */
 } drmModeConnector, *drmModeConnectorPtr;
 
-#define DRM_PLANE_TYPE_OVERLAY 0
-#define DRM_PLANE_TYPE_PRIMARY 1
-#define DRM_PLANE_TYPE_CURSOR  2
+#define DRM_PLANE_TYPE_PRIMARY 0
+#define DRM_PLANE_TYPE_CURSOR  1
+#define DRM_PLANE_TYPE_OVERLAY 2
 
 typedef struct _drmModeObjectProperties {
 	uint32_t count_props;
Signature · 5 lines
Jani Nikula, Intel Open Source Technology Center
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#2 lore raw
In reply to Dhinakaran Pandiyan

Hi Dhinakaran,

Quoted 7 lines · Dhinakaran Pandiyan

The positions of primary and overlay plane type enums in the kernel were updated in

drm/doc: Polish for drm_plane.[hc]

So, making the change here as well.

Obviously the issue is/has been fixed elsewhere, so just a general comment:

One must _not_ break API/ABI without bumping the library major. Unless you hate your users and you want them to suffer, that is ;-)

Regards,
Emil
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel