Browse Source

llvmpipe: avoid compiling no-op block on release builds

Suggested-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>
Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com>
tags/19.3-branchpoint
Eric Engestrom 7 years ago
parent
commit
abe32f56f5
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      src/gallium/drivers/llvmpipe/lp_rast.c

+ 2
- 1
src/gallium/drivers/llvmpipe/lp_rast.c View 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
}



Loading…
Cancel
Save