Mesa (master): softpipe: fix stencil write to use an integer value

Dave Airlie airlied at kemper.freedesktop.org
Wed Apr 22 22:34:40 UTC 2015


Module: Mesa
Branch: master
Commit: 8a41cd2407c1d219cba98add69609ce3a65b5435
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=8a41cd2407c1d219cba98add69609ce3a65b5435

Author: Dave Airlie <airlied at redhat.com>
Date:   Wed Apr 22 17:13:06 2015 +1000

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 <brianp at vmware.com>
Reviewed-by: Roland Scheidegger <sroland at vmware.com>
Signed-off-by: Dave Airlie <airlied at redhat.com>

---

 src/gallium/drivers/softpipe/sp_fs_exec.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/drivers/softpipe/sp_fs_exec.c b/src/gallium/drivers/softpipe/sp_fs_exec.c
index f3814fd..369ab6e 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;
          }




More information about the mesa-commit mailing list