mesa: add KHR_no_error support to glMemoryBarrierByRegion()
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 19 Jul 2017 08:36:17 +0000 (10:36 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 31 Jul 2017 11:53:39 +0000 (13:53 +0200)
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/mapi/glapi/gen/GL4x.xml
src/mesa/main/barrier.c
src/mesa/main/barrier.h

index 7e8815becedfd439f088463b313993ae7522f7f3..e958ee70c715d1006d49cd28184b20fba0427fe8 100644 (file)
@@ -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>
index 0798d6efad2b6cd19ec32cdccb9523033322635c..5284f28dc02f8004b7a2f6d7c3995bb46118f6bf 100644 (file)
@@ -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)
 {
index d54c02af65be2bfcb3f5f50cb315a876e288ab5b..53ecf863f0717752f045d018de99520bdc443847 100644 (file)
@@ -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);