diff options
author | Ilia Mirkin <[email protected]> | 2014-08-09 20:00:20 -0400 |
---|---|---|
committer | Ilia Mirkin <[email protected]> | 2014-08-13 09:59:04 -0400 |
commit | 6f1edf3cbf0ce4cb8e95f2d8bd68c9c26d3f840c (patch) | |
tree | dee5612c6c34e25759c33ad53f194bcd9936edb5 /src | |
parent | 52901ec2615761390f5ef97b11516dae330d27d1 (diff) |
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 <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/state_tracker/st_extensions.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_extensions.c b/src/mesa/state_tracker/st_extensions.c index 22c15628947..eace3218a3f 100644 --- a/src/mesa/state_tracker/st_extensions.c +++ b/src/mesa/state_tracker/st_extensions.c @@ -657,6 +657,9 @@ void st_init_extensions(struct pipe_screen *screen, consts->ForceGLSLVersion = options->force_glsl_version; } + if (glsl_feature_level >= 400) + extensions->ARB_gpu_shader5 = GL_TRUE; + /* This extension needs full OpenGL 3.2, but we don't know if that's * supported at this point. Only check the GLSL version. */ if (consts->GLSLVersion >= 150 && |