mesa/st: enable ARB_gpu_shader5 if the reported GLSL version >= 400
authorIlia Mirkin <imirkin@alum.mit.edu>
Sun, 10 Aug 2014 00:00:20 +0000 (20:00 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Wed, 13 Aug 2014 13:59:04 +0000 (09:59 -0400)
commit6f1edf3cbf0ce4cb8e95f2d8bd68c9c26d3f840c
treedee5612c6c34e25759c33ad53f194bcd9936edb5
parent52901ec2615761390f5ef97b11516dae330d27d1
mesa/st: enable ARB_gpu_shader5 if the reported GLSL version >= 400

The ARB_gpu_shader5 extension is made up of a lot of small sub-parts.
Instead of adding PIPE_CAP's for each of these, just rely on the GLSL
version reported by the pipe driver. The remaining extensions lend
themselves naturally to being checked through a single CAP.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/state_tracker/st_extensions.c