~ubuntu-branches/ubuntu/gutsy/vnc4/gutsy

« back to all changes in this revision

Viewing changes to unix/xc/lib/GL/mesa/src/drv/tdfx/tdfx_tex.h

  • Committer: Bazaar Package Importer
  • Author(s): Ola Lundqvist
  • Date: 2006-05-15 20:35:17 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20060515203517-l4lre1ku942mn26k
Tags: 4.1.1+X4.3.0-10
* Correction of critical security issue. Thanks to Martin Kogler
  <e9925248@student.tuwien.ac.at> that informed me about the issue,
  and provided the patch.
  This flaw was originally found by Steve Wiseman of intelliadmin.com.
* Applied patch from Javier Kohen <jkohen@users.sourceforge.net> that
  inform the user that only 8 first characters of the password will
  actually be used when typing more than 8 characters, closes:
  #355619.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* -*- mode: c; c-basic-offset: 3 -*-
 
2
 *
 
3
 * Copyright 2000 VA Linux Systems Inc., Fremont, California.
 
4
 *
 
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
 * 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 (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 NONINFRINGEMENT.  IN NO EVENT SHALL
 
21
 * VA LINUX SYSTEMS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
 
22
 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
 
23
 * OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 
24
 * SOFTWARE.
 
25
 */
 
26
/* $XFree86: xc/lib/GL/mesa/src/drv/tdfx/tdfx_tex.h,v 1.2 2002/02/22 21:45:04 dawes Exp $ */
 
27
 
 
28
/*
 
29
 * Original rewrite:
 
30
 *      Gareth Hughes <gareth@valinux.com>, 29 Sep - 1 Oct 2000
 
31
 *
 
32
 * Authors:
 
33
 *      Gareth Hughes <gareth@valinux.com>
 
34
 *      Brian Paul <brianp@valinux.com>
 
35
 *
 
36
 */
 
37
 
 
38
#ifndef _TDFX_TEX_H_
 
39
#define _TDFX_TEX_H_
 
40
 
 
41
 
 
42
#include "texutil.h"
 
43
 
 
44
 
 
45
#define tdfxDDIsCompressedFormatMacro(internalFormat) \
 
46
    (((internalFormat) == GL_COMPRESSED_RGB_FXT1_3DFX) || \
 
47
     ((internalFormat) == GL_COMPRESSED_RGBA_FXT1_3DFX))
 
48
#define tdfxDDIsCompressedGlideFormatMacro(internalFormat) \
 
49
    ((internalFormat) == GR_TEXFMT_ARGB_CMP_FXT1)
 
50
 
 
51
 
 
52
 
 
53
extern void
 
54
tdfxTexValidate(GLcontext * ctx, struct gl_texture_object *tObj);
 
55
 
 
56
extern void
 
57
tdfxDDBindTexture(GLcontext * ctx, GLenum target,
 
58
                  struct gl_texture_object *tObj);
 
59
 
 
60
extern void
 
61
tdfxDDDeleteTexture(GLcontext * ctx, struct gl_texture_object *tObj);
 
62
 
 
63
extern GLboolean
 
64
tdfxDDIsTextureResident(GLcontext *ctx, struct gl_texture_object *tObj);
 
65
 
 
66
extern void
 
67
tdfxDDTexturePalette(GLcontext * ctx, struct gl_texture_object *tObj);
 
68
 
 
69
#if 000 /* DEAD? */
 
70
extern void
 
71
fxDDTexUseGlobalPalette(GLcontext * ctx, GLboolean state);
 
72
#endif
 
73
 
 
74
extern void
 
75
tdfxDDTexEnv(GLcontext * ctx, GLenum target, GLenum pname,
 
76
             const GLfloat * param);
 
77
 
 
78
extern void
 
79
tdfxDDTexParameter(GLcontext * ctx, GLenum target,
 
80
                   struct gl_texture_object *tObj,
 
81
                   GLenum pname, const GLfloat * params);
 
82
 
 
83
extern const struct gl_texture_format *
 
84
tdfxDDChooseTextureFormat( GLcontext *ctx, GLint internalFormat,
 
85
                           GLenum srcFormat, GLenum srcType );
 
86
 
 
87
extern void
 
88
tdfxDDTexImage2D(GLcontext * ctx, GLenum target, GLint level,
 
89
                 GLint internalFormat, GLint width, GLint height,
 
90
                 GLint border,
 
91
                 GLenum format, GLenum type, const GLvoid * pixels,
 
92
                 const struct gl_pixelstore_attrib * packing,
 
93
                 struct gl_texture_object * texObj,
 
94
                 struct gl_texture_image * texImage);
 
95
 
 
96
extern void
 
97
tdfxDDTexSubImage2D(GLcontext *ctx, GLenum target, GLint level,
 
98
                    GLint xoffset, GLint yoffset,
 
99
                    GLsizei width, GLsizei height,
 
100
                    GLenum format, GLenum type,
 
101
                    const GLvoid *pixels,
 
102
                    const struct gl_pixelstore_attrib *packing,
 
103
                    struct gl_texture_object *texObj,
 
104
                    struct gl_texture_image *texImage );
 
105
 
 
106
#if 000
 
107
extern GLboolean
 
108
tdfxDDCompressedTexImage2D( GLcontext *ctx, GLenum target,
 
109
                            GLint level, GLsizei imageSize,
 
110
                            const GLvoid *data,
 
111
                            struct gl_texture_object *texObj,
 
112
                            struct gl_texture_image *texImage,
 
113
                            GLboolean *retainInternalCopy);
 
114
 
 
115
extern GLboolean
 
116
tdfxDDCompressedTexSubImage2D( GLcontext *ctx, GLenum target,
 
117
                               GLint level, GLint xoffset,
 
118
                               GLint yoffset, GLsizei width,
 
119
                               GLint height, GLenum format,
 
120
                               GLsizei imageSize, const GLvoid *data,
 
121
                               struct gl_texture_object *texObj,
 
122
                               struct gl_texture_image *texImage );
 
123
#endif
 
124
 
 
125
extern GLboolean
 
126
tdfxDDTestProxyTexImage(GLcontext *ctx, GLenum target,
 
127
                        GLint level, GLint internalFormat,
 
128
                        GLenum format, GLenum type,
 
129
                        GLint width, GLint height,
 
130
                        GLint depth, GLint border);
 
131
 
 
132
extern GLvoid *
 
133
tdfxDDGetTexImage(GLcontext * ctx, GLenum target, GLint level,
 
134
                  const struct gl_texture_object *texObj,
 
135
                  GLenum * formatOut, GLenum * typeOut,
 
136
                  GLboolean * freeImageOut);
 
137
 
 
138
extern void
 
139
tdfxDDGetCompressedTexImage( GLcontext *ctx, GLenum target,
 
140
                             GLint lod, void *image,
 
141
                             const struct gl_texture_object *texObj,
 
142
                             struct gl_texture_image *texImage );
 
143
 
 
144
extern GLint
 
145
tdfxDDSpecificCompressedTexFormat(GLcontext *ctx,
 
146
                                  GLint internalFormat,
 
147
                                  GLint numDimensions);
 
148
 
 
149
extern GLint
 
150
tdfxDDBaseCompressedTexFormat(GLcontext *ctx,
 
151
                              GLint internalFormat);
 
152
 
 
153
extern GLboolean
 
154
tdfxDDIsCompressedFormat(GLcontext *ctx, GLint internalFormat);
 
155
 
 
156
extern GLsizei
 
157
tdfxDDCompressedImageSize(GLcontext *ctx,
 
158
                          GLenum intFormat,
 
159
                          GLuint numDimensions,
 
160
                          GLuint width,
 
161
                          GLuint height,
 
162
                          GLuint depth);
 
163
 
 
164
 
 
165
#endif