Remove CVS keywords.
[mesa.git] / src / mesa / drivers / dri / r128 / r128_texobj.h
1 /**************************************************************************
2
3 Copyright 1999, 2000 ATI Technologies Inc. and Precision Insight, Inc.,
4 Cedar Park, Texas.
5 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 on the rights to use, copy, modify, merge, publish, distribute, sub
11 license, and/or sell copies of the Software, and to permit persons to whom
12 the Software is furnished to do so, subject to the following conditions:
13
14 The above copyright notice and this permission notice (including the next
15 paragraph) shall be included in all copies or substantial portions of the
16 Software.
17
18 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20 FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
21 ATI, PRECISION INSIGHT AND/OR THEIR SUPPLIERS BE LIABLE FOR ANY CLAIM,
22 DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
23 OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
24 USE OR OTHER DEALINGS IN THE SOFTWARE.
25
26 **************************************************************************/
27
28 /*
29 * Authors:
30 * Kevin E. Martin <martin@valinux.com>
31 * Gareth Hughes <gareth@valinux.com>
32 *
33 */
34
35 #ifndef _R128_TEXOBJ_H_
36 #define _R128_TEXOBJ_H_
37
38 #include "mm.h"
39
40 /* Individual texture image information.
41 */
42 typedef struct {
43 GLuint offset; /* Relative to local texture space */
44 GLuint width;
45 GLuint height;
46 } r128TexImage;
47
48 typedef struct r128_tex_obj r128TexObj, *r128TexObjPtr;
49
50 /* Texture object in locally shared texture space.
51 */
52 struct r128_tex_obj {
53 driTextureObject base;
54
55 u_int32_t bufAddr; /* Offset to start of locally
56 shared texture block */
57
58 GLuint age;
59 r128TexImage image[R128_MAX_TEXTURE_LEVELS]; /* Image data for all
60 mipmap levels */
61
62 u_int32_t textureFormat; /* Actual hardware format */
63
64 drm_r128_texture_regs_t setup; /* Setup regs for texture */
65 };
66
67 #endif /* _R128_TEXOBJ_H_ */