summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDave Airlie <airlied@linux.ie>2007-01-23 19:37:51 +1100
committerDave Airlie <airlied@linux.ie>2007-01-23 19:37:51 +1100
commitfa12fe1cc90dd745f3eea35a07d4f3efd652e7b4 (patch)
tree1ed3f741f87a839536573299d6fd070d70f1efc2 /src
parent4d3649b84a3325043c38cece4499de0095cebd71 (diff)
remove unused restore palette function
Diffstat (limited to 'src')
-rw-r--r--src/radeon_driver.c26
1 files changed, 0 insertions, 26 deletions
diff --git a/src/radeon_driver.c b/src/radeon_driver.c
index 629fb9fe..44a7eb2c 100644
--- a/src/radeon_driver.c
+++ b/src/radeon_driver.c
@@ -4618,32 +4618,6 @@ void RADEONChangeSurfaces(ScrnInfoPtr pScrn)
RADEONSaveSurfaces(pScrn, &info->ModeReg);
}
-#if 0
-/* Write palette data */
-static void RADEONRestorePalette(ScrnInfoPtr pScrn, RADEONSavePtr restore)
-{
- RADEONInfoPtr info = RADEONPTR(pScrn);
- unsigned char *RADEONMMIO = info->MMIO;
- int i;
-
- if (!restore->palette_valid) return;
-
- PAL_SELECT(1);
- OUTPAL_START(0);
- for (i = 0; i < 256; i++) {
- RADEONWaitForFifo(pScrn, 32); /* delay */
- OUTPAL_NEXT_CARD32(restore->palette2[i]);
- }
-
- PAL_SELECT(0);
- OUTPAL_START(0);
- for (i = 0; i < 256; i++) {
- RADEONWaitForFifo(pScrn, 32); /* delay */
- OUTPAL_NEXT_CARD32(restore->palette[i]);
- }
-}
-#endif
-
/* Write out state to define a new video mode */
void RADEONRestoreMode(ScrnInfoPtr pScrn, RADEONSavePtr restore)
{