158edb0683db45c449b219988a8715cf8fd69e42dBrian/**************************************************************************
258edb0683db45c449b219988a8715cf8fd69e42dBrian *
358edb0683db45c449b219988a8715cf8fd69e42dBrian * Copyright 2007 Tungsten Graphics, Inc., Cedar Park, Texas.
458edb0683db45c449b219988a8715cf8fd69e42dBrian * All Rights Reserved.
558edb0683db45c449b219988a8715cf8fd69e42dBrian *
658edb0683db45c449b219988a8715cf8fd69e42dBrian * Permission is hereby granted, free of charge, to any person obtaining a
758edb0683db45c449b219988a8715cf8fd69e42dBrian * copy of this software and associated documentation files (the
858edb0683db45c449b219988a8715cf8fd69e42dBrian * "Software"), to deal in the Software without restriction, including
958edb0683db45c449b219988a8715cf8fd69e42dBrian * without limitation the rights to use, copy, modify, merge, publish,
1058edb0683db45c449b219988a8715cf8fd69e42dBrian * distribute, sub license, and/or sell copies of the Software, and to
1158edb0683db45c449b219988a8715cf8fd69e42dBrian * permit persons to whom the Software is furnished to do so, subject to
1258edb0683db45c449b219988a8715cf8fd69e42dBrian * the following conditions:
1358edb0683db45c449b219988a8715cf8fd69e42dBrian *
1458edb0683db45c449b219988a8715cf8fd69e42dBrian * The above copyright notice and this permission notice (including the
1558edb0683db45c449b219988a8715cf8fd69e42dBrian * next paragraph) shall be included in all copies or substantial portions
1658edb0683db45c449b219988a8715cf8fd69e42dBrian * of the Software.
1758edb0683db45c449b219988a8715cf8fd69e42dBrian *
1858edb0683db45c449b219988a8715cf8fd69e42dBrian * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
1958edb0683db45c449b219988a8715cf8fd69e42dBrian * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
2058edb0683db45c449b219988a8715cf8fd69e42dBrian * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
2158edb0683db45c449b219988a8715cf8fd69e42dBrian * IN NO EVENT SHALL TUNGSTEN GRAPHICS AND/OR ITS SUPPLIERS BE LIABLE FOR
2258edb0683db45c449b219988a8715cf8fd69e42dBrian * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
2358edb0683db45c449b219988a8715cf8fd69e42dBrian * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
2458edb0683db45c449b219988a8715cf8fd69e42dBrian * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2558edb0683db45c449b219988a8715cf8fd69e42dBrian *
2658edb0683db45c449b219988a8715cf8fd69e42dBrian **************************************************************************/
2724df8f895fe8807aa2ba058e71bd40adfc01d21eBrian
2824df8f895fe8807aa2ba058e71bd40adfc01d21eBrian
2958edb0683db45c449b219988a8715cf8fd69e42dBrian#ifndef ST_CB_TEXTURE_H
3058edb0683db45c449b219988a8715cf8fd69e42dBrian#define ST_CB_TEXTURE_H
31d78dab126724e6e9d475289a086fb6f85adc3985Brian
32d78dab126724e6e9d475289a086fb6f85adc3985Brian
33e857293299c5bc38de683f199fe1ec7833aff61cVinson Lee#include "main/glheader.h"
34e857293299c5bc38de683f199fe1ec7833aff61cVinson Lee
35e857293299c5bc38de683f199fe1ec7833aff61cVinson Leestruct dd_function_table;
362dd788663a8d54e8d54fc373d9399548f324c9eaVinson Leestruct gl_context;
372dd788663a8d54e8d54fc373d9399548f324c9eaVinson Leestruct gl_texture_object;
38e857293299c5bc38de683f199fe1ec7833aff61cVinson Leestruct pipe_context;
39e857293299c5bc38de683f199fe1ec7833aff61cVinson Leestruct st_context;
40e857293299c5bc38de683f199fe1ec7833aff61cVinson Lee
4114b98343309fdcff3514f05020303f7b40e83a4aBrianextern GLboolean
42f9995b30756140724f41daf963fa06167912be7fKristian Høgsbergst_finalize_texture(struct gl_context *ctx,
43c3af68dc5022715cc8f126b7df12f3f5248aefe7Keith Whitwell		    struct pipe_context *pipe,
44295a87f6c211322faefc4ef7f88f02722973f5b6Brian Paul		    struct gl_texture_object *tObj);
4524df8f895fe8807aa2ba058e71bd40adfc01d21eBrian
4624df8f895fe8807aa2ba058e71bd40adfc01d21eBrian
4724df8f895fe8807aa2ba058e71bd40adfc01d21eBrianextern void
486da9234fd437f97267e7831f034c78b31156d939Brianst_init_texture_functions(struct dd_function_table *functions);
4924df8f895fe8807aa2ba058e71bd40adfc01d21eBrian
5024df8f895fe8807aa2ba058e71bd40adfc01d21eBrian
5124df8f895fe8807aa2ba058e71bd40adfc01d21eBrian#endif /* ST_CB_TEXTURE_H */
52