summaryrefslogtreecommitdiffstats
path: root/src/compiler/glsl/builtin_functions.cpp
diff options
context:
space:
mode:
authorIlia Mirkin <imirkin@alum.mit.edu>2016-02-19 14:03:39 -0500
committerIlia Mirkin <imirkin@alum.mit.edu>2016-04-03 18:01:15 -0400
commit9abbc4971264233a4b4f9ec6ddb88d0dc4c9a25e (patch)
treed30ea428bd93f0c8b9462fa2c74b5130aecbf55f /src/compiler/glsl/builtin_functions.cpp
parent1708e24f654706565633c4deacf83f7422e5b2a7 (diff)
downloadexternal_mesa3d-9abbc4971264233a4b4f9ec6ddb88d0dc4c9a25e.zip
external_mesa3d-9abbc4971264233a4b4f9ec6ddb88d0dc4c9a25e.tar.gz
external_mesa3d-9abbc4971264233a4b4f9ec6ddb88d0dc4c9a25e.tar.bz2
glsl: add ARB_ES3_1_compatibility support
Oddly a bunch of the features it adds are actually from ESSL 3.20. But the spec is quite clear, oh well. Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Reviewed-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'src/compiler/glsl/builtin_functions.cpp')
-rw-r--r--src/compiler/glsl/builtin_functions.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/compiler/glsl/builtin_functions.cpp b/src/compiler/glsl/builtin_functions.cpp
index 65309fd..1f6fb22 100644
--- a/src/compiler/glsl/builtin_functions.cpp
+++ b/src/compiler/glsl/builtin_functions.cpp
@@ -210,6 +210,7 @@ static bool
shader_integer_mix(const _mesa_glsl_parse_state *state)
{
return state->is_version(450, 310) ||
+ state->ARB_ES3_1_compatibility_enable ||
(v130(state) && state->EXT_shader_integer_mix_enable);
}
@@ -478,6 +479,7 @@ static bool
shader_image_atomic_exchange_float(const _mesa_glsl_parse_state *state)
{
return (state->is_version(450, 320) ||
+ state->ARB_ES3_1_compatibility_enable ||
state->OES_shader_image_atomic_enable);
}