summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2011-07-02 00:11:21 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2011-07-04 14:45:00 +0100
commitae567b783e5af53f17f49dbf58b9be17fcb53737 (patch)
tree794fb63c200ab8260fd0c90dc5c2c4893e90e6b2
parent98f2e3855d70c02b05e2721a70ebce0c17e44283 (diff)
sna: Finer-grained debugging for trapezoids
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--src/sna/sna_trapezoids.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/sna/sna_trapezoids.c b/src/sna/sna_trapezoids.c
index 536034fd..c6645aa6 100644
--- a/src/sna/sna_trapezoids.c
+++ b/src/sna/sna_trapezoids.c
@@ -46,6 +46,9 @@
#endif
#define NO_ACCEL 0
+#define NO_ALIGNED_BOXES 0
+#define NO_UNALIGNED_BOXES 0
+#define NO_SCAN_CONVERTER 0
#define unlikely(x) x
@@ -1632,6 +1635,9 @@ composite_aligned_boxes(CARD8 op,
Bool ret = true;
int dx, dy, n, num_boxes;
+ if (NO_ALIGNED_BOXES)
+ return false;
+
DBG(("%s\n", __FUNCTION__));
boxes = stack_boxes;
@@ -2071,6 +2077,9 @@ composite_unaligned_boxes(CARD8 op,
int dst_x, dst_y;
int dx, dy, n;
+ if (NO_UNALIGNED_BOXES)
+ return false;
+
DBG(("%s\n", __FUNCTION__));
/* need a span converter to handle overlapping traps */
@@ -2173,6 +2182,9 @@ tor_scan_converter(CARD8 op, PicturePtr src, PicturePtr dst,
int16_t dx, dy;
int n;
+ if (NO_SCAN_CONVERTER)
+ return false;
+
/* XXX strict adhernce to the Reneder specification */
if (dst->polyMode == PolyModePrecise) {
DBG(("%s: fallback -- precise rasterisation requested\n",