gallivm: fix copy&paste bug
authorRoland Scheidegger <sroland@vmware.com>
Wed, 22 Sep 2010 15:59:00 +0000 (17:59 +0200)
committerJosé Fonseca <jfonseca@vmware.com>
Sat, 25 Sep 2010 11:19:31 +0000 (12:19 +0100)
looks like pot_depth should be used, not pot_height
(found by accident, not verified)

src/gallium/auxiliary/gallivm/lp_bld_sample_soa.c

index db2a6a0b22b8469c9d96e9a60d1aa22bea363fb7..e3e8548d93ba731164cda00b1b6621923af20ef3 100644 (file)
@@ -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");
       }