summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOwain G. Ainsworth <zerooa@googlemail.com>2010-04-19 04:05:34 +0100
committerDave Airlie <airlied@redhat.com>2010-04-21 10:34:20 +1000
commitc4b46f56279cc18c8114235ca41cfb41ffede67f (patch)
tree293168ed30ac3078c770bad4e41d34ec41835bc1
parent03b34c5fb12c4df180d4df113d2b654f6afd7230 (diff)
Remove remnants of the ShowCache option.
The rest of it died a long time ago. Signed-off-by: Dave Airlie <airlied@redhat.com>
-rw-r--r--src/radeon.h1
-rw-r--r--src/radeon_driver.c15
2 files changed, 0 insertions, 16 deletions
diff --git a/src/radeon.h b/src/radeon.h
index 859224c3..4e685ddb 100644
--- a/src/radeon.h
+++ b/src/radeon.h
@@ -971,7 +971,6 @@ typedef struct {
unsigned int xv_max_height;
/* general */
- Bool showCache;
OptionInfoPtr Options;
DisplayModePtr currentMode, savedCurrentMode;
diff --git a/src/radeon_driver.c b/src/radeon_driver.c
index 0aaf82bb..ac1d022a 100644
--- a/src/radeon_driver.c
+++ b/src/radeon_driver.c
@@ -181,7 +181,6 @@ static const OptionInfoRec RADEONOptions[] = {
{ OPTION_RENDER_ACCEL, "RenderAccel", OPTV_BOOLEAN, {0}, FALSE },
{ OPTION_SUBPIXEL_ORDER, "SubPixelOrder", OPTV_ANYSTR, {0}, FALSE },
#endif
- { OPTION_SHOWCACHE, "ShowCache", OPTV_BOOLEAN, {0}, FALSE },
{ OPTION_CLOCK_GATING, "ClockGating", OPTV_BOOLEAN, {0}, FALSE },
{ OPTION_VGA_ACCESS, "VGAAccess", OPTV_BOOLEAN, {0}, TRUE },
{ OPTION_REVERSE_DDC, "ReverseDDC", OPTV_BOOLEAN, {0}, FALSE },
@@ -2070,11 +2069,6 @@ static Bool RADEONPreInitChipType(ScrnInfoPtr pScrn)
}
}
#endif
- xf86GetOptValBool(info->Options, OPTION_SHOWCACHE, &info->showCache);
- if (info->showCache)
- xf86DrvMsg(pScrn->scrnIndex, X_CONFIG,
- "Option ShowCache enabled\n");
-
#ifdef RENDER
info->RenderAccel = xf86ReturnOptValBool(info->Options, OPTION_RENDER_ACCEL,
info->Chipset != PCI_CHIP_RN50_515E &&
@@ -5630,15 +5624,6 @@ void RADEONDoAdjustFrame(ScrnInfoPtr pScrn, int x, int y, Bool crtc2)
"RADEONDoAdjustFrame(%d,%d,%d)\n", x, y, clone);
#endif
- if (info->showCache && y) {
- int lastline = info->FbMapSize /
- ((pScrn->displayWidth * pScrn->bitsPerPixel) / 8);
-
- lastline -= pScrn->currentMode->VDisplay;
- y += (pScrn->virtualY - 1) * (y / 3 + 1);
- if (y > lastline) y = lastline;
- }
-
Base = pScrn->fbOffset;
/* note we cannot really simply use the info->ModeReg.crtc_offset_cntl value, since the