Mesa (master): gallivm: Do not do mipfiltering when magnifying.

Jose Fonseca jrfonseca at kemper.freedesktop.org
Fri Oct 8 13:07:10 UTC 2010


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

Author: José Fonseca <jfonseca at vmware.com>
Date:   Fri Oct  8 10:54:23 2010 +0100

gallivm: Do not do mipfiltering when magnifying.

If lod < 0, then invariably follows that ilevel0 == ilevel1 == 0.

---

 src/gallium/auxiliary/gallivm/lp_bld_sample_aos.c |   16 ++++++++--------
 src/gallium/auxiliary/gallivm/lp_bld_sample_soa.c |   16 ++++++++--------
 2 files changed, 16 insertions(+), 16 deletions(-)

diff --git a/src/gallium/auxiliary/gallivm/lp_bld_sample_aos.c b/src/gallium/auxiliary/gallivm/lp_bld_sample_aos.c
index 8a55681..d42b5f6 100644
--- a/src/gallium/auxiliary/gallivm/lp_bld_sample_aos.c
+++ b/src/gallium/auxiliary/gallivm/lp_bld_sample_aos.c
@@ -1071,14 +1071,14 @@ lp_build_sample_aos(struct lp_build_sample_context *bld,
       lp_build_else(&if_ctx);
       {
          /* Use the magnification filter */
-         lp_build_sample_mipmap(bld, mag_filter, mip_filter,
-                                s, t, r, lod_fpart,
-                                width0_vec, width1_vec,
-                                height0_vec, height1_vec,
-                                depth0_vec, depth1_vec,
-                                row_stride0_vec, row_stride1_vec,
-                                img_stride0_vec, img_stride1_vec,
-                                data_ptr0, data_ptr1,
+         lp_build_sample_mipmap(bld, mag_filter, PIPE_TEX_MIPFILTER_NONE,
+                                s, t, r, NULL,
+                                width_vec, NULL,
+                                height_vec, NULL,
+                                depth_vec, NULL,
+                                row_stride0_vec, NULL,
+                                img_stride0_vec, NULL,
+                                data_ptr0, NULL,
                                 &packed_lo, &packed_hi);
       }
       lp_build_endif(&if_ctx);
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_sample_soa.c b/src/gallium/auxiliary/gallivm/lp_bld_sample_soa.c
index 74362ab..c7947f0 100644
--- a/src/gallium/auxiliary/gallivm/lp_bld_sample_soa.c
+++ b/src/gallium/auxiliary/gallivm/lp_bld_sample_soa.c
@@ -1044,14 +1044,14 @@ lp_build_sample_general(struct lp_build_sample_context *bld,
       {
          /* Use the magnification filter */
          lp_build_sample_mipmap(bld, unit,
-                                mag_filter, mip_filter,
-                                s, t, r, lod_fpart,
-                                width0_vec, width1_vec,
-                                height0_vec, height1_vec,
-                                depth0_vec, depth1_vec,
-                                row_stride0_vec, row_stride1_vec,
-                                img_stride0_vec, img_stride1_vec,
-                                data_ptr0, data_ptr1,
+                                mag_filter, PIPE_TEX_MIPFILTER_NONE,
+                                s, t, r, NULL,
+                                width_vec, NULL,
+                                height_vec, NULL,
+                                depth_vec, NULL,
+                                row_stride0_vec, NULL,
+                                img_stride0_vec, NULL,
+                                data_ptr0, NULL,
                                 colors_out);
       }
       lp_build_endif(&if_ctx);




More information about the mesa-commit mailing list