llvmpipe: avoid compiling no-op block on release builds
authorEric Engestrom <eric.engestrom@intel.com>
Wed, 25 Sep 2019 07:47:28 +0000 (08:47 +0100)
committerEric Engestrom <eric.engestrom@intel.com>
Thu, 24 Oct 2019 13:54:09 +0000 (14:54 +0100)
Suggested-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>
Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com>
src/gallium/drivers/llvmpipe/lp_rast.c

index a4cb211e14b30e4ab540d3baf62877956fbebacc..d50e92b2b61a01da14da010451f2654dbdcd3566 100644 (file)
@@ -628,7 +628,7 @@ rasterize_bin(struct lp_rasterizer_task *task,
 
    lp_rast_tile_end(task);
 
-
+#ifdef DEBUG
    /* Debug/Perf flags:
     */
    if (bin->head->count == 1) {
@@ -637,6 +637,7 @@ rasterize_bin(struct lp_rasterizer_task *task,
       else if (bin->head->cmd[0] == LP_RAST_OP_SHADE_TILE)
          LP_COUNT(nr_pure_shade_64);
    }
+#endif
 }