Mesa (master): llvmpipe: Remove unsed variables.

Jose Fonseca jrfonseca at kemper.freedesktop.org
Mon Oct 31 19:41:24 UTC 2011


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

Author: José Fonseca <jfonseca at vmware.com>
Date:   Mon Oct 31 19:36:07 2011 +0000

llvmpipe: Remove unsed variables.

---

 src/gallium/auxiliary/gallivm/lp_bld_conv.c       |    4 ----
 src/gallium/auxiliary/gallivm/lp_bld_sample_aos.c |    3 +--
 2 files changed, 1 insertions(+), 6 deletions(-)

diff --git a/src/gallium/auxiliary/gallivm/lp_bld_conv.c b/src/gallium/auxiliary/gallivm/lp_bld_conv.c
index c261d76..8a08663 100644
--- a/src/gallium/auxiliary/gallivm/lp_bld_conv.c
+++ b/src/gallium/auxiliary/gallivm/lp_bld_conv.c
@@ -346,10 +346,8 @@ lp_build_conv(struct gallivm_state *gallivm,
          LLVMValueRef src_int1;
          LLVMValueRef src_int2;
          LLVMValueRef src_int3;
-         LLVMTypeRef int16_vec_type;
          LLVMTypeRef int32_vec_type;
          LLVMTypeRef src_vec_type;
-         LLVMTypeRef dst_vec_type;
          LLVMValueRef const_255f;
          LLVMValueRef a, b, c, d;
 
@@ -362,8 +360,6 @@ lp_build_conv(struct gallivm_state *gallivm,
          int32_type.sign = 1;
 
          src_vec_type   = lp_build_vec_type(gallivm, src_type);
-         dst_vec_type   = lp_build_vec_type(gallivm, dst_type);
-         int16_vec_type = lp_build_vec_type(gallivm, int16_type);
          int32_vec_type = lp_build_vec_type(gallivm, int32_type);
 
          const_255f = lp_build_const_vec(gallivm, src_type, 255.0f);
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_sample_aos.c b/src/gallium/auxiliary/gallivm/lp_bld_sample_aos.c
index 4f16015..b215f38 100644
--- a/src/gallium/auxiliary/gallivm/lp_bld_sample_aos.c
+++ b/src/gallium/auxiliary/gallivm/lp_bld_sample_aos.c
@@ -268,7 +268,7 @@ lp_build_sample_image_nearest(struct lp_build_sample_context *bld,
    const unsigned dims = bld->dims;
    LLVMBuilderRef builder = bld->gallivm->builder;
    struct lp_build_context i32, h16, u8n;
-   LLVMTypeRef i32_vec_type, h16_vec_type, u8n_vec_type;
+   LLVMTypeRef i32_vec_type, u8n_vec_type;
    LLVMValueRef i32_c8;
    LLVMValueRef width_vec, height_vec, depth_vec;
    LLVMValueRef s_ipart, t_ipart = NULL, r_ipart = NULL;
@@ -281,7 +281,6 @@ lp_build_sample_image_nearest(struct lp_build_sample_context *bld,
    lp_build_context_init(&u8n, bld->gallivm, lp_type_unorm(8));
 
    i32_vec_type = lp_build_vec_type(bld->gallivm, i32.type);
-   h16_vec_type = lp_build_vec_type(bld->gallivm, h16.type);
    u8n_vec_type = lp_build_vec_type(bld->gallivm, u8n.type);
 
    lp_build_extract_image_sizes(bld,




More information about the mesa-commit mailing list