aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2018-08-07 18:32:31 -0400
committerMarek Olšák <[email protected]>2019-04-24 20:45:15 -0400
commite71936a731a93ddfb3325c41a5a9756175020ee9 (patch)
tree0943f1261a82d54a61e850f09aa0a4cbd5dfd304 /src/mesa
parent503f94b43f7bcc47b77aa0ca20416b4f9aa56157 (diff)
st/mesa: expose EXT_gpu_shader4 if GLSL 1.40 is supported
Tested-by: Dieter Nützel <[email protected]> Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/state_tracker/st_extensions.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_extensions.c b/src/mesa/state_tracker/st_extensions.c
index cebc35a76a7..7562213907e 100644
--- a/src/mesa/state_tracker/st_extensions.c
+++ b/src/mesa/state_tracker/st_extensions.c
@@ -1107,6 +1107,13 @@ void st_init_extensions(struct pipe_screen *screen,
}
if (GLSLVersion >= 140) {
+ /* Since GLSL 1.40 has support for all of the features of gpu_shader4,
+ * we can always expose it if the driver can do 140. Supporting
+ * gpu_shader4 on drivers without GLSL 1.40 is left for a future
+ * pipe cap.
+ */
+ extensions->EXT_gpu_shader4 = GL_TRUE;
+
if (screen->get_param(screen, PIPE_CAP_TGSI_ARRAY_COMPONENTS))
extensions->ARB_enhanced_layouts = GL_TRUE;
}