llvmpipe: Remove unsed variables.
authorJosé Fonseca <jfonseca@vmware.com>
Mon, 31 Oct 2011 19:36:07 +0000 (19:36 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Mon, 31 Oct 2011 19:40:54 +0000 (19:40 +0000)
src/gallium/auxiliary/gallivm/lp_bld_conv.c
src/gallium/auxiliary/gallivm/lp_bld_sample_aos.c

index c261d761161c2cea1bfeb99dc2d91d158b958839..8a0866312499151ec7995300e4386fdfab41ac97 100644 (file)
@@ -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);
index 4f16015996846d974b08643aa65523f682c54c6c..b215f3806f4e47ce7798230c9ed7e030f9f29032 100644 (file)
@@ -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,