diff options
author | Jon Smirl <[email protected]> | 2004-03-11 20:35:38 +0000 |
---|---|---|
committer | Jon Smirl <[email protected]> | 2004-03-11 20:35:38 +0000 |
commit | ae4a1cc0666860bf5cc37a5cb549afc9aa5448b0 (patch) | |
tree | 495f1f0249dc177e65f956e16ae79f7ab5a0cb83 /src/mesa/drivers/dri/i810/i810ioctl.c | |
parent | 157ec8bcf8b56d7951416d9ee13c98b7e82d099d (diff) |
Adjustments to make everything use IOCTL/sarea defines in DRM instead
of glx/mini. removes glx/mini/drm.h glx/mini/sarea.h
Diffstat (limited to 'src/mesa/drivers/dri/i810/i810ioctl.c')
-rw-r--r-- | src/mesa/drivers/dri/i810/i810ioctl.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/mesa/drivers/dri/i810/i810ioctl.c b/src/mesa/drivers/dri/i810/i810ioctl.c index 88a048b396b..3d1be4c902f 100644 --- a/src/mesa/drivers/dri/i810/i810ioctl.c +++ b/src/mesa/drivers/dri/i810/i810ioctl.c @@ -90,8 +90,8 @@ static void i810Clear( GLcontext *ctx, GLbitfield mask, GLboolean all, for (i = 0 ; i < imesa->numClipRects ; ) { int nr = MIN2(i + I810_NR_SAREA_CLIPRECTS, imesa->numClipRects); - XF86DRIClipRectPtr box = imesa->pClipRects; - XF86DRIClipRectPtr b = imesa->sarea->boxes; + drm_clip_rect_t *box = imesa->pClipRects; + drm_clip_rect_t *b = imesa->sarea->boxes; int n = 0; if (!all) { @@ -117,7 +117,7 @@ static void i810Clear( GLcontext *ctx, GLbitfield mask, GLboolean all, } } else { for ( ; i < nr ; i++) { - *b++ = *(XF86DRIClipRectPtr)&box[i]; + *b++ = box[i]; n++; } } @@ -144,7 +144,7 @@ static void i810Clear( GLcontext *ctx, GLbitfield mask, GLboolean all, void i810CopyBuffer( const __DRIdrawablePrivate *dPriv ) { i810ContextPtr imesa; - XF86DRIClipRectPtr pbox; + drm_clip_rect_t *pbox; int nbox, i, tmp; assert(dPriv); @@ -162,7 +162,7 @@ void i810CopyBuffer( const __DRIdrawablePrivate *dPriv ) for (i = 0 ; i < nbox ; ) { int nr = MIN2(i + I810_NR_SAREA_CLIPRECTS, dPriv->numClipRects); - XF86DRIClipRectRec *b = (XF86DRIClipRectRec *)imesa->sarea->boxes; + drm_clip_rect_t *b = imesa->sarea->boxes; imesa->sarea->nbox = nr - i; @@ -204,7 +204,7 @@ void i810PageFlip( const __DRIdrawablePrivate *dPriv ) LOCK_HARDWARE( imesa ); if (dPriv->pClipRects) { - *(XF86DRIClipRectRec *)imesa->sarea->boxes = dPriv->pClipRects[0]; + *imesa->sarea->boxes = dPriv->pClipRects[0]; imesa->sarea->nbox = 1; } ret = drmCommandNone(imesa->driFd, DRM_I810_FLIP); @@ -293,9 +293,9 @@ void i810WaitAge( i810ContextPtr imesa, int age ) -static int intersect_rect( XF86DRIClipRectPtr out, - XF86DRIClipRectPtr a, - XF86DRIClipRectPtr b ) +static int intersect_rect( drm_clip_rect_t *out, + drm_clip_rect_t *a, + drm_clip_rect_t *b ) { *out = *a; if (b->x1 > out->x1) out->x1 = b->x1; @@ -361,7 +361,7 @@ static void age_imesa( i810ContextPtr imesa, int age ) void i810FlushPrimsLocked( i810ContextPtr imesa ) { - XF86DRIClipRectPtr pbox = (XF86DRIClipRectPtr)imesa->pClipRects; + drm_clip_rect_t *pbox = imesa->pClipRects; int nbox = imesa->numClipRects; drmBufPtr buffer = imesa->vertex_buffer; I810SAREAPtr sarea = imesa->sarea; @@ -403,7 +403,7 @@ void i810FlushPrimsLocked( i810ContextPtr imesa ) for (i = 0 ; i < nbox ; ) { int nr = MIN2(i + I810_NR_SAREA_CLIPRECTS, nbox); - XF86DRIClipRectPtr b = sarea->boxes; + drm_clip_rect_t *b = sarea->boxes; if (imesa->scissor) { sarea->nbox = 0; |