<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 - Atomically set gamma ramps are not applied until TTY switch"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=107459">107459</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Atomically set gamma ramps are not applied until TTY switch
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>x86-64 (AMD64)
          </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>DRM/AMDgpu
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>sir@cmpwn.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>When atomically setting gamma ramps on AMDGPU (specifically ), the changes
don't take effect until switching to another TTY and back again. Using the
legacy DRM interface works as expected.

To reproduce, build and run the rootston Wayland compositor:

<a href="https://github.com/swaywm/wlroots">https://github.com/swaywm/wlroots</a>

We will shortly be merging this patch for a new gamma control protocol
extension, which you will need to apply if we haven't merged it by the time you
attempt it:

<a href="https://github.com/swaywm/wlroots/pull/1157">https://github.com/swaywm/wlroots/pull/1157</a>

An sample program will be available in the build directory,
./examples/gamma-control, which can adjust gamma. By default this will use the
atomic interface, set WLR_DRM_NO_ATOMIC=1 before starting rootston to use the
legacy interface. Our atomic gamma code is here:

<a href="https://github.com/swaywm/wlroots/blob/master/backend/drm/atomic.c#L199-L230">https://github.com/swaywm/wlroots/blob/master/backend/drm/atomic.c#L199-L230</a></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>