Mesa (master): mesa: allow BlendBarrier to be used without support for full fb fetch
Ilia Mirkin
imirkin at kemper.freedesktop.org
Tue Jan 17 02:16:08 UTC 2017
Module: Mesa
Branch: master
Commit: 376316e963b6636bb3c3900b3918a197c5e632aa
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=376316e963b6636bb3c3900b3918a197c5e632aa
Author: Ilia Mirkin <imirkin at alum.mit.edu>
Date: Sun Jan 1 23:44:25 2017 -0500
mesa: allow BlendBarrier to be used without support for full fb fetch
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 at alum.mit.edu>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>
---
src/mesa/main/barrier.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/mesa/main/barrier.c b/src/mesa/main/barrier.c
index 2f5b451..e55d13c 100644
--- a/src/mesa/main/barrier.c
+++ b/src/mesa/main/barrier.c
@@ -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;
More information about the mesa-commit
mailing list