[Piglit] [PATCH 04/12] arb_internalformat_query2: GetTexLevelParameter requires desktop gl or gles 3.1

Alejandro PiƱeiro apinheiro at igalia.com
Fri May 13 15:26:05 UTC 2016


We were using GetTexLevelParameter in order to compare the values
returned by the size and type pnames. But this method is not available on
gles 2.0/3.0. On those cases we can't make the comparison, so we just
return.

Acked-by: Eduardo Lima <elima at igalia.com>
Acked-by: Antia Puentes <apuentes at igalia.com>
---
 tests/spec/arb_internalformat_query2/common.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/tests/spec/arb_internalformat_query2/common.c b/tests/spec/arb_internalformat_query2/common.c
index 0e8e15d..0bb159e 100644
--- a/tests/spec/arb_internalformat_query2/common.c
+++ b/tests/spec/arb_internalformat_query2/common.c
@@ -597,6 +597,12 @@ test_data_check_against_get_tex_level_parameter(test_data *data,
         GLuint buffer;
         GLenum real_target = target;
 
+        /* GetTexLevelParameter became available on gl es 3.1. So we
+         * can't use it for gl es 2.0/3.0. On those cases we just
+         * return so the whole check can go on. */
+        if (piglit_is_gles() && piglit_get_gl_version() < 31)
+                return true;
+
         result = create_texture(target, internalformat, &tex, &buffer);
         if (!result)
                 return test_data_is_unsupported_response(data, pname);
-- 
2.7.4



More information about the Piglit mailing list