OSDN Git Service

glsl: Enable textureSize for samplerExternalOES
authorYevhenii Kolesnikov <yevhenii.kolesnikov@globallogic.com>
Mon, 7 Oct 2019 12:59:52 +0000 (15:59 +0300)
committerDylan Baker <dylan@pnwbakers.com>
Wed, 27 Nov 2019 00:43:04 +0000 (16:43 -0800)
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>
Acked-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
src/compiler/glsl/builtin_functions.cpp

index d7473ee..e262a1e 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",