1f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org/**************************************************************************
2f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org *
3f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org * Copyright 2007 Tungsten Graphics, Inc., Cedar Park, Texas.
4f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org * All Rights Reserved.
5f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org *
6f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org * Permission is hereby granted, free of charge, to any person obtaining a
7f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org * copy of this software and associated documentation files (the
8f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org * "Software"), to deal in the Software without restriction, including
9f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org * without limitation the rights to use, copy, modify, merge, publish,
10f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org * distribute, sub license, and/or sell copies of the Software, and to
11f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org * permit persons to whom the Software is furnished to do so, subject to
12f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org * the following conditions:
13f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org *
14f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org * The above copyright notice and this permission notice (including the
15f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org * next paragraph) shall be included in all copies or substantial portions
16f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org * of the Software.
17f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org *
18f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
19f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
20f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
21f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org * IN NO EVENT SHALL TUNGSTEN GRAPHICS AND/OR ITS SUPPLIERS BE LIABLE FOR
22f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
23f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
24f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
25f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org *
26f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org **************************************************************************/
27f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org
28f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org#ifndef ST_TEXTURE_H
29f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org#define ST_TEXTURE_H
30f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org
31f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org
32f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org#include "pipe/p_context.h"
33f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org#include "util/u_sampler.h"
34f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org
35f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org#include "main/mtypes.h"
36f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org
37f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org
38f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.orgstruct pipe_resource;
39f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org
40f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org
41f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org/**
42f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org * Subclass of gl_texure_image.
43f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org */
44f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.orgstruct st_texture_image
45f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org{
46f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org   struct gl_texture_image base;
47f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org
48f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org   /** Used to store texture data that doesn't fit in the parent
49f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org    * object's mipmap buffer.
50f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org    */
51f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org   GLubyte *TexData;
52f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org
53f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org   /* If stImage->pt != NULL, image data is stored here.
54f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org    * Else if stImage->TexData != NULL, image is stored there.
55f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org    * Else there is no image data.
56f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org    */
57f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org   struct pipe_resource *pt;
58f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org
59f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org   struct pipe_transfer *transfer;
60f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org};
61f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org
62f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org
63f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org/**
64f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org * Subclass of gl_texure_object.
65f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org */
66f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.orgstruct st_texture_object
67f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org{
68f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org   struct gl_texture_object base;       /* The "parent" object */
69f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org
70f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org   /* The texture must include at levels [0..lastLevel] once validated:
71f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org    */
72f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org   GLuint lastLevel;
73f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org
74f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org   /** The size of the level=0 mipmap image.
75f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org    * Note that the number of 1D array layers will be in height0 and the
76f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org    * number of 2D array layers will be in depth0, as in GL.
77f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org    */
78f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org   GLuint width0, height0, depth0;
79f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org
80f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org   /* On validation any active images held in main memory or in other
81f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org    * textures will be copied to this texture and the old storage freed.
82f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org    */
83f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org   struct pipe_resource *pt;
84f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org
85f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org   /* Default sampler view attached to this texture object. Created lazily
86f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org    * on first binding.
87f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org    */
88f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org   struct pipe_sampler_view *sampler_view;
89f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org
90f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org   /* True if there is/was a surface bound to this texture object.  It helps
91f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org    * track whether the texture object is surface based or not.
92f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org    */
93f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org   GLboolean surface_based;
94f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org};
95f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org
96f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org
97f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.orgstatic INLINE struct st_texture_image *
98f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.orgst_texture_image(struct gl_texture_image *img)
99f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org{
100f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org   return (struct st_texture_image *) img;
101f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org}
102f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org
103f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.orgstatic INLINE struct st_texture_object *
104f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.orgst_texture_object(struct gl_texture_object *obj)
105f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org{
106f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org   return (struct st_texture_object *) obj;
107f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org}
108f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org
109f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org
110f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.orgstatic INLINE struct pipe_resource *
111f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.orgst_get_texobj_resource(struct gl_texture_object *texObj)
112f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org{
113f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org   struct st_texture_object *stObj = st_texture_object(texObj);
114f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org   return stObj ? stObj->pt : NULL;
115f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org}
116f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org
117f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org
118f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.orgstatic INLINE struct pipe_resource *
119f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.orgst_get_stobj_resource(struct st_texture_object *stObj)
120f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org{
121f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org   return stObj ? stObj->pt : NULL;
122f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org}
123f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org
124f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org
125f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.orgstatic INLINE struct pipe_sampler_view *
126f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.orgst_create_texture_sampler_view_format(struct pipe_context *pipe,
127f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org                                      struct pipe_resource *texture,
128f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org                                      enum pipe_format format)
129f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org{
130f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org   struct pipe_sampler_view templ;
131f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org
132f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org   u_sampler_view_default_template(&templ, texture, format);
133f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org
134f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org   return pipe->create_sampler_view(pipe, texture, &templ);
135f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org}
136f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org
137f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.orgstatic INLINE struct pipe_sampler_view *
138f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.orgst_create_texture_sampler_view(struct pipe_context *pipe,
139f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org                               struct pipe_resource *texture)
140f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org{
141f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org   return st_create_texture_sampler_view_format(pipe, texture,
142f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org                                                texture->format);
143f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org}
144f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org
145f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org
146f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org
147f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.orgextern struct pipe_resource *
148f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.orgst_texture_create(struct st_context *st,
149f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org                  enum pipe_texture_target target,
150f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org		  enum pipe_format format,
151f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org                  GLuint last_level,
152f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org                  GLuint width0,
153f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org                  GLuint height0,
154f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org                  GLuint depth0,
155f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org                  GLuint layers,
156f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org                  GLuint tex_usage );
157f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org
158f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org
159f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.orgextern void
160f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.orgst_gl_texture_dims_to_pipe_dims(GLenum texture,
161f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org                                GLuint widthIn,
162f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org                                GLuint heightIn,
163f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org                                GLuint depthIn,
164f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org                                GLuint *widthOut,
165f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org                                GLuint *heightOut,
166f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org                                GLuint *depthOut,
167f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org                                GLuint *layersOut);
168f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org
169f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org/* Check if an image fits into an existing texture object.
170f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org */
171f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.orgextern GLboolean
172f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.orgst_texture_match_image(const struct pipe_resource *pt,
173f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org                       const struct gl_texture_image *image);
174f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org
175f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org/* Return a pointer to an image within a texture.  Return image stride as
176f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org * well.
177f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org */
178f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.orgextern GLubyte *
179f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.orgst_texture_image_map(struct st_context *st,
180f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org                     struct st_texture_image *stImage,
181f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org		     GLuint zoffset,
182f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org                     enum pipe_transfer_usage usage,
183f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org                     unsigned x, unsigned y,
184f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org                     unsigned w, unsigned h);
185f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org
186f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.orgextern void
187f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.orgst_texture_image_unmap(struct st_context *st,
188f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org                       struct st_texture_image *stImage);
189f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org
190f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org
191f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org/* Return pointers to each 2d slice within an image.  Indexed by depth
192f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org * value.
193f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org */
194f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.orgextern const GLuint *
195f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.orgst_texture_depth_offsets(struct pipe_resource *pt, GLuint level);
196f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org
197f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org
198f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org/* Upload an image into a texture
199f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org */
200f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.orgextern void
201f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.orgst_texture_image_data(struct st_context *st,
202f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org                      struct pipe_resource *dst,
203f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org                      GLuint face, GLuint level, void *src,
204f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org                      GLuint src_row_pitch, GLuint src_image_pitch);
205f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org
206f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org
207f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org/* Copy an image between two textures
208f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org */
209f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.orgextern void
210f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.orgst_texture_image_copy(struct pipe_context *pipe,
211f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org                      struct pipe_resource *dst, GLuint dstLevel,
212f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org                      struct pipe_resource *src, GLuint srcLevel,
213f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org                      GLuint face);
214f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org
215f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org
216f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.orgextern struct pipe_resource *
217f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.orgst_create_color_map_texture(struct gl_context *ctx);
218f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org
219f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org#endif
220