From 276166c45b5733137f2e562bd0aca84c8652124b Mon Sep 17 00:00:00 2001 From: Timothy Arceri Date: Mon, 8 May 2017 11:10:58 +1000 Subject: [PATCH] mesa: add KHR_no_error support for FramebufferTexture*D functions Reviewed-by: Eric Anholt --- src/mapi/glapi/gen/ARB_framebuffer_object.xml | 6 ++-- src/mesa/main/fbobject.c | 30 +++++++++++++++++++ src/mesa/main/fbobject.h | 12 ++++++++ 3 files changed, 45 insertions(+), 3 deletions(-) diff --git a/src/mapi/glapi/gen/ARB_framebuffer_object.xml b/src/mapi/glapi/gen/ARB_framebuffer_object.xml index 1573e7e969c..ce5e45d0cc8 100644 --- a/src/mapi/glapi/gen/ARB_framebuffer_object.xml +++ b/src/mapi/glapi/gen/ARB_framebuffer_object.xml @@ -218,7 +218,7 @@ - + @@ -227,7 +227,7 @@ - + @@ -236,7 +236,7 @@ - + diff --git a/src/mesa/main/fbobject.c b/src/mesa/main/fbobject.c index 636cdd84707..afecdad720c 100644 --- a/src/mesa/main/fbobject.c +++ b/src/mesa/main/fbobject.c @@ -3368,6 +3368,16 @@ framebuffer_texture_with_dims(int dims, GLenum target, } +void GLAPIENTRY +_mesa_FramebufferTexture1D_no_error(GLenum target, GLenum attachment, + GLenum textarget, GLuint texture, + GLint level) +{ + framebuffer_texture_with_dims_no_error(target, attachment, textarget, + texture, level, 0); +} + + void GLAPIENTRY _mesa_FramebufferTexture1D(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level) @@ -3377,6 +3387,16 @@ _mesa_FramebufferTexture1D(GLenum target, GLenum attachment, } +void GLAPIENTRY +_mesa_FramebufferTexture2D_no_error(GLenum target, GLenum attachment, + GLenum textarget, GLuint texture, + GLint level) +{ + framebuffer_texture_with_dims_no_error(target, attachment, textarget, + texture, level, 0); +} + + void GLAPIENTRY _mesa_FramebufferTexture2D(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level) @@ -3386,6 +3406,16 @@ _mesa_FramebufferTexture2D(GLenum target, GLenum attachment, } +void GLAPIENTRY +_mesa_FramebufferTexture3D_no_error(GLenum target, GLenum attachment, + GLenum textarget, GLuint texture, + GLint level, GLint layer) +{ + framebuffer_texture_with_dims_no_error(target, attachment, textarget, + texture, level, layer); +} + + void GLAPIENTRY _mesa_FramebufferTexture3D(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, diff --git a/src/mesa/main/fbobject.h b/src/mesa/main/fbobject.h index d0f905e46b0..df1696d17ec 100644 --- a/src/mesa/main/fbobject.h +++ b/src/mesa/main/fbobject.h @@ -215,15 +215,27 @@ _mesa_CheckFramebufferStatus(GLenum target); extern GLenum GLAPIENTRY _mesa_CheckNamedFramebufferStatus(GLuint framebuffer, GLenum target); +extern void GLAPIENTRY +_mesa_FramebufferTexture1D_no_error(GLenum target, GLenum attachment, + GLenum textarget, GLuint texture, + GLint level); extern void GLAPIENTRY _mesa_FramebufferTexture1D(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level); extern void GLAPIENTRY +_mesa_FramebufferTexture2D_no_error(GLenum target, GLenum attachment, + GLenum textarget, GLuint texture, + GLint level); +extern void GLAPIENTRY _mesa_FramebufferTexture2D(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level); extern void GLAPIENTRY +_mesa_FramebufferTexture3D_no_error(GLenum target, GLenum attachment, + GLenum textarget, GLuint texture, + GLint level, GLint layer); +extern void GLAPIENTRY _mesa_FramebufferTexture3D(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint layer); -- 2.30.2