projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e01fa1e
)
llvmpipe: additional comment about float->uint conversion
author
Brian Paul
<brianp@vmware.com>
Thu, 3 Dec 2009 18:40:49 +0000
(11:40 -0700)
committer
Brian Paul
<brianp@vmware.com>
Thu, 3 Dec 2009 18:40:49 +0000
(11:40 -0700)
src/gallium/drivers/llvmpipe/lp_bld_conv.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/llvmpipe/lp_bld_conv.c
b/src/gallium/drivers/llvmpipe/lp_bld_conv.c
index 20c8710214b9408d0b5ac269a303335466b1bc44..1df938529c4f27ae81996c782ffe439406fbab51 100644
(file)
--- a/
src/gallium/drivers/llvmpipe/lp_bld_conv.c
+++ b/
src/gallium/drivers/llvmpipe/lp_bld_conv.c
@@
-124,6
+124,10
@@
lp_build_clamped_float_to_unsigned_norm(LLVMBuilderRef builder,
res = LLVMBuildShl(builder, res, lp_build_int_const_scalar(src_type, shift), "");
/* TODO: Fill in the empty lower bits for additional precision? */
+ /* YES: this fixes progs/trivial/tri-z-eq.c.
+ * Otherwise vertex Z=1.0 values get converted to something like
+ * 0xfffffb00 and the test for equality with 0xffffffff fails.
+ */
#if 0
{
LLVMValueRef msb;