Patch for libdrm: Provide DRM_MODE_FB_DIRTY_MAX_CLIPS
Subsystems (2)
Hello Thomas,
please include this patch (also attached as patch-file) to libdrm.
Thank you!
Andreas
------------------------------------------------------------
mailto:[email protected]
tel.: +49 8669 31 1791
------------------------------------------------------------
DR. JOHANNES HEIDENHAIN GmbH
Dr.-Johannes-Heidenhain-Str. 5
83301 Traunreut, Deutschland
http://www.heidenhain.de
Author: Andreas Lampersperger <[email protected]>
libdrm: Provide DRM_MODE_FB_DIRTY_MAX_CLIPS
When calling drmModeDirtyFB(..) on linux, it fails when num_clips are more than DRM_MODE_FB_DIRTY_MAX_CLIPS (value: 256). But there is no way to check this for xf86-video-* drivers, because when including drm_mode.h, you get the drm_mode.h from .../include/libdrm/drm_mode.h and not .../include/drm/drm_mode.h.
This commit adds the define DRM_MODE_FB_DIRTY_MAX_CLIPS also to libdrm/drm_mode.h, so applications/drivers linking against libdrm can use it to check the proper use of drmModeDirtyFB(..)
include/drm/drm_mode.h +2 -0
@@ -353,6 +353,8 @@ struct drm_mode_fb_cmd2 {#define DRM_MODE_FB_DIRTY_ANNOTATE_FILL 0x02#define DRM_MODE_FB_DIRTY_FLAGS 0x03 +#define DRM_MODE_FB_DIRTY_MAX_CLIPS 256 +/* * Mark a region of a framebuffer as dirty. *
------------------------------------------------------------------------------------------------------
Registergericht: Traunstein / Registry Court: HRB 275 - Sitz / Head Office: Traunreut Aufsichtsratsvorsitzender / Chairman of Supervisory Board: Rainer Burkhard Geschäftsführung / Management Board: Thomas Sesselmann (Vorsitzender / Chairman), Michael Grimm, Hubert Ermer
E-Mail Haftungsausschluss / E-Mail Disclaimer: http://www.heidenhain.de/disclaimer
include/drm/drm_mode.h +2 -0
@@ -353,6 +353,8 @@ struct drm_mode_fb_cmd2 {#define DRM_MODE_FB_DIRTY_ANNOTATE_FILL 0x02#define DRM_MODE_FB_DIRTY_FLAGS 0x03 +#define DRM_MODE_FB_DIRTY_MAX_CLIPS 256 +/* * Mark a region of a framebuffer as dirty. *
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel