summaryrefslogtreecommitdiff
path: root/src/smi_dga.c
diff options
context:
space:
mode:
authorDennis De Winter <de.winter.dennis@gmail.com>2007-03-04 23:17:57 -0500
committerAlex Deucher <alex@botch2.com>2007-03-13 00:17:29 -0400
commitc5b23ba581a3a4395b528d4ed824d5df986527e4 (patch)
treecb60545a1db1aa9407a80c57e6498839a7955ccd /src/smi_dga.c
parentcf83ef7685609cd9daea193b4c842d232edcf506 (diff)
Initial import of EXA support
Based on Dennis' code from bug 8721 with some minor changes by me.
Diffstat (limited to 'src/smi_dga.c')
-rw-r--r--src/smi_dga.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/smi_dga.c b/src/smi_dga.c
index 71d0922..504b700 100644
--- a/src/smi_dga.c
+++ b/src/smi_dga.c
@@ -216,10 +216,10 @@ SMI_FillRect(ScrnInfoPtr pScrn, int x, int y, int w, int h, unsigned long color)
ENTER_PROC("SMI_FillRect");
- if (pSmi->AccelInfoRec) {
- (*pSmi->AccelInfoRec->SetupForSolidFill)(pScrn, color, GXcopy, ~0);
- (*pSmi->AccelInfoRec->SubsequentSolidFillRect)(pScrn, x, y, w, h);
- SET_SYNC_FLAG(pSmi->AccelInfoRec);
+ if (pSmi->XAAInfoRec) {
+ (*pSmi->XAAInfoRec->SetupForSolidFill)(pScrn, color, GXcopy, ~0);
+ (*pSmi->XAAInfoRec->SubsequentSolidFillRect)(pScrn, x, y, w, h);
+ SET_SYNC_FLAG(pSmi->XAAInfoRec);
}
LEAVE_PROC("SMI_FillRect");
@@ -233,13 +233,13 @@ SMI_BlitRect(ScrnInfoPtr pScrn, int srcx, int srcy, int w, int h, int dstx,
ENTER_PROC("SMI_BlitRect");
- if (pSmi->AccelInfoRec) {
+ if (pSmi->XAAInfoRec) {
int xdir = ((srcx < dstx) && (srcy == dsty)) ? -1 : 1;
int ydir = (srcy < dsty) ? -1 : 1;
- (*pSmi->AccelInfoRec->SetupForScreenToScreenCopy)(pScrn, xdir, ydir, GXcopy, ~0, -1);
- (*pSmi->AccelInfoRec->SubsequentScreenToScreenCopy)(pScrn, srcx, srcy, dstx, dsty, w, h);
- SET_SYNC_FLAG(pSmi->AccelInfoRec);
+ (*pSmi->XAAInfoRec->SetupForScreenToScreenCopy)(pScrn, xdir, ydir, GXcopy, ~0, -1);
+ (*pSmi->XAAInfoRec->SubsequentScreenToScreenCopy)(pScrn, srcx, srcy, dstx, dsty, w, h);
+ SET_SYNC_FLAG(pSmi->XAAInfoRec);
}
LEAVE_PROC("SMI_BlitRect");
@@ -253,13 +253,13 @@ SMI_BlitTransRect(ScrnInfoPtr pScrn, int srcx, int srcy, int w, int h, int dstx,
ENTER_PROC("SMI_BlitTraneRect");
- if (pSmi->AccelInfoRec) {
+ if (pSmi->XAAInfoRec) {
int xdir = ((srcx < dstx) && (srcy == dsty)) ? -1 : 1;
int ydir = (srcy < dsty) ? -1 : 1;
- (*pSmi->AccelInfoRec->SetupForScreenToScreenCopy)(pScrn, xdir, ydir, GXcopy, ~0, color);
- (*pSmi->AccelInfoRec->SubsequentScreenToScreenCopy)(pScrn, srcx, srcy, dstx, dsty, w, h);
- SET_SYNC_FLAG(pSmi->AccelInfoRec);
+ (*pSmi->XAAInfoRec->SetupForScreenToScreenCopy)(pScrn, xdir, ydir, GXcopy, ~0, color);
+ (*pSmi->XAAInfoRec->SubsequentScreenToScreenCopy)(pScrn, srcx, srcy, dstx, dsty, w, h);
+ SET_SYNC_FLAG(pSmi->XAAInfoRec);
}
LEAVE_PROC("SMI_BlitTraneRect");