1bcc6eddd335e97d49ed2ef3a1440f94d58dce12dJon Smirl/*
2adbec39bbf671ad80f6c557801e274cac0d305faKeith WhitwellCopyright (C) The Weather Channel, Inc.  2002.  All Rights Reserved.
3adbec39bbf671ad80f6c557801e274cac0d305faKeith Whitwell
4adbec39bbf671ad80f6c557801e274cac0d305faKeith WhitwellThe Weather Channel (TM) funded Tungsten Graphics to develop the
5adbec39bbf671ad80f6c557801e274cac0d305faKeith Whitwellinitial release of the Radeon 8500 driver under the XFree86 license.
6adbec39bbf671ad80f6c557801e274cac0d305faKeith WhitwellThis notice must be preserved.
7adbec39bbf671ad80f6c557801e274cac0d305faKeith Whitwell
8adbec39bbf671ad80f6c557801e274cac0d305faKeith WhitwellPermission is hereby granted, free of charge, to any person obtaining
9adbec39bbf671ad80f6c557801e274cac0d305faKeith Whitwella copy of this software and associated documentation files (the
10adbec39bbf671ad80f6c557801e274cac0d305faKeith Whitwell"Software"), to deal in the Software without restriction, including
11adbec39bbf671ad80f6c557801e274cac0d305faKeith Whitwellwithout limitation the rights to use, copy, modify, merge, publish,
12adbec39bbf671ad80f6c557801e274cac0d305faKeith Whitwelldistribute, sublicense, and/or sell copies of the Software, and to
13adbec39bbf671ad80f6c557801e274cac0d305faKeith Whitwellpermit persons to whom the Software is furnished to do so, subject to
14adbec39bbf671ad80f6c557801e274cac0d305faKeith Whitwellthe following conditions:
15adbec39bbf671ad80f6c557801e274cac0d305faKeith Whitwell
16adbec39bbf671ad80f6c557801e274cac0d305faKeith WhitwellThe above copyright notice and this permission notice (including the
17adbec39bbf671ad80f6c557801e274cac0d305faKeith Whitwellnext paragraph) shall be included in all copies or substantial
18adbec39bbf671ad80f6c557801e274cac0d305faKeith Whitwellportions of the Software.
19adbec39bbf671ad80f6c557801e274cac0d305faKeith Whitwell
20adbec39bbf671ad80f6c557801e274cac0d305faKeith WhitwellTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
21adbec39bbf671ad80f6c557801e274cac0d305faKeith WhitwellEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
22adbec39bbf671ad80f6c557801e274cac0d305faKeith WhitwellMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
23adbec39bbf671ad80f6c557801e274cac0d305faKeith WhitwellIN NO EVENT SHALL THE COPYRIGHT OWNER(S) AND/OR ITS SUPPLIERS BE
24adbec39bbf671ad80f6c557801e274cac0d305faKeith WhitwellLIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
25adbec39bbf671ad80f6c557801e274cac0d305faKeith WhitwellOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
26adbec39bbf671ad80f6c557801e274cac0d305faKeith WhitwellWITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
27adbec39bbf671ad80f6c557801e274cac0d305faKeith Whitwell
28adbec39bbf671ad80f6c557801e274cac0d305faKeith Whitwell**************************************************************************/
29adbec39bbf671ad80f6c557801e274cac0d305faKeith Whitwell
30adbec39bbf671ad80f6c557801e274cac0d305faKeith Whitwell/*
31adbec39bbf671ad80f6c557801e274cac0d305faKeith Whitwell * Authors:
32adbec39bbf671ad80f6c557801e274cac0d305faKeith Whitwell *   Keith Whitwell <keith@tungstengraphics.com>
33adbec39bbf671ad80f6c557801e274cac0d305faKeith Whitwell */
34adbec39bbf671ad80f6c557801e274cac0d305faKeith Whitwell
35adbec39bbf671ad80f6c557801e274cac0d305faKeith Whitwell#ifndef __R200_TEX_H__
36adbec39bbf671ad80f6c557801e274cac0d305faKeith Whitwell#define __R200_TEX_H__
37adbec39bbf671ad80f6c557801e274cac0d305faKeith Whitwell
385c80eb7ec13e064b81302da6c672e96a7a7e4e95Dave Airlieextern void r200SetTexBuffer(__DRIcontext *pDRICtx, GLint target, __DRIdrawable *dPriv);
394a2cb696cc3b9e151ea902fc976ee025fb614309Dave Airlieextern void r200SetTexBuffer2(__DRIcontext *pDRICtx, GLint target, GLint glx_texture_format,
404a2cb696cc3b9e151ea902fc976ee025fb614309Dave Airlie			      __DRIdrawable *dPriv);
414f96000e294fa0d6ba6f5915ff508017d9c26d50Chris Rankin
42f9995b30756140724f41daf963fa06167912be7fKristian Høgsbergextern void r200UpdateTextureState( struct gl_context *ctx );
43adbec39bbf671ad80f6c557801e274cac0d305faKeith Whitwell
44692ca82116485a9c6191e5265c5b369d5b4f82f3Dave Airlieextern int r200UploadTexImages( r200ContextPtr rmesa, radeonTexObjPtr t, GLuint face );
45adbec39bbf671ad80f6c557801e274cac0d305faKeith Whitwell
46692ca82116485a9c6191e5265c5b369d5b4f82f3Dave Airlieextern void r200DestroyTexObj( r200ContextPtr rmesa, radeonTexObjPtr t );
47adbec39bbf671ad80f6c557801e274cac0d305faKeith Whitwell
482706bc6a8898c7d7e155440cfa793035e56186b8Maciej Cencoraextern void r200InitTextureFuncs( radeonContextPtr radeon, struct dd_function_table *functions );
49adbec39bbf671ad80f6c557801e274cac0d305faKeith Whitwell
50f9995b30756140724f41daf963fa06167912be7fKristian Høgsbergextern void r200UpdateFragmentShader( struct gl_context *ctx );
516f6bd8aedcf2b2f0e1ca9a1fa7ded1cb1f5a88edPauli Nieminenextern void r200TexUpdateParameters(struct gl_context *ctx, GLuint unit);
52f20917de5bd2b1fc152e74304d3649a1f6042422Roland Scheidegger
53f9995b30756140724f41daf963fa06167912be7fKristian Høgsbergextern void set_re_cntl_d3d( struct gl_context *ctx, int unit, GLboolean use_d3d );
54f20917de5bd2b1fc152e74304d3649a1f6042422Roland Scheidegger
55adbec39bbf671ad80f6c557801e274cac0d305faKeith Whitwell#endif /* __R200_TEX_H__ */
56