Patch for libdrm: Provide DRM_MODE_FB_DIRTY_MAX_CLIPS

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello Thomas,

please include this patch (also attached as patch-file) to libdrm.

Thank you!
Andreas
------------------------------------------------------------
mailto:lampersperger.andreas@xxxxxxxxxxxxx
tel.: +49 8669 31 1791
------------------------------------------------------------

DR. JOHANNES HEIDENHAIN GmbH
Dr.-Johannes-Heidenhain-Str. 5
83301 Traunreut, Deutschland
http://www.heidenhain.de


   Author: Andreas Lampersperger <Lampersperger.andreas@xxxxxxxxxxxxx>

   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(..)


Index: libdrm-2.4.61/include/drm/drm_mode.h
===================================================================
--- libdrm-2.4.61.orig/include/drm/drm_mode.h
+++ libdrm-2.4.61/include/drm/drm_mode.h
@@ -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

Attachment: provide_fb_dirty_max_clips.patch
Description: provide_fb_dirty_max_clips.patch

_______________________________________________
dri-devel mailing list
dri-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/dri-devel

[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux