[Mesa-dev] [PATCH 2/2] svga: handle TGSI_SEMANTIC_CLIPDIST/VERTEX semantics

Jose Fonseca jfonseca at vmware.com
Tue Apr 3 08:45:05 PDT 2012


Looks good.

Joe

----- Original Message -----
> We can't support these vertex attributes, but don't die in an
> assertion.
> Issue a warning instead.
> 
> Fixes https://bugs.freedesktop.org/show_bug.cgi?id=48142
> ---
>  src/gallium/drivers/svga/svga_tgsi_decl_sm30.c |    7 +++++++
>  1 files changed, 7 insertions(+), 0 deletions(-)
> 
> diff --git a/src/gallium/drivers/svga/svga_tgsi_decl_sm30.c
> b/src/gallium/drivers/svga/svga_tgsi_decl_sm30.c
> index a4e80b5..e9adf3a 100644
> --- a/src/gallium/drivers/svga/svga_tgsi_decl_sm30.c
> +++ b/src/gallium/drivers/svga/svga_tgsi_decl_sm30.c
> @@ -72,6 +72,13 @@ translate_vs_ps_semantic(struct
> svga_shader_emitter *emit,
>        *idx = semantic.Index;
>        *usage = SVGA3D_DECLUSAGE_NORMAL;
>        break;
> +   case TGSI_SEMANTIC_CLIPDIST:
> +   case TGSI_SEMANTIC_CLIPVERTEX:
> +      /* XXX at this time we don't support clip distance or clip
> vertices */
> +      debug_warn_once("unsupported clip distance/vertex
> attribute\n");
> +      *usage = SVGA3D_DECLUSAGE_TEXCOORD;
> +      *idx = 0;
> +      return TRUE;
>     default:
>        assert(0);
>        *usage = SVGA3D_DECLUSAGE_TEXCOORD;
> --
> 1.7.3.4
> 
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev
> 


More information about the mesa-dev mailing list