Mesa (gallium-mesa-7.4): draw: Fix LIT instruction.

Alan Hourihane alanh at kemper.freedesktop.org
Thu Apr 9 21:24:23 UTC 2009


Module: Mesa
Branch: gallium-mesa-7.4
Commit: 1a06f2163f56130afe340d84f636cbd9c26e3180
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=1a06f2163f56130afe340d84f636cbd9c26e3180

Author: Michal Krol <michal at vmware.com>
Date:   Thu Apr  9 23:17:02 2009 +0200

draw: Fix LIT instruction.

---

 src/gallium/auxiliary/draw/draw_vs_aos_machine.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/gallium/auxiliary/draw/draw_vs_aos_machine.c b/src/gallium/auxiliary/draw/draw_vs_aos_machine.c
index b358bd2..3240e37 100644
--- a/src/gallium/auxiliary/draw/draw_vs_aos_machine.c
+++ b/src/gallium/auxiliary/draw/draw_vs_aos_machine.c
@@ -74,7 +74,7 @@ void PIPE_CDECL aos_do_lit( struct aos_machine *machine,
       {
          result[0] = 1.0F;
          result[1] = in[0];
-         result[2] = 1.0;
+         result[2] = 0.0F;
          result[3] = 1.0F;
       }
       else
@@ -108,7 +108,7 @@ static void PIPE_CDECL do_lit_lut( struct aos_machine *machine,
       {
          result[0] = 1.0F;
          result[1] = in[0];
-         result[2] = 1.0;
+         result[2] = 0.0F;
          result[3] = 1.0F;
          return;
       }




More information about the mesa-commit mailing list