summaryrefslogtreecommitdiff
path: root/src/radeon_accel.c
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2012-06-15 19:38:45 +0100
committerDave Airlie <airlied@redhat.com>2012-06-15 19:42:05 +0100
commitcb97e75acab84b67b7b7358860788638efc9b344 (patch)
tree866dfa78736e791744d42a656c84ad6f556a2afc /src/radeon_accel.c
parent81593e7deb688fa3108a0589c1418459ec0df4de (diff)
radeon: more unused stuff
Remove all CurrentLayout stuff. Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'src/radeon_accel.c')
-rw-r--r--src/radeon_accel.c26
1 files changed, 0 insertions, 26 deletions
diff --git a/src/radeon_accel.c b/src/radeon_accel.c
index 32f3095b..15cf2bd8 100644
--- a/src/radeon_accel.c
+++ b/src/radeon_accel.c
@@ -104,14 +104,8 @@ static int RADEONDRMGetNumPipes(ScrnInfoPtr pScrn, int *num_pipes)
void RADEONEngineInit(ScrnInfoPtr pScrn)
{
RADEONInfoPtr info = RADEONPTR(pScrn);
- int datatype = 0;
info->accel_state->num_gb_pipes = 0;
- xf86DrvMsgVerb(pScrn->scrnIndex, X_INFO, RADEON_LOGLEVEL_DEBUG,
- "EngineInit (%d/%d)\n",
- info->CurrentLayout.pixel_code,
- info->CurrentLayout.bitsPerPixel);
-
if (info->directRenderingEnabled && (IS_R300_3D || IS_R500_3D)) {
int num_pipes;
@@ -124,26 +118,6 @@ void RADEONEngineInit(ScrnInfoPtr pScrn)
info->accel_state->num_gb_pipes = num_pipes;
}
}
-
- switch (info->CurrentLayout.pixel_code) {
- case 8: datatype = 2; break;
- case 15: datatype = 3; break;
- case 16: datatype = 4; break;
- case 24: datatype = 5; break;
- case 32: datatype = 6; break;
- default:
- xf86DrvMsgVerb(pScrn->scrnIndex, X_INFO, RADEON_LOGLEVEL_DEBUG,
- "Unknown depth/bpp = %d/%d (code = %d)\n",
- info->CurrentLayout.depth,
- info->CurrentLayout.bitsPerPixel,
- info->CurrentLayout.pixel_code);
- }
-
- info->accel_state->dp_gui_master_cntl =
- ((datatype << RADEON_GMC_DST_DATATYPE_SHIFT)
- | RADEON_GMC_CLR_CMP_CNTL_DIS
- | RADEON_GMC_DST_PITCH_OFFSET_CNTL);
-
}
int radeon_cs_space_remaining(ScrnInfoPtr pScrn)