diff options
author | Ilia Mirkin <[email protected]> | 2016-05-23 23:00:45 -0400 |
---|---|---|
committer | Ilia Mirkin <[email protected]> | 2016-05-23 23:47:11 -0400 |
commit | 856587909c3fa508529a659d789f4517080ee4dc (patch) | |
tree | 22ca708430960558aca3e96613edf3cc49c03049 /src | |
parent | 5878254545f2b0207f47e581789e88fc0ab5c531 (diff) |
st/mesa: enable ARB_ES3_1_compatibility when ES 3.1 would be exposed
Signed-off-by: Ilia Mirkin <[email protected]>
Reviewed-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/state_tracker/st_extensions.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_extensions.c b/src/mesa/state_tracker/st_extensions.c index 1d5175b83f4..68e66018feb 100644 --- a/src/mesa/state_tracker/st_extensions.c +++ b/src/mesa/state_tracker/st_extensions.c @@ -1181,4 +1181,26 @@ void st_init_extensions(struct pipe_screen *screen, extensions->ARB_shader_atomic_counters; } } + + /* If we support ES 3.1, we support the ES3_1_compatibility ext. However + * there's no clean way of telling whether we would support ES 3.1 from + * here, so copy the condition from compute_version_es2 here. A lot of + * these are redunant, but simpler to just have a (near-)exact copy here. + */ + extensions->ARB_ES3_1_compatibility = + extensions->ARB_ES3_compatibility && + extensions->ARB_arrays_of_arrays && + extensions->ARB_compute_shader && + extensions->ARB_draw_indirect && + extensions->ARB_explicit_uniform_location && + extensions->ARB_framebuffer_no_attachments && + extensions->ARB_shader_atomic_counters && + extensions->ARB_shader_image_load_store && + extensions->ARB_shader_image_size && + extensions->ARB_shader_storage_buffer_object && + extensions->ARB_shading_language_packing && + extensions->ARB_stencil_texturing && + extensions->ARB_texture_multisample && + extensions->ARB_gpu_shader5 && + extensions->EXT_shader_integer_mix; } |