From ea6f960ec888f93eaa92f3d5f545b1f45c14b211 Mon Sep 17 00:00:00 2001 From: Erik Faye-Lund Date: Mon, 10 Jun 2024 11:52:54 +0200 Subject: [PATCH] mesa/main: validate GL_UNSIGNED_INT_10_10_10_2 Reviewed-by: Adam Jackson Part-of: --- src/mesa/main/glformats.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/mesa/main/glformats.c b/src/mesa/main/glformats.c index 2d973782c27..e2f105ad553 100644 --- a/src/mesa/main/glformats.c +++ b/src/mesa/main/glformats.c @@ -1744,6 +1744,10 @@ static bool valid_texture_type_enum(const struct gl_context *ctx, GLenum type) { switch (type) { + case GL_UNSIGNED_INT_10_10_10_2: + /* not supported in GLESv3, unlike GL_UNSIGNED_INT_2_10_10_10_REV */ + return _mesa_is_desktop_gl(ctx); + case GL_UNSIGNED_INT_2_10_10_10_REV: return _mesa_has_texture_type_2_10_10_10_REV(ctx);