[Mesa-dev] [PATCH] softpipe: fix stencil write to use an integer value
Dave Airlie
airlied at gmail.com
Wed Apr 22 00:41:16 PDT 2015
From: Dave Airlie <airlied at redhat.com>
This fixes a number of regressions since
61393bdcdc3b63624bf6e9730444f5e9deeedfc8
u_tile: fix stencil texturing tests under softpipe
should fix:
https://bugs.freedesktop.org/show_bug.cgi?id=89960
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;
}
--
2.1.0
More information about the mesa-dev
mailing list