From 2c770a8dce29ceda1ed285d3e9b5dca011f13e5d Mon Sep 17 00:00:00 2001 From: Icenowy Zheng Date: Sat, 27 Dec 2025 09:06:41 +0800 Subject: [PATCH] mesa: workaround GL_INVALID_OPERATION in GLES 2.0 draws Mesa internally converts some draw calls to DrawArraysInstancedBaseInstance or DrawElementsInstancedBaseVertexBaseInstance, which are only available in GLES contexts via GL_EXT_base_instance, a GLES3-only extension. Export these two functions into the internal namespace for GLES 2.0 contexts too. This fixes black screen for `glmark2-es2 -b build:use-vbo=false` (which is the first test item for glmark2 auto test sequence) on GLES 2 HW / GLES 3 HW with MESA_GLES_VERSION_OVERRIDE=2.0 . Fixes: 7c1f8b63ad5a ("glthread: work around GL_INVALID_OPERATION with OpenGL ES 1.x draws") Signed-off-by: Icenowy Zheng Part-of: --- src/mesa/glapi/glapi/gen/gl_API.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mesa/glapi/glapi/gen/gl_API.xml b/src/mesa/glapi/glapi/gen/gl_API.xml index 533c5205fa5..7f90cbd9ea9 100644 --- a/src/mesa/glapi/glapi/gen/gl_API.xml +++ b/src/mesa/glapi/glapi/gen/gl_API.xml @@ -10989,7 +10989,7 @@ - @@ -10998,7 +10998,7 @@ -