llvmpipe: Don't force a linear to tiled conversion after rasterization on debug builds.
authorJosé Fonseca <jfonseca@vmware.com>
Thu, 27 May 2010 15:34:20 +0000 (16:34 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Sun, 30 May 2010 15:39:06 +0000 (16:39 +0100)
Only do this if runtime debugging flags to show subtiles/tiles are set.

src/gallium/drivers/llvmpipe/lp_rast.c

index 891a4057dbcf61ba1ce32baa8adeea15473d7a60..5e659a4b00438ac8990b7b43ea938f353813610a 100644 (file)
@@ -569,18 +569,20 @@ outline_subtiles(uint8_t *tile)
 static void
 lp_rast_tile_end(struct lp_rasterizer_task *task)
 {
-#if DEBUG
-   struct lp_rasterizer *rast = task->rast;
-   unsigned buf;
-
-   for (buf = 0; buf < rast->state.nr_cbufs; buf++) {
-      uint8_t *color = lp_rast_get_color_block_pointer(task, buf,
-                                                       task->x, task->y);
-
-      if (LP_DEBUG & DEBUG_SHOW_SUBTILES)
-         outline_subtiles(color);
-      else if (LP_DEBUG & DEBUG_SHOW_TILES)
-         outline_tile(color);
+#ifdef DEBUG
+   if (LP_DEBUG & (DEBUG_SHOW_SUBTILES | DEBUG_SHOW_TILES)) {
+      struct lp_rasterizer *rast = task->rast;
+      unsigned buf;
+
+      for (buf = 0; buf < rast->state.nr_cbufs; buf++) {
+         uint8_t *color = lp_rast_get_color_block_pointer(task, buf,
+                                                          task->x, task->y);
+
+         if (LP_DEBUG & DEBUG_SHOW_SUBTILES)
+            outline_subtiles(color);
+         else if (LP_DEBUG & DEBUG_SHOW_TILES)
+            outline_tile(color);
+      }
    }
 #else
    (void) outline_subtiles;