[Bug 94816] Nearest neighbor scaling?

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Apr 4 16:04:01 UTC 2016


https://bugs.freedesktop.org/show_bug.cgi?id=94816

--- Comment #7 from Chris Wilson <chris at chris-wilson.co.uk> ---
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.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/intel-gfx-bugs/attachments/20160404/32d89a5c/attachment.html>


More information about the intel-gfx-bugs mailing list