glsl/mesa: stop duplicating geom and tcs layout values
authorTimothy Arceri <timothy.arceri@collabora.com>
Wed, 22 Jun 2016 02:41:28 +0000 (12:41 +1000)
committerTimothy Arceri <t_arceri@yahoo.com.au>
Thu, 23 Jun 2016 01:01:46 +0000 (11:01 +1000)
commitab99196b6bc5b0170db20db6cc3837ce7642d22a
tree0e37f19fba45438d45cad609ab4b940b0ab6b997
parent24b3be093870a9a77325ac33c8fce97fae143e8e
glsl/mesa: stop duplicating geom and tcs layout values

We already store these in gl_shader and gl_program here we
remove it from gl_shader_program and just use the values
from gl_shader.

This will allow us to keep the shader cache restore code as
simple as it can be while making it somewhat clearer where these
values originate from.

Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
src/compiler/glsl/glsl_to_nir.cpp
src/compiler/glsl/linker.cpp
src/mesa/drivers/dri/i965/brw_tcs.c
src/mesa/main/api_validate.c
src/mesa/main/mtypes.h
src/mesa/main/shaderapi.c
src/mesa/main/shaderobj.c