projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f9d7537
)
gallivm: fix incorrect clamp in lp_build_linear_mip_levels()
author
Brian Paul
<brianp@vmware.com>
Mon, 15 Mar 2010 16:31:20 +0000
(10:31 -0600)
committer
Brian Paul
<brianp@vmware.com>
Mon, 15 Mar 2010 16:31:20 +0000
(10:31 -0600)
src/gallium/auxiliary/gallivm/lp_bld_sample_soa.c
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/gallivm/lp_bld_sample_soa.c
b/src/gallium/auxiliary/gallivm/lp_bld_sample_soa.c
index 72018737a85b4cea972c0ff3de12672ced13b3d4..19d78424bce4ae9d2d497999ab1c0bb5a84ae8b4 100644
(file)
--- a/
src/gallium/auxiliary/gallivm/lp_bld_sample_soa.c
+++ b/
src/gallium/auxiliary/gallivm/lp_bld_sample_soa.c
@@
-986,7
+986,7
@@
lp_build_linear_mip_levels(struct lp_build_sample_context *bld,
last_level);
/* compute level 1 and clamp to legal range of levels */
*level1_out = lp_build_add(int_bld, *level0_out, int_bld->one);
- *level1_out = lp_build_min(int_bld, *level1_out,
int_bld->zero
);
+ *level1_out = lp_build_min(int_bld, *level1_out,
last_level
);
*weight_out = lp_build_fract(float_bld, lod);
}