diff options
author | Brian Paul <[email protected]> | 2010-01-12 13:01:32 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2010-01-12 13:01:32 -0700 |
commit | 4061ca02dd837950201a9ada462f944ae25deeb5 (patch) | |
tree | 9d76ce5c438a1e08ac68358db8fac9db94b74f62 | |
parent | a32e9b2a2d62d64b9c22c4c7af9e0f009189b0a2 (diff) |
llvmpipe: silence unused var warnings
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_state_fs.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_state_fs.c b/src/gallium/drivers/llvmpipe/lp_state_fs.c index 2db8ab2566d..c6f58018762 100644 --- a/src/gallium/drivers/llvmpipe/lp_state_fs.c +++ b/src/gallium/drivers/llvmpipe/lp_state_fs.c @@ -204,12 +204,15 @@ generate_tri_edge_mask(LLVMBuilderRef builder, LLVMValueRef step1_ptr, /* ivec4 */ LLVMValueRef step2_ptr) /* ivec4 */ { - struct lp_build_flow_context *flow; +#define OPTIMIZE_IN_OUT_TEST 0 +#if OPTIMIZE_IN_OUT_TEST struct lp_build_if_state ifctx; + LLVMValueRef not_draw_all; +#endif + struct lp_build_flow_context *flow; struct lp_type i32_type; LLVMTypeRef i32vec4_type, mask_type; LLVMValueRef c0_vec, c1_vec, c2_vec; - LLVMValueRef not_draw_all; LLVMValueRef in_out_mask; assert(i < 4); @@ -234,7 +237,6 @@ generate_tri_edge_mask(LLVMBuilderRef builder, lp_build_flow_scope_begin(flow); { -#define OPTIMIZE_IN_OUT_TEST 0 #if OPTIMIZE_IN_OUT_TEST /* not_draw_all = (c0 != INT_MIN) */ not_draw_all = LLVMBuildICmp(builder, |