diff options
author | Chris Forbes <[email protected]> | 2013-11-29 21:26:10 +1300 |
---|---|---|
committer | Chris Forbes <[email protected]> | 2013-12-07 17:14:58 +1300 |
commit | 51c5fc85e11858b11cf2a3c89ff8052fbc67faab (patch) | |
tree | cdeccbdd94495f94a7977488c908932615d10a9d /src/glsl/linker.cpp | |
parent | 51aa15aca2bf5764b8cd62bbf2329eda40f7a859 (diff) |
glsl: Add ir support for `sample` qualifier; adjust compiler and linker
Signed-off-by: Chris Forbes <[email protected]>
Reviewed-by: Francisco Jerez <[email protected]>
Diffstat (limited to 'src/glsl/linker.cpp')
-rw-r--r-- | src/glsl/linker.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/glsl/linker.cpp b/src/glsl/linker.cpp index 21c1bdd10f1..9e8eca5cc9e 100644 --- a/src/glsl/linker.cpp +++ b/src/glsl/linker.cpp @@ -765,6 +765,12 @@ cross_validate_globals(struct gl_shader_program *prog, mode_string(var), var->name); return; } + if (existing->sample != var->sample) { + linker_error(prog, "declarations for %s `%s` have " + "mismatching sample qualifiers\n", + mode_string(var), var->name); + return; + } } else variables.add_variable(var); } |