glsl: couple shader_enums cleanups
authorRob Clark <robclark@freedesktop.org>
Fri, 9 Oct 2015 20:27:45 +0000 (16:27 -0400)
committerRob Clark <robclark@freedesktop.org>
Fri, 16 Oct 2015 23:33:37 +0000 (19:33 -0400)
commit33de998230414bf5603927424ffca85792b176d1
treea65d0db1ec153baf6e3420bf59c47ef43a6259f6
parent698cdbf49207c30bc2ac38e2f16e531dd3a54db3
glsl: couple shader_enums cleanups

Add missing enum to gl_system_value_name() and move VARYING_SLOT_MAX /
FRAG_RESULT_MAX / etc into shader_enums.h as suggested by Emil.

v2: add STATIC_ASSERT()'s

Reported-by: Emil Velikov <emil.l.velikov@gmail.com>
Acked-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Signed-off-by: Rob Clark <robclark@freedesktop.org>
src/glsl/nir/shader_enums.c
src/glsl/nir/shader_enums.h
src/mesa/main/mtypes.h