st/mesa: only define GLSL 1.4 for compat if driver supports it
authorChristian Gmeiner <christian.gmeiner@gmail.com>
Wed, 16 May 2018 14:02:54 +0000 (16:02 +0200)
committerChristian Gmeiner <christian.gmeiner@gmail.com>
Fri, 18 May 2018 08:46:24 +0000 (10:46 +0200)
commit2eb3f794d90a2a1df7cd933ddeda5a61e671b6f4
tree43618c97fdc20b7d3f7bbb0e5b8e977813cb1ec0
parent48e28ab961f54466c033b087931ee17d502821db
st/mesa: only define GLSL 1.4 for compat if driver supports it

Currently GLSL 1.4 is defined for all gallium drivers even only
GLSL 1.2 is supported as seen on etnaviv.

v1 -> v2:
 - use _min(..) as suggested by Lucas Stach and Michel Dänzer

Fixes: 4560aad780b ("mesa: add GLSLVersionCompat constant")
Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com>
Reviewed-by: Lucas Stach <l.stach@pengutronix.de>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/mesa/state_tracker/st_extensions.c