<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - xf86-video-intel - Scrambled (text, graphics) of menu and text area in Libreoffice."
   href="https://bugs.freedesktop.org/show_bug.cgi?id=111916#c3">Comment # 3</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - xf86-video-intel - Scrambled (text, graphics) of menu and text area in Libreoffice."
   href="https://bugs.freedesktop.org/show_bug.cgi?id=111916">bug 111916</a>
              from <span class="vcard"><a class="email" href="mailto:chris@chris-wilson.co.uk" title="Chris Wilson <chris@chris-wilson.co.uk>"> <span class="fn">Chris Wilson</span></a>
</span></b>
        <pre>diff --git a/src/sna/sna_io.c b/src/sna/sna_io.c
index d32bd583f..d03280edb 100644
--- a/src/sna/sna_io.c
+++ b/src/sna/sna_io.c
@@ -465,13 +465,9 @@ fallback:
        }

        br13 = 0xcc << 16;
-       switch (cpp) {
-       default:
-       case 4: cmd |= BLT_WRITE_ALPHA | BLT_WRITE_RGB;
-               br13 |= 1 << 25; /* RGB8888 */
-       case 2: br13 |= 1 << 24; /* RGB565 */
-       case 1: break;
-       }
+       br13 |= sna_br13_color_depth(cpp * 4);
+       if (cpp == 4)
+               cmd |= BLT_WRITE_ALPHA | BLT_WRITE_RGB;


This chunk, I guess. That cpp*4 should be cpp*8.</pre>
        </div>
      </p>


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

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