95b4b5579c838dac0e0d7cb69d5db767fe4ae1e9
[profile/ivi/mesa.git] / src / mesa / drivers / common / meta.h
1 /*
2  * Mesa 3-D graphics library
3  * Version:  7.6
4  *
5  * Copyright (C) 2009  VMware, Inc.  All Rights Reserved.
6  *
7  * Permission is hereby granted, free of charge, to any person obtaining a
8  * copy of this software and associated documentation files (the "Software"),
9  * to deal in the Software without restriction, including without limitation
10  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
11  * and/or sell copies of the Software, and to permit persons to whom the
12  * Software is furnished to do so, subject to the following conditions:
13  *
14  * The above copyright notice and this permission notice shall be included
15  * in all copies or substantial portions of the Software.
16  *
17  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
18  * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
20  * BRIAN PAUL BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
21  * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
22  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23  */
24
25
26 #ifndef META_H
27 #define META_H
28
29
30 extern void
31 _mesa_meta_init(struct gl_context *ctx);
32
33 extern void
34 _mesa_meta_free(struct gl_context *ctx);
35
36 extern void
37 _mesa_meta_BlitFramebuffer(struct gl_context *ctx,
38                            GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1,
39                            GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1,
40                            GLbitfield mask, GLenum filter);
41
42 extern void
43 _mesa_meta_Clear(struct gl_context *ctx, GLbitfield buffers);
44
45 extern void
46 _mesa_meta_glsl_Clear(struct gl_context *ctx, GLbitfield buffers);
47
48 extern void
49 _mesa_meta_CopyPixels(struct gl_context *ctx, GLint srcx, GLint srcy,
50                       GLsizei width, GLsizei height,
51                       GLint dstx, GLint dsty, GLenum type);
52
53 extern void
54 _mesa_meta_DrawPixels(struct gl_context *ctx,
55                       GLint x, GLint y, GLsizei width, GLsizei height,
56                       GLenum format, GLenum type,
57                       const struct gl_pixelstore_attrib *unpack,
58                       const GLvoid *pixels);
59
60 extern void
61 _mesa_meta_Bitmap(struct gl_context *ctx,
62                   GLint x, GLint y, GLsizei width, GLsizei height,
63                   const struct gl_pixelstore_attrib *unpack,
64                   const GLubyte *bitmap);
65
66 extern GLboolean
67 _mesa_meta_check_generate_mipmap_fallback(struct gl_context *ctx, GLenum target,
68                                           struct gl_texture_object *texObj);
69
70 extern void
71 _mesa_meta_GenerateMipmap(struct gl_context *ctx, GLenum target,
72                           struct gl_texture_object *texObj);
73
74 extern void
75 _mesa_meta_CopyTexSubImage1D(struct gl_context *ctx, GLenum target, GLint level,
76                              GLint xoffset,
77                              GLint x, GLint y, GLsizei width);
78
79 extern void
80 _mesa_meta_CopyTexSubImage2D(struct gl_context *ctx, GLenum target, GLint level,
81                              GLint xoffset, GLint yoffset,
82                              GLint x, GLint y,
83                              GLsizei width, GLsizei height);
84
85 extern void
86 _mesa_meta_CopyTexSubImage3D(struct gl_context *ctx, GLenum target, GLint level,
87                              GLint xoffset, GLint yoffset, GLint zoffset,
88                              GLint x, GLint y,
89                              GLsizei width, GLsizei height);
90
91 extern void
92 _mesa_meta_CopyColorTable(struct gl_context *ctx,
93                           GLenum target, GLenum internalformat,
94                           GLint x, GLint y, GLsizei width);
95
96 extern void
97 _mesa_meta_CopyColorSubTable(struct gl_context *ctx,GLenum target, GLsizei start,
98                              GLint x, GLint y, GLsizei width);
99
100 extern void
101 _mesa_meta_CopyConvolutionFilter1D(struct gl_context *ctx, GLenum target,
102                                    GLenum internalFormat,
103                                    GLint x, GLint y, GLsizei width);
104
105 extern void
106 _mesa_meta_CopyConvolutionFilter2D(struct gl_context *ctx, GLenum target,
107                                    GLenum internalFormat, GLint x, GLint y,
108                                    GLsizei width, GLsizei height);
109
110
111 #endif /* META_H */