summaryrefslogtreecommitdiff
path: root/src/sna/sna_trapezoids.h
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2014-10-01 10:28:10 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2014-10-01 10:28:51 +0100
commitde7185bbf48ca2f617466b98328d0fdae4df1b44 (patch)
treecfc8fb4a226ce1880ebfbdbcf541bdc1d0280f05 /src/sna/sna_trapezoids.h
parentc6d9303303a5ccb3ec6d072c510c09d6576cb398 (diff)
sna/trapezoids: Fix comparison on right edge of trapezoids
We need to compare the fixed ceiling rather the floor for accuracy. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/sna_trapezoids.h')
-rw-r--r--src/sna/sna_trapezoids.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/sna/sna_trapezoids.h b/src/sna/sna_trapezoids.h
index e8f7f3f4..3cddcfeb 100644
--- a/src/sna/sna_trapezoids.h
+++ b/src/sna/sna_trapezoids.h
@@ -13,6 +13,12 @@
#define NO_IMPRECISE 0
#define NO_PRECISE 0
+#if 0
+#define __DBG DBG
+#else
+#define __DBG(x)
+#endif
+
bool
composite_aligned_boxes(struct sna *sna,
CARD8 op,