[Mesa-dev] [PATCH 047/101] mesa: add KHR_no_error support to glMinSampleShading()

Samuel Pitoiset samuel.pitoiset at gmail.com
Fri Jul 21 17:39:56 UTC 2017


Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
---
 src/mapi/glapi/gen/GL4x.xml | 2 +-
 src/mesa/main/multisample.c | 7 +++++++
 src/mesa/main/multisample.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 53b77896cd..7e8815bece 100644
--- a/src/mapi/glapi/gen/GL4x.xml
+++ b/src/mapi/glapi/gen/GL4x.xml
@@ -9,7 +9,7 @@
   <enum name="SAMPLE_SHADING"                          value="0x8C36"/>
   <enum name="MIN_SAMPLE_SHADING_VALUE"                value="0x8C37"/>
 
-  <function name="MinSampleShading" es2="3.2">
+  <function name="MinSampleShading" es2="3.2" no_error="true">
     <param name="value" type="GLfloat"/>
   </function>
 
diff --git a/src/mesa/main/multisample.c b/src/mesa/main/multisample.c
index 037c8a6a15..78cf7f3332 100644
--- a/src/mesa/main/multisample.c
+++ b/src/mesa/main/multisample.c
@@ -159,6 +159,13 @@ min_sample_shading(struct gl_context *ctx, GLclampf value)
  * Called via glMinSampleShadingARB
  */
 void GLAPIENTRY
+_mesa_MinSampleShading_no_error(GLclampf value)
+{
+   GET_CURRENT_CONTEXT(ctx);
+   min_sample_shading(ctx, value);
+}
+
+void GLAPIENTRY
 _mesa_MinSampleShading(GLclampf value)
 {
    GET_CURRENT_CONTEXT(ctx);
diff --git a/src/mesa/main/multisample.h b/src/mesa/main/multisample.h
index 379afbc574..a7cd2918d7 100644
--- a/src/mesa/main/multisample.h
+++ b/src/mesa/main/multisample.h
@@ -47,6 +47,9 @@ _mesa_SampleMaski_no_error(GLuint index, GLbitfield mask);
 extern void GLAPIENTRY
 _mesa_SampleMaski(GLuint index, GLbitfield mask);
 
+void GLAPIENTRY
+_mesa_MinSampleShading_no_error(GLclampf value);
+
 extern void GLAPIENTRY
 _mesa_MinSampleShading(GLclampf value);
 
-- 
2.13.3



More information about the mesa-dev mailing list