<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Nearest neighbor scaling?"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=94816#c7">Comment # 7</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Nearest neighbor scaling?"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=94816">bug 94816</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/xrandr.c b/xrandr.c
index dcfdde0..4248a62 100644
--- a/xrandr.c
+++ b/xrandr.c
@@ -1303,7 +1303,8 @@ set_output_info (output_t *output, RROutput xid,
XRROutput
Info *output_info)
            output->transform.transform.matrix[0][0] = XDoubleToFixed (sx);
            output->transform.transform.matrix[1][1] = XDoubleToFixed (sy);
            output->transform.transform.matrix[2][2] = XDoubleToFixed (1.0);
-           if (sx != 1 || sy != 1)
+           if (output->transform.transform.matrix[0][0] & 0xffff ||
+               output->transform.transform.matrix[1][1] & 0xffff)
                output->transform.filter = "bilinear";
            else
                output->transform.filter = "nearest";

Should fix xrandr to automatically choose nearest for pixel-exact transforms.</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>