llvmpipe: additional comment about float->uint conversion
authorBrian Paul <brianp@vmware.com>
Thu, 3 Dec 2009 18:40:49 +0000 (11:40 -0700)
committerBrian Paul <brianp@vmware.com>
Thu, 3 Dec 2009 18:40:49 +0000 (11:40 -0700)
src/gallium/drivers/llvmpipe/lp_bld_conv.c

index 20c8710214b9408d0b5ac269a303335466b1bc44..1df938529c4f27ae81996c782ffe439406fbab51 100644 (file)
@@ -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;