mesa: allow BlendBarrier to be used without support for full fb fetch
authorIlia Mirkin <imirkin@alum.mit.edu>
Mon, 2 Jan 2017 04:44:25 +0000 (23:44 -0500)
committerIlia Mirkin <imirkin@alum.mit.edu>
Tue, 17 Jan 2017 02:13:08 +0000 (21:13 -0500)
The extension spec is not currently published, so it's a bit premature
to require it for BlendBarrier usage.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/mesa/main/barrier.c

index 2f5b45157923b88e5b81b086c477b289ec91befe..e55d13cb6b3e79efae630d2c920b6eb45d2d7d5a 100644 (file)
@@ -114,7 +114,8 @@ _mesa_BlendBarrier(void)
 {
    GET_CURRENT_CONTEXT(ctx);
 
-   if (!ctx->Extensions.MESA_shader_framebuffer_fetch_non_coherent) {
+   if (!ctx->Extensions.MESA_shader_framebuffer_fetch_non_coherent &&
+       !ctx->Extensions.KHR_blend_equation_advanced) {
       _mesa_error(ctx, GL_INVALID_OPERATION,
                   "glBlendBarrier(not supported)");
       return;