From: Eric Engestrom Date: Wed, 25 Sep 2019 07:47:28 +0000 (+0100) Subject: llvmpipe: avoid compiling no-op block on release builds X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=abe32f56f576b06e200fffdb923da9c23a2c239b;p=mesa.git llvmpipe: avoid compiling no-op block on release builds Suggested-by: Adam Jackson Signed-off-by: Eric Engestrom Reviewed-by: Kristian H. Kristensen --- diff --git a/src/gallium/drivers/llvmpipe/lp_rast.c b/src/gallium/drivers/llvmpipe/lp_rast.c index a4cb211e14b..d50e92b2b61 100644 --- a/src/gallium/drivers/llvmpipe/lp_rast.c +++ b/src/gallium/drivers/llvmpipe/lp_rast.c @@ -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 }