glsl: Enable textureSize for samplerExternalOES
authorYevhenii Kolesnikov <yevhenii.kolesnikov@globallogic.com>
Mon, 7 Oct 2019 12:59:52 +0000 (15:59 +0300)
committerDanylo Piliaiev <danylo.piliaiev@gmail.com>
Thu, 31 Oct 2019 20:23:56 +0000 (20:23 +0000)
From OES_EGL_image_external_essl3

Closes: https://gitlab.freedesktop.org/mesa/mesa/issues/1901
Signed-off-by: Yevhenii Kolesnikov <yevhenii.kolesnikov@globallogic.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/compiler/glsl/builtin_functions.cpp

index d7473ee4922560ea47aa425f1580dae14c255178..e262a1ec780a9b34544bc68821042d62f0a660de 100644 (file)
@@ -2132,6 +2132,8 @@ builtin_builder::create_builtins()
                 _textureSize(texture_multisample_array, glsl_type::ivec3_type, glsl_type::sampler2DMSArray_type),
                 _textureSize(texture_multisample_array, glsl_type::ivec3_type, glsl_type::isampler2DMSArray_type),
                 _textureSize(texture_multisample_array, glsl_type::ivec3_type, glsl_type::usampler2DMSArray_type),
+
+                _textureSize(texture_external_es3, glsl_type::ivec2_type, glsl_type::samplerExternalOES_type),
                 NULL);
 
    add_function("textureSize1D",