summaryrefslogtreecommitdiff
path: root/src/radeon_kms.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_kms.c
parent81593e7deb688fa3108a0589c1418459ec0df4de (diff)
radeon: more unused stuff
Remove all CurrentLayout stuff. Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'src/radeon_kms.c')
-rw-r--r--src/radeon_kms.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/radeon_kms.c b/src/radeon_kms.c
index 274f7ddf..7180c600 100644
--- a/src/radeon_kms.c
+++ b/src/radeon_kms.c
@@ -358,7 +358,6 @@ static Bool RADEONPreInitChipType_KMS(ScrnInfoPtr pScrn)
if (info->Chipset == RADEONCards[i].pci_device_id) {
RADEONCardInfo *card = &RADEONCards[i];
info->ChipFamily = card->chip_family;
- info->IsIGP = card->igp;
break;
}
}
@@ -743,7 +742,6 @@ Bool RADEONPreInit_KMS(ScrnInfoPtr pScrn, int flags)
cpp = pScrn->bitsPerPixel / 8;
pScrn->displayWidth =
RADEON_ALIGN(pScrn->virtualX, drmmode_get_pitch_align(pScrn, cpp, tiling));
- info->CurrentLayout.displayWidth = pScrn->displayWidth;
/* Set display resolution */
xf86SetDpi(pScrn, 0, 0);
@@ -1196,7 +1194,7 @@ static Bool radeon_setup_kernel_mem(ScreenPtr pScreen)
ScrnInfoPtr pScrn = xf86ScreenToScrn(pScreen);
RADEONInfoPtr info = RADEONPTR(pScrn);
xf86CrtcConfigPtr xf86_config = XF86_CRTC_CONFIG_PTR(pScrn);
- int cpp = info->CurrentLayout.pixel_bytes;
+ int cpp = info->pixel_bytes;
int screen_size;
int pitch, base_align;
int total_size_bytes = 0;