diff options
author | Roland Scheidegger <sroland@vmware.com> | 2013-08-22 03:28:11 +0200 |
---|---|---|
committer | Roland Scheidegger <sroland@vmware.com> | 2013-08-22 19:05:52 +0200 |
commit | 6ff9008544a586da725043677bc9c43e4efde430 (patch) | |
tree | b783fd4dd008308a9dc7530e87aa1afd55e92253 /src/gallium/auxiliary | |
parent | 237cb074cb0efa50633f35e737122471957747b2 (diff) | |
download | external_mesa3d-6ff9008544a586da725043677bc9c43e4efde430.zip external_mesa3d-6ff9008544a586da725043677bc9c43e4efde430.tar.gz external_mesa3d-6ff9008544a586da725043677bc9c43e4efde430.tar.bz2 |
gallivm: (trivial) fix linear aos sampling of 3d compressed formats
block size depth is always 1 even for compressed formats (unless someone
invents true 3d compressed formats at least which we can't represent).
Nearest (and soa) path had it right.
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
Diffstat (limited to 'src/gallium/auxiliary')
-rw-r--r-- | src/gallium/auxiliary/gallivm/lp_bld_sample_aos.c | 4 |
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 2573cec..b9227b5 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, |