softpipe: fix stencil write to use an integer value
authorDave Airlie <airlied@redhat.com>
Wed, 22 Apr 2015 07:13:06 +0000 (17:13 +1000)
committerDave Airlie <airlied@redhat.com>
Wed, 22 Apr 2015 22:32:30 +0000 (08:32 +1000)
This fixes a number of regressions since
61393bdcdc3b63624bf6e9730444f5e9deeedfc8
u_tile: fix stencil texturing tests under softpipe

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=89960
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/gallium/drivers/softpipe/sp_fs_exec.c

index f3814fdc71785b1620fafa8c066f8d66ddc36251..369ab6ed8d40988cedd2149b67851558486e91ed 100644 (file)
@@ -164,7 +164,7 @@ exec_run( const struct sp_fragment_shader_variant *var,
                uint j;
 
                for (j = 0; j < 4; j++)
-                  quad->output.stencil[j] = (unsigned)machine->Outputs[i].xyzw[1].f[j];
+                  quad->output.stencil[j] = (unsigned)machine->Outputs[i].xyzw[1].u[j];
             }
             break;
          }