[Mesa-dev] [PATCH 2/2] st/mesa: fix system value to semantic mapping

Jose Fonseca jfonseca at vmware.com
Mon Nov 14 06:39:54 PST 2011


Looks good to me.

Jose

----- Original Message -----
> Broken by addition of SYSTEM_VALUE_VERTEX_ID in
> 919c53e87a1f6f5322bc1f1486bb3e6b954b00d5.
> ---
>  src/mesa/state_tracker/st_glsl_to_tgsi.cpp |    1 +
>  src/mesa/state_tracker/st_mesa_to_tgsi.c   |    1 +
>  2 files changed, 2 insertions(+), 0 deletions(-)
> 
> diff --git a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp
> b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp
> index b133164..005577e 100644
> --- a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp
> +++ b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp
> @@ -4015,6 +4015,7 @@ struct st_translate {
>  /** Map Mesa's SYSTEM_VALUE_x to TGSI_SEMANTIC_x */
>  static unsigned mesa_sysval_to_semantic[SYSTEM_VALUE_MAX] = {
>     TGSI_SEMANTIC_FACE,
> +   TGSI_SEMANTIC_VERTEXID,
>     TGSI_SEMANTIC_INSTANCEID
>  };
>  
> diff --git a/src/mesa/state_tracker/st_mesa_to_tgsi.c
> b/src/mesa/state_tracker/st_mesa_to_tgsi.c
> index 27ebb1a..ac61534 100644
> --- a/src/mesa/state_tracker/st_mesa_to_tgsi.c
> +++ b/src/mesa/state_tracker/st_mesa_to_tgsi.c
> @@ -108,6 +108,7 @@ struct st_translate {
>  /** Map Mesa's SYSTEM_VALUE_x to TGSI_SEMANTIC_x */
>  static unsigned mesa_sysval_to_semantic[SYSTEM_VALUE_MAX] = {
>     TGSI_SEMANTIC_FACE,
> +   TGSI_SEMANTIC_VERTEXID,
>     TGSI_SEMANTIC_INSTANCEID
>  };
>  
> --
> 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