tgsi: partially unbreak sse fragment shaders. more to do.
authorKeith Whitwell <keith@tungstengraphics.com>
Thu, 14 Feb 2008 12:14:46 +0000 (12:14 +0000)
committerKeith Whitwell <keith@tungstengraphics.com>
Thu, 14 Feb 2008 12:14:46 +0000 (12:14 +0000)
src/mesa/pipe/tgsi/exec/tgsi_sse2.c

index 1e56e4afb69c02843d45b8ea83eee056eab4d6af..1d9e9a14ce02c1a971faf259b3bb832afe73d9bd 100755 (executable)
@@ -2169,14 +2169,6 @@ emit_declaration(
       last = decl->u.DeclarationRange.Last;
       mask = decl->Declaration.UsageMask;
 
-      /* Do not touch WPOS.xy */
-      if( first == 0 ) {
-         mask &= ~TGSI_WRITEMASK_XY;
-         if( mask == TGSI_WRITEMASK_NONE ) {
-            first++;
-         }
-      }
-
       for( i = first; i <= last; i++ ) {
          for( j = 0; j < NUM_CHANNELS; j++ ) {
             if( mask & (1 << j) ) {