mesa: verify MaxVertexAttribStride for GLES 3.1
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Wed, 4 Jul 2018 12:45:04 +0000 (14:45 +0200)
committerErik Faye-Lund <erik.faye-lund@collabora.com>
Mon, 9 Jul 2018 15:32:31 +0000 (17:32 +0200)
commitaf6b7bf23662c610e699e4b7fde1526ca1d1624a
tree3f393e149e3dfc90f2ba35a1a782fcc84146ffa4
parent2e64a2f2d1f83c9f0ec6ba31ed92620abf221f86
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 <erik.faye-lund@collabora.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/main/version.c