OSDN Git Service

glsl: Eliminate the global check in validate_explicit_location
authorIan Romanick <ian.d.romanick@intel.com>
Wed, 25 Sep 2013 18:01:07 +0000 (11:01 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Wed, 30 Oct 2013 20:49:29 +0000 (13:49 -0700)
commit2cb760d9945b30bed027a14c2a9ac20d07d7c5ba
tree6e445d03537e4f841b0c78a76e50b5478d4202f6
parent8f00a77fbc611f472ffda7a8181950519cc71ccb
glsl: Eliminate the global check in validate_explicit_location

Since the separation of ir_var_function_in and ir_var_shader_in (similar
for out), this check is no longer necessary.  Previously, global_scope
was the only way to tell which was which.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Paul Berry <stereotype441@gmail.com>
src/glsl/ast_to_hir.cpp