diff options
author | Erik Faye-Lund <[email protected]> | 2018-07-04 14:45:04 +0200 |
---|---|---|
committer | Erik Faye-Lund <[email protected]> | 2018-07-09 17:32:31 +0200 |
commit | af6b7bf23662c610e699e4b7fde1526ca1d1624a (patch) | |
tree | 3f393e149e3dfc90f2ba35a1a782fcc84146ffa4 /src/mesa/main | |
parent | 2e64a2f2d1f83c9f0ec6ba31ed92620abf221f86 (diff) |
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 <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/mesa/main')
-rw-r--r-- | src/mesa/main/version.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/main/version.c b/src/mesa/main/version.c index 0b0d5b79d63..58e68b47721 100644 --- a/src/mesa/main/version.c +++ b/src/mesa/main/version.c @@ -530,6 +530,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 && |