diff options
author | Ilia Mirkin <imirkin@alum.mit.edu> | 2016-08-28 15:04:00 -0400 |
---|---|---|
committer | Ilia Mirkin <imirkin@alum.mit.edu> | 2016-09-03 00:26:36 -0400 |
commit | 64a69059ce2a506fd9d230a2494485cf8e13f163 (patch) | |
tree | 043929eb8cc2b1bc5c3980ea1ad26ca9b1d965bf /src/compiler | |
parent | 8122e30aec95596397b11a3fe619f9e13dc3d2cc (diff) | |
download | external_mesa3d-64a69059ce2a506fd9d230a2494485cf8e13f163.zip external_mesa3d-64a69059ce2a506fd9d230a2494485cf8e13f163.tar.gz external_mesa3d-64a69059ce2a506fd9d230a2494485cf8e13f163.tar.bz2 |
glsl: expose max atomic counter/buffer consts for tess in ES 3.2
Curiously OES/EXT_tessellation_shader leave these out, while ES 3.2 adds
them in.
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Diffstat (limited to 'src/compiler')
-rw-r--r-- | src/compiler/glsl/builtin_variables.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler/glsl/builtin_variables.cpp b/src/compiler/glsl/builtin_variables.cpp index 90278d6..f47daab 100644 --- a/src/compiler/glsl/builtin_variables.cpp +++ b/src/compiler/glsl/builtin_variables.cpp @@ -759,7 +759,7 @@ builtin_variable_generator::generate_constants() add_const("gl_MaxGeometryAtomicCounters", state->Const.MaxGeometryAtomicCounters); } - if (!state->es_shader) { + if (state->is_version(110, 320)) { add_const("gl_MaxTessControlAtomicCounters", state->Const.MaxTessControlAtomicCounters); add_const("gl_MaxTessEvaluationAtomicCounters", @@ -781,7 +781,7 @@ builtin_variable_generator::generate_constants() add_const("gl_MaxGeometryAtomicCounterBuffers", state->Const.MaxGeometryAtomicCounterBuffers); } - if (!state->es_shader) { + if (state->is_version(110, 320)) { add_const("gl_MaxTessControlAtomicCounterBuffers", state->Const.MaxTessControlAtomicCounterBuffers); add_const("gl_MaxTessEvaluationAtomicCounterBuffers", |