2 * Mesa 3-D graphics library
4 * Copyright (C) 2011 VMware, Inc. All Rights Reserved.
6 * Permission is hereby granted, free of charge, to any person obtaining a
7 * copy of this software and associated documentation files (the "Software"),
8 * to deal in the Software without restriction, including without limitation
9 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
10 * and/or sell copies of the Software, and to permit persons to whom the
11 * Software is furnished to do so, subject to the following conditions:
13 * The above copyright notice and this permission notice shall be included
14 * in all copies or substantial portions of the Software.
16 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
17 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
19 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
20 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
21 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
22 * OTHER DEALINGS IN THE SOFTWARE.
30 * \name Internal functions
35 _mesa_texture_storage(struct gl_context
*ctx
, GLuint dims
,
36 struct gl_texture_object
*texObj
,
37 GLenum target
, GLsizei levels
,
38 GLenum internalformat
, GLsizei width
,
39 GLsizei height
, GLsizei depth
, bool dsa
);
48 extern void GLAPIENTRY
49 _mesa_TexStorage1D(GLenum target
, GLsizei levels
, GLenum internalformat
,
53 extern void GLAPIENTRY
54 _mesa_TexStorage2D(GLenum target
, GLsizei levels
, GLenum internalformat
,
55 GLsizei width
, GLsizei height
);
58 extern void GLAPIENTRY
59 _mesa_TexStorage3D(GLenum target
, GLsizei levels
, GLenum internalformat
,
60 GLsizei width
, GLsizei height
, GLsizei depth
);
62 extern void GLAPIENTRY
63 _mesa_TextureStorage1D(GLuint texture
, GLsizei levels
, GLenum internalformat
,
67 extern void GLAPIENTRY
68 _mesa_TextureStorage2D(GLuint texture
, GLsizei levels
, GLenum internalformat
,
69 GLsizei width
, GLsizei height
);
72 extern void GLAPIENTRY
73 _mesa_TextureStorage3D(GLuint texture
, GLsizei levels
, GLenum internalformat
,
74 GLsizei width
, GLsizei height
, GLsizei depth
);
77 extern void GLAPIENTRY
78 _mesa_TextureStorage1DEXT(GLuint texture
, GLenum target
, GLsizei levels
,
79 GLenum internalformat
,
82 extern void GLAPIENTRY
83 _mesa_TextureStorage2DEXT(GLuint texture
, GLenum target
, GLsizei levels
,
84 GLenum internalformat
,
85 GLsizei width
, GLsizei height
);
87 extern void GLAPIENTRY
88 _mesa_TextureStorage3DEXT(GLuint texture
, GLenum target
, GLsizei levels
,
89 GLenum internalformat
,
90 GLsizei width
, GLsizei height
, GLsizei depth
);
93 _mesa_is_legal_tex_storage_format(struct gl_context
*ctx
, GLenum internalformat
);
96 _mesa_AllocTextureStorage_sw(struct gl_context
*ctx
,
97 struct gl_texture_object
*texObj
,
98 GLsizei levels
, GLsizei width
,
99 GLsizei height
, GLsizei depth
);
101 #endif /* TEXSTORAGE_H */