mesa: Only require independent blending for GLES 3.2.
authorEric Anholt <eric@anholt.net>
Fri, 19 Jan 2018 00:24:42 +0000 (16:24 -0800)
committerEric Anholt <eric@anholt.net>
Sun, 21 Jan 2018 02:48:00 +0000 (10:48 +0800)
We've been requiring this since GLES 3.0 was introduced, but the GLES 3.2
spec is the one that has "Supporting blending on a per-draw-buffer basis"
in the new features.  V3D 3.3 would require lowering blending to shader
code to implement independent blending.

Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
src/mesa/main/version.c

index 68079f4ebbba10160ad28ee79083674c363bbb50..1fce8fe7ca9cd54ee664629e90213792dd0ba446 100644 (file)
@@ -516,7 +516,6 @@ compute_version_es2(const struct gl_extensions *extensions,
                          extensions->ARB_texture_float &&
                          extensions->ARB_texture_rg &&
                          extensions->ARB_depth_buffer_float &&
-                         extensions->EXT_draw_buffers2 &&
                          /* extensions->ARB_framebuffer_object && */
                          extensions->EXT_framebuffer_sRGB &&
                          extensions->EXT_packed_float &&
@@ -546,6 +545,7 @@ compute_version_es2(const struct gl_extensions *extensions,
                          extensions->ARB_gpu_shader5 &&
                          extensions->EXT_shader_integer_mix);
    const bool ver_3_2 = (ver_3_1 &&
+                         extensions->EXT_draw_buffers2 &&
                          extensions->KHR_blend_equation_advanced &&
                          extensions->KHR_robustness &&
                          extensions->KHR_texture_compression_astc_ldr &&