From: Dave Airlie Date: Wed, 22 Apr 2015 07:13:06 +0000 (+1000) Subject: softpipe: fix stencil write to use an integer value X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8a41cd2407c1d219cba98add69609ce3a65b5435;p=mesa.git softpipe: fix stencil write to use an integer value 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 Reviewed-by: Roland Scheidegger Signed-off-by: Dave Airlie --- diff --git a/src/gallium/drivers/softpipe/sp_fs_exec.c b/src/gallium/drivers/softpipe/sp_fs_exec.c index f3814fdc717..369ab6ed8d4 100644 --- a/src/gallium/drivers/softpipe/sp_fs_exec.c +++ b/src/gallium/drivers/softpipe/sp_fs_exec.c @@ -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; }