From: Ilia Mirkin Date: Sun, 28 Aug 2016 19:04:00 +0000 (-0400) Subject: glsl: expose max atomic counter/buffer consts for tess in ES 3.2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=64a69059ce2a506fd9d230a2494485cf8e13f163;p=mesa.git 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 Reviewed-by: Ian Romanick --- diff --git a/src/compiler/glsl/builtin_variables.cpp b/src/compiler/glsl/builtin_variables.cpp index 90278d635c6..f47daab868d 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",