nouveau: missed PCI case
[mesa.git] / src / mesa / drivers / dri / tdfx / tdfx_pixels.h
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_pixels.h,v 1.2 2002/02/22 21:45:03 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 * Nathan Hand <nhand@valinux.com>
36 *
37 */
38
39 #ifndef __TDFX_PIXELS_H__
40 #define __TDFX_PIXELS_H__
41
42 #include "context.h"
43
44 extern void
45 tdfx_bitmap_R5G6B5( GLcontext *ctx, GLint px, GLint py,
46 GLsizei width, GLsizei height,
47 const struct gl_pixelstore_attrib *unpack,
48 const GLubyte *bitmap );
49
50 extern void
51 tdfx_bitmap_R8G8B8A8( GLcontext *ctx, GLint px, GLint py,
52 GLsizei width, GLsizei height,
53 const struct gl_pixelstore_attrib *unpack,
54 const GLubyte *bitmap );
55
56 extern void
57 tdfx_readpixels_R5G6B5( GLcontext *ctx, GLint x, GLint y,
58 GLsizei width, GLsizei height,
59 GLenum format, GLenum type,
60 const struct gl_pixelstore_attrib *packing,
61 GLvoid *dstImage );
62
63 extern void
64 tdfx_readpixels_R8G8B8A8( GLcontext *ctx, GLint x, GLint y,
65 GLsizei width, GLsizei height,
66 GLenum format, GLenum type,
67 const struct gl_pixelstore_attrib *packing,
68 GLvoid *dstImage );
69
70 extern void
71 tdfx_drawpixels_R8G8B8A8( GLcontext *ctx, GLint x, GLint y,
72 GLsizei width, GLsizei height,
73 GLenum format, GLenum type,
74 const struct gl_pixelstore_attrib *unpack,
75 const GLvoid *pixels );
76
77 #endif