[Mesa-dev] [PATCH] mesa/st: Pad out _mesa_sysval_to_semantic for new SYSTEM_VALUE_* enums

Ilia Mirkin imirkin at alum.mit.edu
Tue Dec 29 11:30:47 PST 2015


Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>

Thanks for the speedy turnaround!

On Tue, Dec 29, 2015 at 2:17 PM, Kristian Høgsberg <krh at bitplanet.net> wrote:
> From: Kristian Høgsberg Kristensen <krh at bitplanet.net>
>
> GL_ARB_shader_draw_parameters added two new system values.  This gets us
> back to mapping mesa system values to the right TGSI semantics.
>
> Cc: Ilia Mirkin <imirkin at alum.mit.edu>
> ---
>  src/mesa/state_tracker/st_glsl_to_tgsi.cpp | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp
> index 89ad6cd..5a6be08 100644
> --- a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp
> +++ b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp
> @@ -4328,6 +4328,8 @@ const unsigned _mesa_sysval_to_semantic[SYSTEM_VALUE_MAX] = {
>     TGSI_SEMANTIC_INSTANCEID,
>     TGSI_SEMANTIC_VERTEXID_NOBASE,
>     TGSI_SEMANTIC_BASEVERTEX,
> +   0, /* SYSTEM_VALUE_BASE_INSTANCE */
> +   0, /* SYSTEM_VALUE_DRAW_ID */
>
>     /* Geometry shader
>      */
> --
> 2.5.0
>


More information about the mesa-dev mailing list