Skip to contentSkip to conversation

Provide DRM_MODE_FB_DIRTY_MAX_CLIPS in drm_mode.h

Bug 90898 [email protected] 1 participant 4 messages Jun 8, 2015 – Dec 12, 2016

lore
Share & tools
lore
#0 lore raw

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: [email protected]
Reporter: [email protected]

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

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#3 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=90898

Emil Velikov <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

         Resolution|---                         |FIXED
             Status|NEW                         |RESOLVED

--- Comment #3 from Emil Velikov <[email protected]> --- Hi Andreas, afaict the define has found its way into the header. Admittedly in a slightly different manner.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

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