[Mesa-dev] [PATCH 050/101] mesa: add KHR_no_error support to glMemoryBarrierByRegion()
Samuel Pitoiset
samuel.pitoiset at gmail.com
Fri Jul 21 17:39:59 UTC 2017
Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
---
src/mapi/glapi/gen/GL4x.xml | 2 +-
src/mesa/main/barrier.c | 7 +++++++
src/mesa/main/barrier.h | 3 +++
3 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/src/mapi/glapi/gen/GL4x.xml b/src/mapi/glapi/gen/GL4x.xml
index 7e8815bece..e958ee70c7 100644
--- a/src/mapi/glapi/gen/GL4x.xml
+++ b/src/mapi/glapi/gen/GL4x.xml
@@ -61,7 +61,7 @@
</category>
<category name="4.5">
- <function name="MemoryBarrierByRegion" es2="3.1">
+ <function name="MemoryBarrierByRegion" es2="3.1" no_error="true">
<param name="barriers" type="GLbitfield"/>
</function>
</category>
diff --git a/src/mesa/main/barrier.c b/src/mesa/main/barrier.c
index 0798d6efad..5284f28dc0 100644
--- a/src/mesa/main/barrier.c
+++ b/src/mesa/main/barrier.c
@@ -109,6 +109,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)
{
GET_CURRENT_CONTEXT(ctx);
diff --git a/src/mesa/main/barrier.h b/src/mesa/main/barrier.h
index d54c02af65..53ecf863f0 100644
--- a/src/mesa/main/barrier.h
+++ b/src/mesa/main/barrier.h
@@ -45,6 +45,9 @@ void GLAPIENTRY
_mesa_MemoryBarrier(GLbitfield barriers);
void GLAPIENTRY
+_mesa_MemoryBarrierByRegion_no_error(GLbitfield barriers);
+
+void GLAPIENTRY
_mesa_MemoryBarrierByRegion(GLbitfield barriers);
void GLAPIENTRY
--
2.13.3
More information about the mesa-dev
mailing list