Mesa (master): gallivm: fix copy&paste bug

Jose Fonseca jrfonseca at kemper.freedesktop.org
Sat Sep 25 11:40:50 UTC 2010


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

Author: Roland Scheidegger <sroland at vmware.com>
Date:   Wed Sep 22 17:59:00 2010 +0200

gallivm: fix copy&paste bug

looks like pot_depth should be used, not pot_height
(found by accident, not verified)

---

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

diff --git a/src/gallium/auxiliary/gallivm/lp_bld_sample_soa.c b/src/gallium/auxiliary/gallivm/lp_bld_sample_soa.c
index db2a6a0..e3e8548 100644
--- a/src/gallium/auxiliary/gallivm/lp_bld_sample_soa.c
+++ b/src/gallium/auxiliary/gallivm/lp_bld_sample_soa.c
@@ -605,7 +605,7 @@ lp_build_sample_image_nearest(struct lp_build_sample_context *bld,
 
       if (dims == 3) {
          z = lp_build_sample_wrap_nearest(bld, r, depth_vec,
-                                          bld->static_state->pot_height,
+                                          bld->static_state->pot_depth,
                                           bld->static_state->wrap_r);
          lp_build_name(z, "tex.z.wrapped");
       }




More information about the mesa-commit mailing list