diff options
author | Ilia Mirkin <[email protected]> | 2016-08-28 20:03:24 -0400 |
---|---|---|
committer | Ilia Mirkin <[email protected]> | 2016-09-27 00:20:44 -0400 |
commit | 477cc0e085ab01c42ba12c211da8fb505e36297e (patch) | |
tree | 22f7b0f746e15c983e7b8d0c8a497a898131387b /src | |
parent | 67fbaa587359badb94f4bbc8b6a89c5128e46e1b (diff) |
st/mesa: enable ARB_ES3_2_compatibility when enough available
Signed-off-by: Ilia Mirkin <[email protected]>
Acked-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/state_tracker/st_extensions.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_extensions.c b/src/mesa/state_tracker/st_extensions.c index 9b603759003..4f422176ad5 100644 --- a/src/mesa/state_tracker/st_extensions.c +++ b/src/mesa/state_tracker/st_extensions.c @@ -1251,4 +1251,24 @@ void st_init_extensions(struct pipe_screen *screen, extensions->OES_texture_buffer && extensions->OES_texture_cube_map_array && extensions->EXT_texture_sRGB_decode; + + /* Same deal as for ARB_ES3_1_compatibility - this has to be computed + * before overall versions are selected. Also it's actually a subset of ES + * 3.2, since it doesn't require ASTC or advanced blending. + */ + extensions->ARB_ES3_2_compatibility = + extensions->ARB_ES3_1_compatibility && + extensions->KHR_robustness && + extensions->ARB_copy_image && + extensions->ARB_draw_buffers_blend && + extensions->ARB_draw_elements_base_vertex && + extensions->OES_geometry_shader && + extensions->ARB_gpu_shader5 && + extensions->ARB_sample_shading && + extensions->ARB_tessellation_shader && + extensions->ARB_texture_border_clamp && + extensions->OES_texture_buffer && + extensions->ARB_texture_cube_map_array && + extensions->ARB_texture_stencil8 && + extensions->ARB_texture_multisample; } |