mesa: fix GLES 3.1 version calculation
authorRob Clark <robdclark@gmail.com>
Tue, 19 Jun 2018 12:10:43 +0000 (08:10 -0400)
committerRob Clark <robdclark@gmail.com>
Thu, 21 Jun 2018 12:54:47 +0000 (08:54 -0400)
commitfbd154294f980544ad7e34f6fbdcdc9bc9c108b3
tree8f68f8975f8386c2d34c0ba61b3cf61a40c92fe0
parentcf0c7258ee0524709ab6d05a9aafc7415361bd23
mesa: fix GLES 3.1 version calculation

All of ARB_gpu_shader5 is most certainly not required for GLES 3.1
(most of it is in OES_gpu_shader5 on top of GLES 3.1).

Some of what is required from ARB_gpu_shader5 is provided by
ARB_texture_gather, so check for that.  The remaining subset of
ARB_gpu_shader5 doesn't have individual extensions to check for,
but I guess it is unlikely that some driver has all of these
extensions but not, say, integer bitfield manipulation.

Signed-off-by: Rob Clark <robdclark@gmail.com>
Acked-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/main/version.c