[Mesa-dev] [PATCH 05/14] mesa: add KHR_no_error support for glLogicOp()

Timothy Arceri tarceri at itsqueeze.com
Wed Jun 28 06:13:43 UTC 2017


---
 src/mapi/glapi/gen/gl_API.xml | 2 +-
 src/mesa/main/blend.c         | 8 ++++++++
 src/mesa/main/blend.h         | 4 ++++
 3 files changed, 13 insertions(+), 1 deletion(-)

diff --git a/src/mapi/glapi/gen/gl_API.xml b/src/mapi/glapi/gen/gl_API.xml
index 4820c7f..9482ab5 100644
--- a/src/mapi/glapi/gen/gl_API.xml
+++ b/src/mapi/glapi/gen/gl_API.xml
@@ -2551,7 +2551,7 @@
         <glx rop="160"/>
     </function>
 
-    <function name="LogicOp" es1="1.0">
+    <function name="LogicOp" es1="1.0" no_error="true">
         <param name="opcode" type="GLenum"/>
         <glx rop="161"/>
     </function>
diff --git a/src/mesa/main/blend.c b/src/mesa/main/blend.c
index 541c248..3fa9678 100644
--- a/src/mesa/main/blend.c
+++ b/src/mesa/main/blend.c
@@ -816,6 +816,14 @@ _mesa_LogicOp( GLenum opcode )
 
 
 void GLAPIENTRY
+_mesa_LogicOp_no_error(GLenum opcode)
+{
+   GET_CURRENT_CONTEXT(ctx);
+   logic_op(ctx, opcode);
+}
+
+
+void GLAPIENTRY
 _mesa_IndexMask( GLuint mask )
 {
    GET_CURRENT_CONTEXT(ctx);
diff --git a/src/mesa/main/blend.h b/src/mesa/main/blend.h
index 675e50d..b0a8cbd 100644
--- a/src/mesa/main/blend.h
+++ b/src/mesa/main/blend.h
@@ -98,6 +98,10 @@ _mesa_LogicOp( GLenum opcode );
 
 
 extern void GLAPIENTRY
+_mesa_LogicOp_no_error(GLenum opcode);
+
+
+extern void GLAPIENTRY
 _mesa_IndexMask( GLuint mask );
 
 extern void GLAPIENTRY
-- 
2.9.4



More information about the mesa-dev mailing list