Mesa (19.3): glsl: Enable textureSize for samplerExternalOES

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Nov 27 17:07:32 UTC 2019


Module: Mesa
Branch: 19.3
Commit: 9cd69861f82002f86258998310f00df7f2a4ad82
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=9cd69861f82002f86258998310f00df7f2a4ad82

Author: Yevhenii Kolesnikov <yevhenii.kolesnikov at globallogic.com>
Date:   Mon Oct  7 15:59:52 2019 +0300

glsl: Enable textureSize for samplerExternalOES

>From OES_EGL_image_external_essl3

Closes: https://gitlab.freedesktop.org/mesa/mesa/issues/1901

Signed-off-by: Yevhenii Kolesnikov <yevhenii.kolesnikov at globallogic.com>
Reviewed-by: Marek Olšák <marek.olsak at amd.com>
Acked-by: Alyssa Rosenzweig <alyssa.rosenzweig at collabora.com>

---

 src/compiler/glsl/builtin_functions.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/compiler/glsl/builtin_functions.cpp b/src/compiler/glsl/builtin_functions.cpp
index d7473ee4922..e262a1ec780 100644
--- a/src/compiler/glsl/builtin_functions.cpp
+++ b/src/compiler/glsl/builtin_functions.cpp
@@ -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",




More information about the mesa-commit mailing list