Currently, we always try to create an OpenGL 3.1 context. Some dEQP tests require an OpenGL 3.2 context (specifically, ones that use glGetInteger64v). Let's try to create the highest version context we can, and iterate to lower versions, i.e: https://developer.android.com/guide/topics/graphics/opengl.html#version-check The return code for (*create_gl_context) is a little unclear. This patch assumes NULL is returned on failure. This should work for GLX and EGL. GLX: "On failure glXCreateContextAttribsARB returns NULL and generates an X error with extended error information" https://www.khronos.org/registry/OpenGL/extensions/ARB/GLX_ARB_create_context.txt EGL: "#define EGL_NO_CONTEXT ((EGLContext)0)" https://www.khronos.org/registry/EGL/api/1.1/EGL/egl.h The semantics of rcbs->create_gl_context may be different, though. Fixes: dEQP-GLES3.functional.state_query.integers.max_vertex_output_components_getinteger64 dEQP-GLES3.functional.state_query.integers.max_vertex_output_components_getfloat Signed-off-by: Dave Airlie <airlied@redhat.com>macos/master
parent
488765c82e
commit
fa835b0f88
Loading…
Reference in new issue