mesa: initialize variables to silence compiler warnings
[mesa.git] / src / mesa / main / texstorage.h
1 /*
2 * Mesa 3-D graphics library
3 *
4 * Copyright (C) 2011 VMware, Inc. All Rights Reserved.
5 *
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:
12 *
13 * The above copyright notice and this permission notice shall be included
14 * in all copies or substantial portions of the Software.
15 *
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.
23 */
24
25
26 #ifndef TEXSTORAGE_H
27 #define TEXSTORAGE_H
28
29 /**
30 * \name Internal functions
31 */
32 /*@{*/
33
34 extern void
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);
40
41 /*@}*/
42
43 /**
44 * \name API functions
45 */
46 /*@{*/
47
48 extern void GLAPIENTRY
49 _mesa_TexStorage1D(GLenum target, GLsizei levels, GLenum internalformat,
50 GLsizei width);
51
52
53 extern void GLAPIENTRY
54 _mesa_TexStorage2D(GLenum target, GLsizei levels, GLenum internalformat,
55 GLsizei width, GLsizei height);
56
57
58 extern void GLAPIENTRY
59 _mesa_TexStorage3D(GLenum target, GLsizei levels, GLenum internalformat,
60 GLsizei width, GLsizei height, GLsizei depth);
61
62 extern void GLAPIENTRY
63 _mesa_TextureStorage1D(GLuint texture, GLsizei levels, GLenum internalformat,
64 GLsizei width);
65
66
67 extern void GLAPIENTRY
68 _mesa_TextureStorage2D(GLuint texture, GLsizei levels, GLenum internalformat,
69 GLsizei width, GLsizei height);
70
71
72 extern void GLAPIENTRY
73 _mesa_TextureStorage3D(GLuint texture, GLsizei levels, GLenum internalformat,
74 GLsizei width, GLsizei height, GLsizei depth);
75
76
77 extern void GLAPIENTRY
78 _mesa_TextureStorage1DEXT(GLuint texture, GLenum target, GLsizei levels,
79 GLenum internalformat,
80 GLsizei width);
81
82 extern void GLAPIENTRY
83 _mesa_TextureStorage2DEXT(GLuint texture, GLenum target, GLsizei levels,
84 GLenum internalformat,
85 GLsizei width, GLsizei height);
86
87 extern void GLAPIENTRY
88 _mesa_TextureStorage3DEXT(GLuint texture, GLenum target, GLsizei levels,
89 GLenum internalformat,
90 GLsizei width, GLsizei height, GLsizei depth);
91
92 extern GLboolean
93 _mesa_is_legal_tex_storage_format(struct gl_context *ctx, GLenum internalformat);
94
95 extern GLboolean
96 _mesa_AllocTextureStorage_sw(struct gl_context *ctx,
97 struct gl_texture_object *texObj,
98 GLsizei levels, GLsizei width,
99 GLsizei height, GLsizei depth);
100
101 #endif /* TEXSTORAGE_H */