summaryrefslogtreecommitdiff
path: root/src/sna/sna_trapezoids.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2012-07-16 14:47:03 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2012-07-16 14:49:45 +0100
commit907a2a7c97514d3f7610648ed87c7042a857f786 (patch)
treebdcf316d1d8760372842e18f75652698429143dd /src/sna/sna_trapezoids.c
parent6ce2f40249231f57cf464361ea5329cee1932ccf (diff)
sna/trapezoids: Fix inplace unaligned fills (on gen4)
Reported-by: Sergio Callegari <sergio.callegari@gmail.com> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=52150 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/sna_trapezoids.c')
-rw-r--r--src/sna/sna_trapezoids.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sna/sna_trapezoids.c b/src/sna/sna_trapezoids.c
index 1261e9b8..634423e5 100644
--- a/src/sna/sna_trapezoids.c
+++ b/src/sna/sna_trapezoids.c
@@ -3054,7 +3054,7 @@ lerp32_unaligned_box_row(PixmapPtr scratch, uint32_t color,
DBG(("%s: x=(%d.%d, %d.%d), y=%dx%d, covered=%d\n", __FUNCTION__,
x1, fx1, x2, fx2, y, h, covered));
- if (x2 < x1) {
+ if (x1 < x2) {
if (fx1) {
lerp32_opacity(scratch, color,
x1, 1,