X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fmesa%2Fmain%2Ftextureview.h;h=39b415d8793f584f3632f143c65086b572d20fa0;hb=291f00fa12a35ad2bcaa8f81309fa06b9cab6802;hp=549a13cd809fda8d0326c4e6a27b6d1d834b36d0;hpb=41b6460e08bf878ec3372937f63bef2a7b63c484;p=mesa.git diff --git a/src/mesa/main/textureview.h b/src/mesa/main/textureview.h index 549a13cd809..39b415d8793 100644 --- a/src/mesa/main/textureview.h +++ b/src/mesa/main/textureview.h @@ -29,11 +29,19 @@ #ifndef TEXTUREVIEW_H #define TEXTUREVIEW_H -GLboolean -_mesa_texture_view_compatible_format(struct gl_context *ctx, +bool +_mesa_texture_view_compatible_format(const struct gl_context *ctx, GLenum origInternalFormat, GLenum newInternalFormat); +/** + * Lookup format view class based on internalformat + * \return VIEW_CLASS if internalformat found in table, false otherwise. + */ +GLenum +_mesa_texture_view_lookup_view_class(const struct gl_context *ctx, + GLenum internalformat); + extern void GLAPIENTRY _mesa_TextureView(GLuint texture, GLenum target, GLuint origtexture, GLenum internalformat, @@ -41,7 +49,8 @@ _mesa_TextureView(GLuint texture, GLenum target, GLuint origtexture, GLuint minlayer, GLuint numlayers); extern void -_mesa_set_texture_view_state(struct gl_context *ctx, struct gl_texture_object *texObj, - GLenum target, GLuint levels); +_mesa_set_texture_view_state(struct gl_context *ctx, + struct gl_texture_object *texObj, + GLenum target, GLuint levels); #endif /* TEXTUREVIEW_H */