Mesa (master): llvmpipe: fix typo in the depth sampling aos code.

Dave Airlie airlied at kemper.freedesktop.org
Sun Nov 6 22:32:34 UTC 2011


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

Author: Dave Airlie <airlied at redhat.com>
Date:   Sun Nov  6 20:55:25 2011 +0000

llvmpipe: fix typo in the depth sampling aos code.

Just found by reading llvmpipe code for no great reason.

Signed-off-by: Dave Airlie <airlied at redhat.com>

---

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

diff --git a/src/gallium/auxiliary/gallivm/lp_bld_sample_aos.c b/src/gallium/auxiliary/gallivm/lp_bld_sample_aos.c
index b215f38..423f290 100644
--- a/src/gallium/auxiliary/gallivm/lp_bld_sample_aos.c
+++ b/src/gallium/auxiliary/gallivm/lp_bld_sample_aos.c
@@ -353,7 +353,7 @@ lp_build_sample_image_nearest(struct lp_build_sample_context *bld,
          lp_build_sample_wrap_nearest_int(bld,
                                           1, /* block length (depth) */
                                           r_ipart, depth_vec, img_stride_vec,
-                                          bld->static_state->pot_height,
+                                          bld->static_state->pot_depth,
                                           bld->static_state->wrap_r,
                                           &z_offset, &z_subcoord);
          offset = lp_build_add(&bld->int_coord_bld, offset, z_offset);




More information about the mesa-commit mailing list