Mesa (master): gallivm: remove unused src_elem_type variable

Brian Paul brianp at kemper.freedesktop.org
Wed Aug 8 15:39:46 UTC 2012


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

Author: Brian Paul <brianp at vmware.com>
Date:   Wed Aug  8 09:39:36 2012 -0600

gallivm: remove unused src_elem_type variable

Reviewed-by: José Fonseca <jfonseca at vmware.com>

---

 .../auxiliary/gallivm/lp_bld_format_aos_array.c    |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/src/gallium/auxiliary/gallivm/lp_bld_format_aos_array.c b/src/gallium/auxiliary/gallivm/lp_bld_format_aos_array.c
index b8ec379..b163fbc 100644
--- a/src/gallium/auxiliary/gallivm/lp_bld_format_aos_array.c
+++ b/src/gallium/auxiliary/gallivm/lp_bld_format_aos_array.c
@@ -54,7 +54,7 @@ lp_build_fetch_rgba_aos_array(struct gallivm_state *gallivm,
 {
    struct lp_build_context bld;
    LLVMBuilderRef builder = gallivm->builder;
-   LLVMTypeRef src_elem_type, src_vec_type;
+   LLVMTypeRef src_vec_type;
    LLVMValueRef ptr, res = NULL;
    struct lp_type src_type;
 
@@ -68,7 +68,6 @@ lp_build_fetch_rgba_aos_array(struct gallivm_state *gallivm,
 
    assert(src_type.length <= dst_type.length);
 
-   src_elem_type = lp_build_elem_type(gallivm, src_type);
    src_vec_type  = lp_build_vec_type(gallivm,  src_type);
 
    /* Read whole vector from memory, unaligned */




More information about the mesa-commit mailing list