Mesa (master): llvmpipe: avoid compiling no-op block on release builds

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu Oct 24 13:56:49 UTC 2019


Module: Mesa
Branch: master
Commit: abe32f56f576b06e200fffdb923da9c23a2c239b
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=abe32f56f576b06e200fffdb923da9c23a2c239b

Author: Eric Engestrom <eric.engestrom at intel.com>
Date:   Wed Sep 25 08:47:28 2019 +0100

llvmpipe: avoid compiling no-op block on release builds

Suggested-by: Adam Jackson <ajax at redhat.com>
Signed-off-by: Eric Engestrom <eric.engestrom at intel.com>
Reviewed-by: Kristian H. Kristensen <hoegsberg at google.com>

---

 src/gallium/drivers/llvmpipe/lp_rast.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

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
 }
 
 




More information about the mesa-commit mailing list