summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/barrier.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/main/barrier.c')
-rw-r--r--src/mesa/main/barrier.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/mesa/main/barrier.c b/src/mesa/main/barrier.c
index 7ae8fc6b0aa..42a5e0f9203 100644
--- a/src/mesa/main/barrier.c
+++ b/src/mesa/main/barrier.c
@@ -108,3 +108,17 @@ _mesa_MemoryBarrierByRegion(GLbitfield barriers)
ctx->Driver.MemoryBarrier(ctx, barriers);
}
}
+
+void GLAPIENTRY
+_mesa_BlendBarrierMESA(void)
+{
+ GET_CURRENT_CONTEXT(ctx);
+
+ if (!ctx->Extensions.MESA_shader_framebuffer_fetch_non_coherent) {
+ _mesa_error(ctx, GL_INVALID_OPERATION,
+ "glBlendBarrier(not supported)");
+ return;
+ }
+
+ ctx->Driver.BlendBarrier(ctx);
+}