Commit 5b111257 authored by Erik Faye-Lund's avatar Erik Faye-Lund
Browse files

mesa: verify MaxVertexAttribStride for GLES 3.1



The OpenGL 3.1 specification, table Table 20.41 ("Implementation
Dependent Values"), defines the minimum-maximum value for
MAX_VERTEX_ATTRIB_STRIDE to be 2048.

So we shouldn't enable OpenGL ES 3.1 on implementations where this
isn't the case. Let's add a check for this
Signed-off-by: Erik Faye-Lund's avatarErik Faye-Lund <erik.faye-lund@collabora.com>
parent a351845b
......@@ -538,6 +538,7 @@ compute_version_es2(const struct gl_extensions *extensions,
const bool es31_compute_shader =
consts->MaxComputeWorkGroupInvocations >= 128;
const bool ver_3_1 = (ver_3_0 &&
consts->MaxVertexAttribStride >= 2048 &&
extensions->ARB_arrays_of_arrays &&
es31_compute_shader &&
extensions->ARB_draw_indirect &&
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment