From: Dave Airlie Date: Thu, 2 Jul 2020 23:38:44 +0000 (+1000) Subject: mesa/version: only enable GL4.1 with correct limits. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0ca266025ab309d538ed8c804cb46d2945c6a547;p=mesa.git mesa/version: only enable GL4.1 with correct limits. I haven't tested all the limits, but these two should be enough for driver writers to realise. I've also submitted a minmax test for piglit to test this. Reviewed-by: Marek Olšák Part-of: --- diff --git a/src/mesa/main/version.c b/src/mesa/main/version.c index 3517bfe8f64..418d20e5cb2 100644 --- a/src/mesa/main/version.c +++ b/src/mesa/main/version.c @@ -330,6 +330,8 @@ compute_version(const struct gl_extensions *extensions, extensions->ARB_transform_feedback3); const bool ver_4_1 = (ver_4_0 && consts->GLSLVersion >= 410 && + consts->MaxTextureSize >= 16384 && + consts->MaxRenderbufferSize >= 16384 && extensions->ARB_ES2_compatibility && extensions->ARB_shader_precision && extensions->ARB_vertex_attrib_64bit &&