mesa: verify MaxVertexAttribStride for GL 4.4
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Wed, 4 Jul 2018 12:40:25 +0000 (14:40 +0200)
committerErik Faye-Lund <erik.faye-lund@collabora.com>
Mon, 9 Jul 2018 15:32:31 +0000 (17:32 +0200)
commit2e64a2f2d1f83c9f0ec6ba31ed92620abf221f86
tree780ba8b439c37009e5de3075c19c0c7ef6fe8e48
parent747cf468ff41067513b6893e2fcd2b22b18e1c9b
mesa: verify MaxVertexAttribStride for GL 4.4

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

So we shouldn't enable OpenGL 4.4 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