From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 90898] Provide DRM_MODE_FB_DIRTY_MAX_CLIPS in drm_mode.h Date: Mon, 08 Jun 2015 21:36:59 +0000 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1905967650==" Return-path: Received: from culpepper.freedesktop.org (unknown [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 17AD66E374 for ; Mon, 8 Jun 2015 07:37:00 -0700 (PDT) List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============1905967650== Content-Type: multipart/alternative; boundary="1433774219.8FCd0b280.23480"; charset="UTF-8" --1433774219.8FCd0b280.23480 Date: Mon, 8 Jun 2015 07:36:59 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" https://bugs.freedesktop.org/show_bug.cgi?id=90898 Bug ID: 90898 Summary: Provide DRM_MODE_FB_DIRTY_MAX_CLIPS in drm_mode.h Product: DRI Version: XOrg git Hardware: x86 (IA32) OS: Linux (All) Status: NEW Severity: normal Priority: medium Component: libdrm Assignee: dri-devel@lists.freedesktop.org Reporter: lampersperger.andreas@heidenhain.de 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 /usr/include/libdrm/drm_mode.h and not /usr/include/drm/drm_mode.h. Please add #define DRM_MODE_FB_DIRTY_MAX_CLIPS 256 to your drm_mode.h, to allow xf86-video-* drivers to check parameters before calling drmModeDirtyFB(...). -- You are receiving this mail because: You are the assignee for the bug. --1433774219.8FCd0b280.23480 Date: Mon, 8 Jun 2015 07:36:59 -0700 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8"
Bug ID 90898
Summary Provide DRM_MODE_FB_DIRTY_MAX_CLIPS in drm_mode.h
Product DRI
Version XOrg git
Hardware x86 (IA32)
OS Linux (All)
Status NEW
Severity normal
Priority medium
Component libdrm
Assignee dri-devel@lists.freedesktop.org
Reporter lampersperger.andreas@heidenhain.de

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 /usr/include/libdrm/drm_mode.h and not /usr/include/drm/drm_mode.h.

Please add

#define DRM_MODE_FB_DIRTY_MAX_CLIPS 256 

to your drm_mode.h, to allow xf86-video-* drivers to check parameters before
calling drmModeDirtyFB(...).


You are receiving this mail because:
  • You are the assignee for the bug.
--1433774219.8FCd0b280.23480-- --===============1905967650== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHA6Ly9saXN0 cy5mcmVlZGVza3RvcC5vcmcvbWFpbG1hbi9saXN0aW5mby9kcmktZGV2ZWwK --===============1905967650==--