summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/gallium/auxiliary/gallivm/lp_bld_sample_aos.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_sample_aos.c b/src/gallium/auxiliary/gallivm/lp_bld_sample_aos.c
index 2573cec2d1b..b9227b52fb4 100644
--- a/src/gallium/auxiliary/gallivm/lp_bld_sample_aos.c
+++ b/src/gallium/auxiliary/gallivm/lp_bld_sample_aos.c
@@ -1141,7 +1141,7 @@ lp_build_sample_image_linear(struct lp_build_sample_context *bld,
if (dims >= 3) {
lp_build_sample_wrap_linear_int(bld,
- bld->format_desc->block.height,
+ 1, /* block length (depth) */
r_ipart, &r_fpart, r_float,
depth_vec, z_stride, offsets[2],
bld->static_texture_state->pot_depth,
@@ -1233,7 +1233,7 @@ lp_build_sample_image_linear_afloat(struct lp_build_sample_context *bld,
if (dims >= 3) {
lp_build_sample_wrap_linear_float(bld,
- bld->format_desc->block.height,
+ 1, /* block length (depth) */
r, depth_vec, offsets[2],
bld->static_texture_state->pot_depth,
bld->static_sampler_state->wrap_r,