diff options
author | Ilia Mirkin <[email protected]> | 2016-02-19 13:20:48 -0500 |
---|---|---|
committer | Ilia Mirkin <[email protected]> | 2016-03-30 22:57:17 -0400 |
commit | 903640c2accb4617afd7036f47cbd14077586394 (patch) | |
tree | 45db30ae730202dc345398fee9b12d59ae2451fb /src/compiler/glsl/builtin_variables.cpp | |
parent | 4fea98991c8f94f14e469d4621eddc5247d4efbd (diff) |
glsl: add gl_MaxSamples, new in GL 4.5 / GL ES 3.2
Signed-off-by: Ilia Mirkin <[email protected]>
Reviewed-by: Dave Airlie <[email protected]>
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/compiler/glsl/builtin_variables.cpp')
-rw-r--r-- | src/compiler/glsl/builtin_variables.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/compiler/glsl/builtin_variables.cpp b/src/compiler/glsl/builtin_variables.cpp index 76a22cee29c..6a772911f76 100644 --- a/src/compiler/glsl/builtin_variables.cpp +++ b/src/compiler/glsl/builtin_variables.cpp @@ -878,6 +878,9 @@ builtin_variable_generator::generate_constants() add_const("gl_MaxTessControlUniformComponents", state->Const.MaxTessControlUniformComponents); add_const("gl_MaxTessEvaluationUniformComponents", state->Const.MaxTessEvaluationUniformComponents); } + + if (state->is_version(450, 320)) + add_const("gl_MaxSamples", state->Const.MaxSamples); } |