From: Samuel Pitoiset Date: Tue, 18 Jul 2017 08:56:19 +0000 (+0200) Subject: mesa: add KHR_no_error support to glTextureView() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2a4d5dce74ab7138a8e124a28a9eac69a9d96e5d;p=mesa.git mesa: add KHR_no_error support to glTextureView() Signed-off-by: Samuel Pitoiset Reviewed-by: Timothy Arceri --- diff --git a/src/mapi/glapi/gen/ARB_texture_view.xml b/src/mapi/glapi/gen/ARB_texture_view.xml index 4215fc5bd54..0c20ef97d89 100644 --- a/src/mapi/glapi/gen/ARB_texture_view.xml +++ b/src/mapi/glapi/gen/ARB_texture_view.xml @@ -7,7 +7,7 @@ - + diff --git a/src/mesa/main/textureview.c b/src/mesa/main/textureview.c index 165af3c7469..89af068fae8 100644 --- a/src/mesa/main/textureview.c +++ b/src/mesa/main/textureview.c @@ -696,6 +696,24 @@ texture_view(struct gl_context *ctx, struct gl_texture_object *origTexObj, } } +void GLAPIENTRY +_mesa_TextureView_no_error(GLuint texture, GLenum target, GLuint origtexture, + GLenum internalformat, + GLuint minlevel, GLuint numlevels, + GLuint minlayer, GLuint numlayers) +{ + struct gl_texture_object *texObj; + struct gl_texture_object *origTexObj; + + GET_CURRENT_CONTEXT(ctx); + + origTexObj = _mesa_lookup_texture(ctx, origtexture); + texObj = _mesa_lookup_texture(ctx, texture); + + texture_view(ctx, origTexObj, texObj, target, internalformat, minlevel, + numlevels, minlayer, numlayers, true); +} + void GLAPIENTRY _mesa_TextureView(GLuint texture, GLenum target, GLuint origtexture, GLenum internalformat, diff --git a/src/mesa/main/textureview.h b/src/mesa/main/textureview.h index 39b415d8793..e2f18aed017 100644 --- a/src/mesa/main/textureview.h +++ b/src/mesa/main/textureview.h @@ -42,6 +42,12 @@ GLenum _mesa_texture_view_lookup_view_class(const struct gl_context *ctx, GLenum internalformat); +void GLAPIENTRY +_mesa_TextureView_no_error(GLuint texture, GLenum target, GLuint origtexture, + GLenum internalformat, + GLuint minlevel, GLuint numlevels, + GLuint minlayer, GLuint numlayers); + extern void GLAPIENTRY _mesa_TextureView(GLuint texture, GLenum target, GLuint origtexture, GLenum internalformat,