summaryrefslogtreecommitdiffstats
path: root/src/glsl/builtins/tools
diff options
context:
space:
mode:
Diffstat (limited to 'src/glsl/builtins/tools')
-rwxr-xr-xsrc/glsl/builtins/tools/generate_builtins.py1
-rwxr-xr-xsrc/glsl/builtins/tools/texture_builtins.py7
2 files changed, 8 insertions, 0 deletions
diff --git a/src/glsl/builtins/tools/generate_builtins.py b/src/glsl/builtins/tools/generate_builtins.py
index b8c12bc3659..72d12bb2a9a 100755
--- a/src/glsl/builtins/tools/generate_builtins.py
+++ b/src/glsl/builtins/tools/generate_builtins.py
@@ -164,6 +164,7 @@ read_builtins(GLenum target, const char *protos, const char **functions, unsigne
st->symbols->language_version = 130;
st->ARB_texture_rectangle_enable = true;
st->EXT_texture_array_enable = true;
+ st->OES_EGL_image_external_enable = true;
_mesa_glsl_initialize_types(st);
sh->ir = new(sh) exec_list;
diff --git a/src/glsl/builtins/tools/texture_builtins.py b/src/glsl/builtins/tools/texture_builtins.py
index 7e569bf562b..62bad70ca26 100755
--- a/src/glsl/builtins/tools/texture_builtins.py
+++ b/src/glsl/builtins/tools/texture_builtins.py
@@ -23,6 +23,8 @@ def get_sampler_dim(sampler_type):
sampler_dim = int(sampler_type[0])
elif sampler_type.startswith("Cube"):
sampler_dim = 3
+ elif sampler_type == "ExternalOES":
+ sampler_dim = 2
else:
assert False ("coord_dim: invalid sampler_type: " + sampler_type)
return sampler_dim
@@ -480,6 +482,8 @@ def generate_texture_functions(fs):
start_function("texture2D")
generate_sigs("", "tex", "2D")
generate_sigs("", "txb", "2D")
+ # OES_EGL_image_external
+ generate_sigs("", "tex", "ExternalOES")
end_function(fs, "texture2D")
start_function("texture2DLod")
@@ -491,6 +495,9 @@ def generate_texture_functions(fs):
generate_sigs("", "tex", "2D", Proj, 1)
generate_sigs("", "txb", "2D", Proj)
generate_sigs("", "txb", "2D", Proj, 1)
+ # OES_EGL_image_external
+ generate_sigs("", "tex", "ExternalOES", Proj)
+ generate_sigs("", "tex", "ExternalOES", Proj, 1)
end_function(fs, "texture2DProj")
start_function("texture2DProjLod")