<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Provide DRM_MODE_FB_DIRTY_MAX_CLIPS in drm_mode.h"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=90898">90898</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Provide DRM_MODE_FB_DIRTY_MAX_CLIPS in drm_mode.h
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>DRI
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>XOrg git
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>x86 (IA32)
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux (All)
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>libdrm
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>dri-devel@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>lampersperger.andreas@heidenhain.de
          </td>
        </tr></table>
      <p>
        <div>
        <pre>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(...).</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>