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

« back to all changes in this revision

Viewing changes to afb/afbbitblt.c

  • 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:
53
53
#include <dix-config.h>
54
54
#endif
55
55
 
 
56
#include <stdlib.h>
 
57
 
56
58
#include <X11/X.h>
57
59
#include <X11/Xprotostr.h>
58
60
 
102
104
 */
103
105
 
104
106
void
105
 
afbDoBitblt(pSrc, pDst, alu, prgnDst, pptSrc, planemask)
106
 
        DrawablePtr pSrc, pDst;
107
 
        int alu;
108
 
        RegionPtr prgnDst;
109
 
        DDXPointPtr pptSrc;
110
 
        unsigned long planemask;
 
107
afbDoBitblt(DrawablePtr pSrc, DrawablePtr pDst, int alu, RegionPtr prgnDst, DDXPointPtr pptSrc, long unsigned int planemask)
111
108
{
112
109
        switch (alu) {
113
110
                case GXcopy:
128
125
        }
129
126
}
130
127
 
 
128
typedef void (*afb_blit_func)
 
129
    (DrawablePtr, DrawablePtr, int, RegionPtr, DDXPointPtr, unsigned long);
 
130
 
131
131
RegionPtr
132
 
afbCopyArea(pSrcDrawable, pDstDrawable, pGC, srcx, srcy, width, height,
133
 
                                 dstx, dsty)
134
 
        DrawablePtr pSrcDrawable;
135
 
        DrawablePtr pDstDrawable;
136
 
        GC *pGC;
137
 
        int srcx, srcy;
138
 
        int width, height;
139
 
        int dstx, dsty;
 
132
afbCopyArea(DrawablePtr pSrcDrawable, DrawablePtr pDstDrawable, GC *pGC, int srcx, int srcy, int width, int height, int dstx, int dsty)
140
133
{
141
 
        void (*doBitBlt)();
 
134
        afb_blit_func doBitBlt;
142
135
 
143
136
        switch (pGC->alu) {
144
137
                case GXcopy:
163
156
}
164
157
 
165
158
RegionPtr
166
 
afbBitBlt(pSrcDrawable, pDstDrawable, pGC, srcx, srcy, width, height,
167
 
                          dstx, dsty, doBitBlt, planemask)
168
 
        register DrawablePtr pSrcDrawable;
169
 
        register DrawablePtr pDstDrawable;
170
 
        register GC *pGC;
171
 
        int srcx, srcy;
172
 
        int width, height;
173
 
        int dstx, dsty;
174
 
        void (*doBitBlt)();
175
 
        unsigned long planemask;
 
159
afbBitBlt(register DrawablePtr pSrcDrawable, register DrawablePtr pDstDrawable, register GC *pGC, int srcx, int srcy, int width, int height, int dstx, int dsty, afb_blit_func doBitBlt, long unsigned int planemask)
176
160
{
177
161
        RegionPtr prgnSrcClip = NULL;           /* may be a new region, or just a copy */
178
162
        Bool freeSrcClip = FALSE;
364
348
}
365
349
 
366
350
RegionPtr
367
 
afbCopyPlane(pSrcDrawable, pDstDrawable, pGC, srcx, srcy, width, height,
368
 
                         dstx, dsty, plane)
369
 
DrawablePtr pSrcDrawable, pDstDrawable;
370
 
register GC *pGC;
371
 
int srcx, srcy;
372
 
int width, height;
373
 
int dstx, dsty;
374
 
unsigned long plane;
 
351
afbCopyPlane(DrawablePtr pSrcDrawable, DrawablePtr pDstDrawable, register GC *pGC, int srcx, int srcy, int width, int height, int dstx, int dsty, long unsigned int plane)
375
352
{
376
353
        int alu;
377
354
        RegionPtr               prgnExposed = NULL;
452
429
}
453
430
 
454
431
void
455
 
afbCopy1ToN(pSrc, pDst, alu, prgnDst, pptSrc, planemask)
456
 
        DrawablePtr pSrc, pDst;
457
 
        int alu;
458
 
        RegionPtr prgnDst;
459
 
        DDXPointPtr pptSrc;
460
 
        unsigned long planemask;
 
432
afbCopy1ToN(DrawablePtr pSrc, DrawablePtr pDst, int alu, RegionPtr prgnDst, DDXPointPtr pptSrc, long unsigned int planemask)
461
433
{
462
434
        int numRects = REGION_NUM_RECTS(prgnDst);
463
435
        BoxPtr pbox = REGION_RECTS(prgnDst);