mesa: add KHR_no_error support to glDepthRangeArrayv
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 17 Jul 2017 19:54:54 +0000 (21:54 +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/ARB_viewport_array.xml
src/mesa/main/viewport.c
src/mesa/main/viewport.h

index 30c4bca3105b5e7108ba481f38390f103561ab4a..2db829b69a6c0a5c8df23a16bdf90e2253c0e50e 100644 (file)
@@ -61,7 +61,7 @@
         <param name="index" type="GLuint"/>
         <param name="v" type="const GLint *" count="4"/>
     </function>
-    <function name="DepthRangeArrayv">
+    <function name="DepthRangeArrayv" no_error="true">
         <param name="first" type="GLuint"/>
         <param name="count" type="GLsizei"/>
         <param name="v" type="const GLclampd *" count="count" count_scale="2"/>
index e1ab03dec39f499041574886822b4439d70e4f79..90c92eadbf639bfa7a3b927df6a0941b00bbc1f0 100644 (file)
@@ -370,6 +370,16 @@ depth_range_arrayv(struct gl_context *ctx, GLuint first, GLsizei count,
       ctx->Driver.DepthRange(ctx);
 }
 
+void GLAPIENTRY
+_mesa_DepthRangeArrayv_no_error(GLuint first, GLsizei count, const GLclampd *v)
+{
+   GET_CURRENT_CONTEXT(ctx);
+
+   const struct gl_depthrange_inputs *const p =
+      (struct gl_depthrange_inputs *)v;
+   depth_range_arrayv(ctx, first, count, p);
+}
+
 void GLAPIENTRY
 _mesa_DepthRangeArrayv(GLuint first, GLsizei count, const GLclampd *v)
 {
index f974da5d6f576d4b50653b839c47441da8527689..5860e4f5dc7538dc2be4fd4e1ab7f5d1bdd54872 100644 (file)
@@ -67,6 +67,10 @@ _mesa_DepthRange(GLclampd nearval, GLclampd farval);
 extern void GLAPIENTRY
 _mesa_DepthRangef(GLclampf nearval, GLclampf farval);
 
+void GLAPIENTRY
+_mesa_DepthRangeArrayv_no_error(GLuint first, GLsizei count,
+                                const GLclampd * v);
+
 extern void GLAPIENTRY
 _mesa_DepthRangeArrayv(GLuint first, GLsizei count, const GLclampd * v);