[Mesa-dev] [PATCH] softpipe: draw_find_shader_output returns -1 on invalid outputs

Brian Paul brian.e.paul at gmail.com
Mon Jun 3 08:35:35 PDT 2013


On Thu, May 30, 2013 at 3:03 PM, Zack Rusin <zackr at vmware.com> wrote:

> It was changed from 0 to allow shader outputs at 0 that are
> different from position.
>
> Signed-off-by: Zack Rusin <zackr at vmware.com>
> ---
>  src/gallium/drivers/softpipe/sp_state_derived.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/gallium/drivers/softpipe/sp_state_derived.c
> b/src/gallium/drivers/softpipe/sp_state_derived.c
> index 93cd38e..6115349 100644
> --- a/src/gallium/drivers/softpipe/sp_state_derived.c
> +++ b/src/gallium/drivers/softpipe/sp_state_derived.c
> @@ -127,7 +127,7 @@ softpipe_get_vertex_info(struct softpipe_context
> *softpipe)
>           src = draw_find_shader_output(softpipe->draw,
>                                         fsInfo->input_semantic_name[i],
>                                         fsInfo->input_semantic_index[i]);
> -        if (fsInfo->input_semantic_name[i] == TGSI_SEMANTIC_COLOR && src
> == 0)
> +        if (fsInfo->input_semantic_name[i] == TGSI_SEMANTIC_COLOR && src
> == -1)
>            /* try and find a bcolor */
>            src = draw_find_shader_output(softpipe->draw,
>                                          TGSI_SEMANTIC_BCOLOR,
> fsInfo->input_semantic_index[i]);
>
>
> Reviewed-by: Brian Paul <brianp at vmware.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20130603/37fdc1f1/attachment-0001.html>


More information about the mesa-dev mailing list