<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 - applying rotate-90/270 transform properties fails with "Invalid argument" on Skylake"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=98148">98148</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>applying rotate-90/270 transform properties fails with "Invalid argument" on Skylake
          </td>
        </tr>

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

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

        <tr>
          <th>Hardware</th>
          <td>Other
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>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>DRM/Intel
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>intel-gfx-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>carlosg@gnome.org
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>intel-gfx-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>intel-gfx-bugs@lists.freedesktop.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Mutter/gnome-shell on wayland implement output rotation through DRM properties,
this method is preferred over the fallback code that performs output rotation
through an intermediate offscreen framebuffer.

This however seems to fail on Skylake hardware for rotate-90 and rotate-270,
the drmModeObjectSetProperty() call at [1] trying to set the "rotation"
property fails with "Invalid argument" despite the two modes being previously
obtained by parsing the properties at [2].

I filed <a href="https://bugzilla.gnome.org/show_bug.cgi?id=772512">https://bugzilla.gnome.org/show_bug.cgi?id=772512</a> to mutter in order to
handle this more gracefully, there still seems to be something fishy about the
"Invalid argument" errors.

[1]
<a href="https://git.gnome.org/browse/mutter/tree/src/backends/native/meta-monitor-manager-kms.c#n1360">https://git.gnome.org/browse/mutter/tree/src/backends/native/meta-monitor-manager-kms.c#n1360</a>
[2]
<a href="https://git.gnome.org/browse/mutter/tree/src/backends/native/meta-monitor-manager-kms.c#n564">https://git.gnome.org/browse/mutter/tree/src/backends/native/meta-monitor-manager-kms.c#n564</a></pre>
        </div>
      </p>


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

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