<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 - GM204/modesetting DDX: Odd corruption (red backgrounds) introduced by Mesa"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=106294">106294</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>GM204/modesetting DDX: Odd corruption (red backgrounds) introduced by Mesa
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Mesa
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>git
          </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>Drivers/DRI/nouveau
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>nouveau@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>freedesktop-bugs@theblob.org
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>nouveau@lists.freedesktop.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>I apologise if I have selected the wrong product for this bug, as I think I
probably have. If I need to open a new bug, please let me know.

I use an NVidia GeForce GTX 970, with kernel version 4.15.4-gentoo and the
modesetting driver in Xorg. (More detailed descriptions of packages installed
at the bottom of this description.)

My distribution (Gentoo) has packages for Mesa 17.2.8, 17.3.8, and a few other
higher versions (currently marked as unstable). When I use Mesa 17.3.8 or
higher, I see odd types of corruption involving red backgrounds on menus and
widgets, and some checkboxes appear unticked when they should be ticked. I
recorded this behaviour using OBS:

* Incorrect behaviour on 17.3.8 and higher:
    <a href="https://www.youtube.com/watch?v=puSC7a_osw0">https://www.youtube.com/watch?v=puSC7a_osw0</a>

* Expected behaviour on 17.2.8:
    <a href="https://www.youtube.com/watch?v=LbjCoIX4DKE">https://www.youtube.com/watch?v=LbjCoIX4DKE</a>

I dug out git and have confirmed that the bug still exists as of commit
<a href="https://cgit.freedesktop.org/mesa/mesa/commit/?id=8b7358fe4376aecee0c29ea622f88f9ef07e6b11">https://cgit.freedesktop.org/mesa/mesa/commit/?id=8b7358fe4376aecee0c29ea622f88f9ef07e6b11</a>
(the latest commit on master as of an hour ago or so).

After bisection, I discovered that the bug was introduced by
<a href="https://cgit.freedesktop.org/mesa/mesa/commit/?id=fcbb93e860246375d03f280f927f79d3645a8988">https://cgit.freedesktop.org/mesa/mesa/commit/?id=fcbb93e860246375d03f280f927f79d3645a8988</a>
, which is actually *before* the 17.2.x branchpoint. It turns out that this
commit was reverted in the 17.2.x branch in commit
<a href="https://cgit.freedesktop.org/mesa/mesa/commit/?id=17a3e4891bf4fa09785fe9d22db5c79a949004db">https://cgit.freedesktop.org/mesa/mesa/commit/?id=17a3e4891bf4fa09785fe9d22db5c79a949004db</a>
to fix <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - [G33] ES2-CTS.functional.shaders.struct.uniform.sampler_nested* regression"
   href="show_bug.cgi?id=101983">bug #101983</a>. This was not committed to the 'master' branch, as the fixes
in master apparently would have been rather invasive. This explains why my
tests of 17.2.8 worked fine.

This issue only appears when using the "modesetting" DDX drivers. When using
the "nouveau" DDX drivers, the issue does not appear. (The "nouveau" DDX
drivers also fix other issues for me so I'll probably switch to using that from
now on for normal use, but I'm willing to switch back to help debug this issue
if needed.)

System summary:

I have the following graphics card, as shown by lspci -nn:
<span class="quote">> 01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GM204 [GeForce GTX 970] [10de:13c2] (rev a1)</span >

I am running Gentoo Linux with the sys-kernel/gentoo-sources-4.15.4 kernel,
with the following (relevant) packages installed:

* x11-base/xorg-server-1.19.5-r1
* x11-base/xorg-drivers-1.19 (with VIDEO_CARDS="nouveau")

In my kernel configuration, CONFIG_DRM_NOUVEAU is set to "m".

Please let me know if you need any more information.</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>