summaryrefslogtreecommitdiff
path: root/driver/xf86-video-ati/src/radeon_dga.c
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@cvs.openbsd.org>2009-08-25 18:51:46 +0000
committerMatthieu Herrb <matthieu@cvs.openbsd.org>2009-08-25 18:51:46 +0000
commit269f87e08fd080a8849c7bbadaedbf53ba1186c3 (patch)
treea30cd6e744358b3167711a0f9b63963b82914266 /driver/xf86-video-ati/src/radeon_dga.c
parent94721b7febf9ff5092d1d32a3e378ceaaf294b89 (diff)
update do xf86-video-ati 6.12.2
This has been in snapshots for weeks. ok oga@, todd@.
Diffstat (limited to 'driver/xf86-video-ati/src/radeon_dga.c')
-rw-r--r--driver/xf86-video-ati/src/radeon_dga.c49
1 files changed, 26 insertions, 23 deletions
diff --git a/driver/xf86-video-ati/src/radeon_dga.c b/driver/xf86-video-ati/src/radeon_dga.c
index d623fe43e..6b0fabea9 100644
--- a/driver/xf86-video-ati/src/radeon_dga.c
+++ b/driver/xf86-video-ati/src/radeon_dga.c
@@ -47,6 +47,9 @@
/* Driver data structures */
#include "radeon.h"
#include "radeon_probe.h"
+#ifdef XF86DRI
+#include "radeon_drm.h"
+#endif
/* X and server generic header files */
#include "xf86.h"
@@ -126,12 +129,12 @@ SECOND_PASS:
}
#endif /* USE_EXA */
#ifdef USE_XAA
- if (!info->useEXA && info->accel) {
- if (info->accel->SetupForSolidFill &&
- info->accel->SubsequentSolidFillRect)
+ if (!info->useEXA && info->accel_state->accel) {
+ if (info->accel_state->accel->SetupForSolidFill &&
+ info->accel_state->accel->SubsequentSolidFillRect)
currentMode->flags |= DGA_FILL_RECT;
- if (info->accel->SetupForScreenToScreenCopy &&
- info->accel->SubsequentScreenToScreenCopy)
+ if (info->accel_state->accel->SetupForScreenToScreenCopy &&
+ info->accel_state->accel->SubsequentScreenToScreenCopy)
currentMode->flags |= DGA_BLIT_RECT | DGA_BLIT_RECT_TRANS;
if (currentMode->flags &
(DGA_PIXMAP_AVAILABLE | DGA_FILL_RECT |
@@ -265,13 +268,13 @@ Bool RADEONDGAInit(ScreenPtr pScreen)
}
#endif /* USE_EXA */
#ifdef USE_XAA
- if (!info->useEXA && info->accel) {
- info->DGAFuncs.Sync = info->accel->Sync;
- if (info->accel->SetupForSolidFill &&
- info->accel->SubsequentSolidFillRect)
+ if (!info->useEXA && info->accel_state->accel) {
+ info->DGAFuncs.Sync = info->accel_state->accel->Sync;
+ if (info->accel_state->accel->SetupForSolidFill &&
+ info->accel_state->accel->SubsequentSolidFillRect)
info->DGAFuncs.FillRect = RADEON_FillRect;
- if (info->accel->SetupForScreenToScreenCopy &&
- info->accel->SubsequentScreenToScreenCopy) {
+ if (info->accel_state->accel->SetupForScreenToScreenCopy &&
+ info->accel_state->accel->SubsequentScreenToScreenCopy) {
info->DGAFuncs.BlitRect = RADEON_BlitRect;
info->DGAFuncs.BlitTransRect = RADEON_BlitTransRect;
}
@@ -383,8 +386,8 @@ static void RADEON_FillRect(ScrnInfoPtr pScrn,
#endif /* USE_EXA */
#ifdef USE_XAA
if (!info->useEXA) {
- (*info->accel->SetupForSolidFill)(pScrn, color, GXcopy, (uint32_t)(~0));
- (*info->accel->SubsequentSolidFillRect)(pScrn, x, y, w, h);
+ (*info->accel_state->accel->SetupForSolidFill)(pScrn, color, GXcopy, (uint32_t)(~0));
+ (*info->accel_state->accel->SubsequentSolidFillRect)(pScrn, x, y, w, h);
if (pScrn->bitsPerPixel == info->CurrentLayout.bitsPerPixel)
RADEON_MARK_SYNC(info, pScrn);
}
@@ -413,10 +416,10 @@ static void RADEON_BlitRect(ScrnInfoPtr pScrn,
#endif /* USE_EXA */
#ifdef USE_XAA
if (!info->useEXA) {
- (*info->accel->SetupForScreenToScreenCopy)(pScrn, xdir, ydir,
- GXcopy, (uint32_t)(~0), -1);
- (*info->accel->SubsequentScreenToScreenCopy)(pScrn, srcx, srcy,
- dstx, dsty, w, h);
+ (*info->accel_state->accel->SetupForScreenToScreenCopy)(pScrn, xdir, ydir,
+ GXcopy, (uint32_t)(~0), -1);
+ (*info->accel_state->accel->SubsequentScreenToScreenCopy)(pScrn, srcx, srcy,
+ dstx, dsty, w, h);
if (pScrn->bitsPerPixel == info->CurrentLayout.bitsPerPixel)
RADEON_MARK_SYNC(info, pScrn);
}
@@ -431,14 +434,14 @@ static void RADEON_BlitTransRect(ScrnInfoPtr pScrn,
int xdir = ((srcx < dstx) && (srcy == dsty)) ? -1 : 1;
int ydir = (srcy < dsty) ? -1 : 1;
- info->XAAForceTransBlit = TRUE;
- (*info->accel->SetupForScreenToScreenCopy)(pScrn, xdir, ydir,
- GXcopy, (uint32_t)(~0), color);
+ info->accel_state->XAAForceTransBlit = TRUE;
+ (*info->accel_state->accel->SetupForScreenToScreenCopy)(pScrn, xdir, ydir,
+ GXcopy, (uint32_t)(~0), color);
- info->XAAForceTransBlit = FALSE;
+ info->accel_state->XAAForceTransBlit = FALSE;
- (*info->accel->SubsequentScreenToScreenCopy)(pScrn, srcx, srcy,
- dstx, dsty, w, h);
+ (*info->accel_state->accel->SubsequentScreenToScreenCopy)(pScrn, srcx, srcy,
+ dstx, dsty, w, h);
if (pScrn->bitsPerPixel == info->CurrentLayout.bitsPerPixel)
RADEON_MARK_SYNC(info, pScrn);