summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorRoland Scheidegger <[email protected]>2012-11-28 18:07:27 +0100
committerRoland Scheidegger <[email protected]>2012-11-28 18:07:27 +0100
commit406b76ca3248869f67147c27165dedf6f2bb989f (patch)
treee9313a001529f3e856e3cea4c50e181afa0ca8a8 /src/gallium
parent6e33b55ee16c9885391d3baff33545a5209c0623 (diff)
gallivm: fix multiple lods with different min/mag filter and wide vectors
broken since 529fe420ba6836479619ba42e53665724755fc1c, I forgot some code, only added the comment... Fixes bug 57644.
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/auxiliary/gallivm/lp_bld_sample_soa.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_sample_soa.c b/src/gallium/auxiliary/gallivm/lp_bld_sample_soa.c
index 97a23df4a87..35eb9cd8d08 100644
--- a/src/gallium/auxiliary/gallivm/lp_bld_sample_soa.c
+++ b/src/gallium/auxiliary/gallivm/lp_bld_sample_soa.c
@@ -1155,6 +1155,9 @@ lp_build_sample_general(struct lp_build_sample_context *bld,
* least unless we have explicit lod (and who uses different
* min/mag filter with that?)
*/
+ if (bld->num_lods > 1)
+ lod_ipart = LLVMBuildExtractElement(builder, lod_ipart,
+ lp_build_const_int32(bld->gallivm, 0), "");
/* minify = lod >= 0.0 */
minify = LLVMBuildICmp(builder, LLVMIntSGE,