st/mesa: enable GL_ANDROID_extension_pack_es31a when available
authorIlia Mirkin <imirkin@alum.mit.edu>
Sun, 28 Aug 2016 19:55:44 +0000 (15:55 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Tue, 27 Sep 2016 04:20:41 +0000 (00:20 -0400)
For now that's never since advanced blend hasn't been piped through.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Acked-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/state_tracker/st_extensions.c

index ef17aba321edf4377e8c0f0d274fde20f2e7f43a..9b603759003a699faceee089fcb8420ee2643cfa 100644 (file)
@@ -1233,4 +1233,22 @@ void st_init_extensions(struct pipe_screen *screen,
 
    extensions->OES_primitive_bounding_box = extensions->ARB_ES3_1_compatibility;
    consts->NoPrimitiveBoundingBoxOutput = true;
+
+   extensions->ANDROID_extension_pack_es31a =
+      extensions->KHR_texture_compression_astc_ldr &&
+      extensions->KHR_blend_equation_advanced &&
+      extensions->OES_sample_variables &&
+      extensions->ARB_shader_image_load_store &&
+      extensions->ARB_texture_stencil8 &&
+      extensions->ARB_texture_multisample &&
+      extensions->OES_copy_image &&
+      extensions->ARB_draw_buffers_blend &&
+      extensions->OES_geometry_shader &&
+      extensions->ARB_gpu_shader5 &&
+      extensions->OES_primitive_bounding_box &&
+      extensions->ARB_tessellation_shader &&
+      extensions->ARB_texture_border_clamp &&
+      extensions->OES_texture_buffer &&
+      extensions->OES_texture_cube_map_array &&
+      extensions->EXT_texture_sRGB_decode;
 }