summaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker/st_extensions.c
diff options
context:
space:
mode:
authorIlia Mirkin <[email protected]>2016-05-26 23:02:18 -0400
committerIlia Mirkin <[email protected]>2016-05-28 20:58:12 -0400
commit60341ddd5cb8bed72c693b5d1df95ad8bda85d0d (patch)
tree6b55768fb39eda89888d9c322da99fda0da6d7de /src/mesa/state_tracker/st_extensions.c
parent884ac617220e4ac033061bd7313079bf5471cb58 (diff)
st/mesa: expose OES_shader_io_blocks when we have enough for ES 3.1
Signed-off-by: Ilia Mirkin <[email protected]> Reviewed-by: Matt Turner <[email protected]>
Diffstat (limited to 'src/mesa/state_tracker/st_extensions.c')
-rw-r--r--src/mesa/state_tracker/st_extensions.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_extensions.c b/src/mesa/state_tracker/st_extensions.c
index 68e66018feb..d35e19f3f90 100644
--- a/src/mesa/state_tracker/st_extensions.c
+++ b/src/mesa/state_tracker/st_extensions.c
@@ -1203,4 +1203,10 @@ void st_init_extensions(struct pipe_screen *screen,
extensions->ARB_texture_multisample &&
extensions->ARB_gpu_shader5 &&
extensions->EXT_shader_integer_mix;
+
+ /* And if we have enough for ES 3.1, we can also expose
+ * OES_shader_io_blocks, which is only hidden due to the compiler not being
+ * able to version-restrict things.
+ */
+ extensions->OES_shader_io_blocks = extensions->ARB_ES3_1_compatibility;
}