diff options
author | Timothy Arceri <[email protected]> | 2016-06-22 12:41:28 +1000 |
---|---|---|
committer | Timothy Arceri <[email protected]> | 2016-06-23 11:01:46 +1000 |
commit | ab99196b6bc5b0170db20db6cc3837ce7642d22a (patch) | |
tree | 0e37f19fba45438d45cad609ab4b940b0ab6b997 /src/compiler/glsl/glsl_to_nir.cpp | |
parent | 24b3be093870a9a77325ac33c8fce97fae143e8e (diff) |
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 <[email protected]>
Diffstat (limited to 'src/compiler/glsl/glsl_to_nir.cpp')
-rw-r--r-- | src/compiler/glsl/glsl_to_nir.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/glsl/glsl_to_nir.cpp b/src/compiler/glsl/glsl_to_nir.cpp index daf237eee6b..16d0c1d54d2 100644 --- a/src/compiler/glsl/glsl_to_nir.cpp +++ b/src/compiler/glsl/glsl_to_nir.cpp @@ -166,7 +166,7 @@ glsl_to_nir(const struct gl_shader_program *shader_prog, switch (stage) { case MESA_SHADER_TESS_CTRL: - shader->info.tcs.vertices_out = shader_prog->TessCtrl.VerticesOut; + shader->info.tcs.vertices_out = sh->TessCtrl.VerticesOut; break; case MESA_SHADER_GEOMETRY: |