[Mesa-dev] [PATCH] softpipe: fix stencil write to use an integer value

Brian Paul brianp at vmware.com
Wed Apr 22 07:09:38 PDT 2015


On 04/22/2015 01:41 AM, Dave Airlie wrote:
> 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;
>            }
>

Reviewed-by: Brian Paul <brianp at vmware.com>



More information about the mesa-dev mailing list