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

Author: Brian Paul <[email protected]>
Date:   Wed Mar 10 15:12:19 2010 -0700

gallivm: remove debug code. nearest minification works now.

---

 src/gallium/auxiliary/gallivm/lp_bld_sample_soa.c |    9 +++------
 1 files changed, 3 insertions(+), 6 deletions(-)

diff --git a/src/gallium/auxiliary/gallivm/lp_bld_sample_soa.c 
b/src/gallium/auxiliary/gallivm/lp_bld_sample_soa.c
index a965d39..f1371d9 100644
--- a/src/gallium/auxiliary/gallivm/lp_bld_sample_soa.c
+++ b/src/gallium/auxiliary/gallivm/lp_bld_sample_soa.c
@@ -794,7 +794,6 @@ lp_build_lod_selector(struct lp_build_sample_context *bld,
 
 {
    const int dims = texture_dims(bld->static_state->target);
-   struct lp_build_context *coord_bld = &bld->coord_bld;
    struct lp_build_context *float_bld = &bld->float_bld;
    LLVMValueRef lod_bias = LLVMConstReal(LLVMFloatType(), 
bld->static_state->lod_bias);
    LLVMValueRef min_lod = LLVMConstReal(LLVMFloatType(), 
bld->static_state->min_lod);
@@ -1021,12 +1020,10 @@ lp_build_sample_2d_nearest_mip_nearest_soa(struct 
lp_build_sample_context *bld,
    lp_build_name(y, "tex.y.wrapped");
 
    /* get pointer to mipmap level [ilevel] data */
-   if (0)
-      data_ptr = lp_build_get_mipmap_level(bld, data_array, ilevel);
-   else
-      data_ptr = lp_build_get_const_mipmap_level(bld, data_array, 0);
+   data_ptr = lp_build_get_mipmap_level(bld, data_array, ilevel);
 
-   lp_build_sample_texel_soa(bld, width_vec, height_vec, x, y, stride, 
data_ptr, texel);
+   lp_build_sample_texel_soa(bld, width_vec, height_vec, x, y,
+                             stride, data_ptr, texel);
 }
 
 

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to