projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7743791
)
gallivm: use trunc, not round in lp_build_nearest_mip_level()
author
Brian Paul
<brianp@vmware.com>
Tue, 6 Jul 2010 19:22:54 +0000
(13:22 -0600)
committer
Brian Paul
<brianp@vmware.com>
Tue, 6 Jul 2010 19:22:57 +0000
(13:22 -0600)
Fixes fd.o bug 28036 (piglit fbo-cubemap.c regression)
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 b8c1a7234bc0689feaf8cc5a40be7ece089f9d33..7baf5b6b15e2a91ec322a3b3581b4d37ee1d06a7 100644
(file)
--- a/
src/gallium/auxiliary/gallivm/lp_bld_sample_soa.c
+++ b/
src/gallium/auxiliary/gallivm/lp_bld_sample_soa.c
@@
-961,7
+961,7
@@
lp_build_nearest_mip_level(struct lp_build_sample_context *bld,
bld->builder, unit);
/* convert float lod to integer */
- level = lp_build_i
round
(float_bld, lod);
+ level = lp_build_i
trunc
(float_bld, lod);
/* clamp level to legal range of levels */
*level_out = lp_build_clamp(int_bld, level, zero, last_level);