<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_ASSIGNED "
   title="ASSIGNED - gbm creates BO with wrong pitch when dri3_get_modifiers returns modifiers, causing drmModeAddFB2WithModifiers to fail"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=111306#c5">Comment # 5</a>
              on <a class="bz_bug_link 
          bz_status_ASSIGNED "
   title="ASSIGNED - gbm creates BO with wrong pitch when dri3_get_modifiers returns modifiers, causing drmModeAddFB2WithModifiers to fail"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=111306">bug 111306</a>
              from <span class="vcard"><a class="email" href="mailto:lionel.g.landwerlin@linux.intel.com" title="Lionel Landwerlin <lionel.g.landwerlin@linux.intel.com>"> <span class="fn">Lionel Landwerlin</span></a>
</span></b>
        <pre>Meeeeh... 

Looking at this I wonder how anything actually works.

The first issue is that i965 doesn't appear to look at the GBM_BO_USE_SCANOUT
flag in usage to compute the alignment restrictions of its surface.
So if I get this right you should get the same issue without using modifiers.
And we just happen to have things working by chance...

Second I see a fundamental issue with the GBM api.
The API doesn't let you specify a usage together with modifiers, but these are
2 sets of restrictions.
It's perfectly legal to create compressed surfaces which alignment's properties
don't match display requirements.

Fixing the first issue is trivial.
Not that easy with the second one.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the QA Contact for the bug.</li>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>