Mesa (master): mesa/version: only enable GL4.1 with correct limits.

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Mon Jul 6 03:16:31 UTC 2020


Module: Mesa
Branch: master
Commit: 0ca266025ab309d538ed8c804cb46d2945c6a547
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=0ca266025ab309d538ed8c804cb46d2945c6a547

Author: Dave Airlie <airlied at redhat.com>
Date:   Fri Jul  3 09:38:44 2020 +1000

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 <marek.olsak at amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5727>

---

 src/mesa/main/version.c | 2 ++
 1 file changed, 2 insertions(+)

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 &&



More information about the mesa-commit mailing list