libdrm: Update plane type enum definitions to correspond to kernel change
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
@@ -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
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
Cc Daniel Vetter <[email protected]>Signed-off-by Dhinakaran Pandiyan <[email protected]>--- xf86drmMode.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)xf86drmMode.h +3
-3@@ -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
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