Mesa (master): mesa: add KHR_no_error support for glCopyTexImage*D()
Timothy Arceri
tarceri at kemper.freedesktop.org
Mon Jun 26 22:27:23 UTC 2017
Module: Mesa
Branch: master
Commit: a00a277da99f426c5820c39264d51381f14b2a86
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=a00a277da99f426c5820c39264d51381f14b2a86
Author: Timothy Arceri <tarceri at itsqueeze.com>
Date: Mon Jun 26 13:27:17 2017 +1000
mesa: add KHR_no_error support for glCopyTexImage*D()
Reviewed-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
---
src/mapi/glapi/gen/gl_API.xml | 4 ++--
src/mesa/main/teximage.c | 20 ++++++++++++++++++++
src/mesa/main/teximage.h | 11 +++++++++++
3 files changed, 33 insertions(+), 2 deletions(-)
diff --git a/src/mapi/glapi/gen/gl_API.xml b/src/mapi/glapi/gen/gl_API.xml
index 9857e39e1f..d878a04ea0 100644
--- a/src/mapi/glapi/gen/gl_API.xml
+++ b/src/mapi/glapi/gen/gl_API.xml
@@ -3254,7 +3254,7 @@
<glx rop="192"/>
</function>
- <function name="CopyTexImage1D">
+ <function name="CopyTexImage1D" no_error="true">
<param name="target" type="GLenum"/>
<param name="level" type="GLint"/>
<param name="internalformat" type="GLenum"/>
@@ -3265,7 +3265,7 @@
<glx rop="4119"/>
</function>
- <function name="CopyTexImage2D" es1="1.0" es2="2.0">
+ <function name="CopyTexImage2D" es1="1.0" es2="2.0" no_error="true">
<param name="target" type="GLenum"/>
<param name="level" type="GLint"/>
<param name="internalformat" type="GLenum"/>
diff --git a/src/mesa/main/teximage.c b/src/mesa/main/teximage.c
index 1093ea033e..36747a7273 100644
--- a/src/mesa/main/teximage.c
+++ b/src/mesa/main/teximage.c
@@ -4007,6 +4007,26 @@ _mesa_CopyTexImage2D( GLenum target, GLint level, GLenum internalFormat,
}
+void GLAPIENTRY
+_mesa_CopyTexImage1D_no_error(GLenum target, GLint level, GLenum internalFormat,
+ GLint x, GLint y, GLsizei width, GLint border)
+{
+ GET_CURRENT_CONTEXT(ctx);
+ copyteximage_no_error(ctx, 1, target, level, internalFormat, x, y, width, 1,
+ border);
+}
+
+
+void GLAPIENTRY
+_mesa_CopyTexImage2D_no_error(GLenum target, GLint level, GLenum internalFormat,
+ GLint x, GLint y, GLsizei width, GLsizei height,
+ GLint border)
+{
+ GET_CURRENT_CONTEXT(ctx);
+ copyteximage_no_error(ctx, 2, target, level, internalFormat,
+ x, y, width, height, border);
+}
+
void GLAPIENTRY
_mesa_CopyTexSubImage1D( GLenum target, GLint level,
diff --git a/src/mesa/main/teximage.h b/src/mesa/main/teximage.h
index c2fd4514d8..04ddbb90e5 100644
--- a/src/mesa/main/teximage.h
+++ b/src/mesa/main/teximage.h
@@ -352,6 +352,17 @@ _mesa_CopyTexImage2D( GLenum target, GLint level,
extern void GLAPIENTRY
+_mesa_CopyTexImage1D_no_error(GLenum target, GLint level, GLenum internalformat,
+ GLint x, GLint y, GLsizei width, GLint border);
+
+
+extern void GLAPIENTRY
+_mesa_CopyTexImage2D_no_error(GLenum target, GLint level, GLenum internalformat,
+ GLint x, GLint y, GLsizei width, GLsizei height,
+ GLint border );
+
+
+extern void GLAPIENTRY
_mesa_CopyTexSubImage1D( GLenum target, GLint level, GLint xoffset,
GLint x, GLint y, GLsizei width );
More information about the mesa-commit
mailing list