diff options
author | Yevhenii Kolesnikov <[email protected]> | 2019-10-07 15:59:52 +0300 |
---|---|---|
committer | Danylo Piliaiev <[email protected]> | 2019-10-31 20:23:56 +0000 |
commit | 265e4d943245cab6fa30da7632cf31aba5c3c791 (patch) | |
tree | 9452249d63e5dd9c0aace594c1008e8cd20cf68d | |
parent | c9df92bf795af878c38538c85f781291c78ec513 (diff) |
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 <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
-rw-r--r-- | src/compiler/glsl/builtin_functions.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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", |