~ubuntu-branches/ubuntu/edgy/xorg-server/edgy-updates

« back to all changes in this revision

Viewing changes to hw/kdrive/src/kaa.h

  • Committer: Bazaar Package Importer
  • Author(s): Rodrigo Parra Novo
  • Date: 2006-07-25 20:06:28 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20060725200628-gjmmd9gxfxdc4ejs
Tags: 1:1.1.1-0ubuntu1
* New Upstream version
* Changed Build-Depends from mesa-swrast-source to mesa-swx11-source,
  following Debian package nomenclature
* Re-did 12_security_policy_in_etc.diff for 1.1.1
* Dropped 15_security_allocate_local.diff (applied upstream)
* Dropped 16_SECURITY_setuid.diff (applied upstream)
* Dropped 000_ubuntu_fix_read_kernel_mapping.patch (applied upstream)
* Dropped 002_ubuntu_fix_for_certain_intel_chipsets.patch (applied upstream)
* Updated versioned Build-Depends on mesa-swx11-source to version
  6.5.0.cvs.20060725-0ubuntu1
* Added arrayobj.c, arrayobj.h, bitset.h & rbadaptors.h to
  GL/symlink-mesa.sh (linked from mesa-swx11-source)
* Added arrayobj.c to default build target on GL/mesa/main

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * $RCSId: $
 
3
 *
 
4
 * Copyright � 2001 Keith Packard
 
5
 *
 
6
 * Partly based on code that is Copyright � The XFree86 Project Inc.
 
7
 *
 
8
 * Permission to use, copy, modify, distribute, and sell this software and its
 
9
 * documentation for any purpose is hereby granted without fee, provided that
 
10
 * the above copyright notice appear in all copies and that both that
 
11
 * copyright notice and this permission notice appear in supporting
 
12
 * documentation, and that the name of Keith Packard not be used in
 
13
 * advertising or publicity pertaining to distribution of the software without
 
14
 * specific, written prior permission.  Keith Packard makes no
 
15
 * representations about the suitability of this software for any purpose.  It
 
16
 * is provided "as is" without express or implied warranty.
 
17
 *
 
18
 * KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
 
19
 * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
 
20
 * EVENT SHALL KEITH PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR
 
21
 * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
 
22
 * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
 
23
 * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
 
24
 * PERFORMANCE OF THIS SOFTWARE.
 
25
 */
 
26
 
 
27
#ifndef _KAA_H_
 
28
#define _KAA_H_
 
29
 
 
30
#include "picturestr.h"
 
31
 
 
32
#define KaaGetScreenPriv(s)     ((KaaScreenPrivPtr)(s)->devPrivates[kaaScreenPrivateIndex].ptr)
 
33
#define KaaScreenPriv(s)        KaaScreenPrivPtr    pKaaScr = KaaGetScreenPriv(s)
 
34
 
 
35
#define KaaGetPixmapPriv(p)     ((KaaPixmapPrivPtr)(p)->devPrivates[kaaPixmapPrivateIndex].ptr)
 
36
#define KaaSetPixmapPriv(p,a)   ((p)->devPrivates[kaaPixmapPrivateIndex].ptr = (pointer) (a))
 
37
#define KaaPixmapPriv(p)        KaaPixmapPrivPtr pKaaPixmap = KaaGetPixmapPriv(p)
 
38
 
 
39
typedef struct {
 
40
    KaaScreenInfoPtr info;
 
41
} KaaScreenPrivRec, *KaaScreenPrivPtr;
 
42
 
 
43
typedef struct {
 
44
    KdOffscreenArea *area;
 
45
    int             score;
 
46
    int             devKind;
 
47
    DevUnion        devPrivate;
 
48
    Bool            dirty;
 
49
} KaaPixmapPrivRec, *KaaPixmapPrivPtr;
 
50
 
 
51
extern int kaaScreenPrivateIndex;
 
52
extern int kaaPixmapPrivateIndex;
 
53
 
 
54
 
 
55
void
 
56
kaaPixmapUseScreen (PixmapPtr pPixmap);
 
57
 
 
58
void
 
59
kaaPixmapUseMemory (PixmapPtr pPixmap);
 
60
 
 
61
void
 
62
kaaDrawableDirty(DrawablePtr pDrawable);
 
63
 
 
64
Bool
 
65
kaaDrawableIsOffscreen (DrawablePtr pDrawable);
 
66
 
 
67
Bool
 
68
kaaPixmapIsOffscreen(PixmapPtr p);
 
69
 
 
70
PixmapPtr
 
71
kaaGetOffscreenPixmap (DrawablePtr pDrawable, int *xp, int *yp);
 
72
 
 
73
void
 
74
kaaMoveInPixmap (PixmapPtr pPixmap);
 
75
 
 
76
void
 
77
kaaMarkSync (ScreenPtr pScreen);
 
78
 
 
79
void
 
80
kaaWaitSync (ScreenPtr pScreen);
 
81
 
 
82
void
 
83
kaaCopyNtoN (DrawablePtr    pSrcDrawable,
 
84
             DrawablePtr    pDstDrawable,
 
85
             GCPtr          pGC,
 
86
             BoxPtr         pbox,
 
87
             int            nbox,
 
88
             int            dx,
 
89
             int            dy,
 
90
             Bool           reverse,
 
91
             Bool           upsidedown,
 
92
             Pixel          bitplane,
 
93
             void           *closure);
 
94
 
 
95
void
 
96
kaaComposite(CARD8      op,
 
97
             PicturePtr pSrc,
 
98
             PicturePtr pMask,
 
99
             PicturePtr pDst,
 
100
             INT16      xSrc,
 
101
             INT16      ySrc,
 
102
             INT16      xMask,
 
103
             INT16      yMask,
 
104
             INT16      xDst,
 
105
             INT16      yDst,
 
106
             CARD16     width,
 
107
             CARD16     height);
 
108
 
 
109
void
 
110
kaaRasterizeTrapezoid(PicturePtr pPict,
 
111
                      xTrapezoid *trap,
 
112
                      int xoff,
 
113
                      int yoff);
 
114
 
 
115
void
 
116
kaaInitTrapOffsets(int grid_order, float *x_offsets, float *y_offsets,
 
117
                   float x_offset, float y_offset);
 
118
 
 
119
#endif /* _KAA_H_ */