From: Samuel Pitoiset Date: Wed, 19 Jul 2017 08:36:17 +0000 (+0200) Subject: mesa: add KHR_no_error support to glMemoryBarrierByRegion() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a43ac5e7c4d29fc9be86af730306e361683f5e08;p=mesa.git mesa: add KHR_no_error support to glMemoryBarrierByRegion() Signed-off-by: Samuel Pitoiset Reviewed-by: Timothy Arceri --- diff --git a/src/mapi/glapi/gen/GL4x.xml b/src/mapi/glapi/gen/GL4x.xml index 7e8815beced..e958ee70c71 100644 --- a/src/mapi/glapi/gen/GL4x.xml +++ b/src/mapi/glapi/gen/GL4x.xml @@ -61,7 +61,7 @@ - + diff --git a/src/mesa/main/barrier.c b/src/mesa/main/barrier.c index 0798d6efad2..5284f28dc02 100644 --- a/src/mesa/main/barrier.c +++ b/src/mesa/main/barrier.c @@ -108,6 +108,13 @@ memory_barrier_by_region(struct gl_context *ctx, GLbitfield barriers, } } +void GLAPIENTRY +_mesa_MemoryBarrierByRegion_no_error(GLbitfield barriers) +{ + GET_CURRENT_CONTEXT(ctx); + memory_barrier_by_region(ctx, barriers, true); +} + void GLAPIENTRY _mesa_MemoryBarrierByRegion(GLbitfield barriers) { diff --git a/src/mesa/main/barrier.h b/src/mesa/main/barrier.h index d54c02af65b..53ecf863f07 100644 --- a/src/mesa/main/barrier.h +++ b/src/mesa/main/barrier.h @@ -44,6 +44,9 @@ _mesa_TextureBarrierNV(void); void GLAPIENTRY _mesa_MemoryBarrier(GLbitfield barriers); +void GLAPIENTRY +_mesa_MemoryBarrierByRegion_no_error(GLbitfield barriers); + void GLAPIENTRY _mesa_MemoryBarrierByRegion(GLbitfield barriers);