glsl/mesa: stop duplicating tes layout values
authorTimothy Arceri <timothy.arceri@collabora.com>
Wed, 22 Jun 2016 02:41:27 +0000 (12:41 +1000)
committerTimothy Arceri <t_arceri@yahoo.com.au>
Thu, 23 Jun 2016 01:01:36 +0000 (11:01 +1000)
commit24b3be093870a9a77325ac33c8fce97fae143e8e
tree6686078dd64c5b63512cb875c7c593d7215c8eb8
parentf3ae370a36c2103ce994865f5c3713377a9d0ae9
glsl/mesa: stop duplicating tes layout values

We already store this 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.

V2: remove unnecessary NULL check

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Iago Toral <itoral@igalia.com>
src/compiler/glsl/linker.cpp
src/mesa/main/api_validate.c
src/mesa/main/mtypes.h
src/mesa/main/shaderapi.c