diff options
author | Alex Deucher <alexdeucher@gmail.com> | 2008-12-02 22:26:21 -0500 |
---|---|---|
committer | Alex Deucher <alexdeucher@gmail.com> | 2008-12-02 22:26:21 -0500 |
commit | ca74ebf8813b7fab8d08465ef9600f001c948e94 (patch) | |
tree | f3eb4ee04a1ac0f48621dcd4d8c40905da8500e5 /src/radeon_exa.c | |
parent | fc079c5267baf431bbecee7744e484783d393152 (diff) |
move 3d state init after RADEON_SWITCH_TO_3D()
Diffstat (limited to 'src/radeon_exa.c')
-rw-r--r-- | src/radeon_exa.c | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/src/radeon_exa.c b/src/radeon_exa.c index 6d31a139..04c097b2 100644 --- a/src/radeon_exa.c +++ b/src/radeon_exa.c @@ -295,41 +295,6 @@ static void RADEONFinishAccess(PixmapPtr pPix, int index) #endif /* X_BYTE_ORDER == X_BIG_ENDIAN */ -#ifdef XF86DRI -#define RADEON_SWITCH_TO_2D() \ -do { \ - uint32_t flush = 0; \ - switch (info->accel_state->engineMode) { \ - case EXA_ENGINEMODE_UNKNOWN: \ - case EXA_ENGINEMODE_3D: \ - flush = 1; \ - case EXA_ENGINEMODE_2D: \ - break; \ - } \ - if (flush) \ - RADEONCPFlushIndirect(pScrn, 1); \ - info->accel_state->engineMode = EXA_ENGINEMODE_2D; \ -} while (0); - -#define RADEON_SWITCH_TO_3D() \ -do { \ - uint32_t flush = 0; \ - switch (info->accel_state->engineMode) { \ - case EXA_ENGINEMODE_UNKNOWN: \ - case EXA_ENGINEMODE_2D: \ - flush = 1; \ - case EXA_ENGINEMODE_3D: \ - break; \ - } \ - if (flush) \ - RADEONCPFlushIndirect(pScrn, 1); \ - info->accel_state->engineMode = EXA_ENGINEMODE_3D; \ -} while (0); -#else -#define RADEON_SWITCH_TO_2D() -#define RADEON_SWITCH_TO_3D() -#endif - #define ENTER_DRAW(x) TRACE #define LEAVE_DRAW(x) TRACE /***********************************************************************/ |