summaryrefslogtreecommitdiff
path: root/src/radeon_crtc.c
diff options
context:
space:
mode:
authorArkadiusz Miskiewicz <arekm@maven.pl>2007-12-18 15:32:10 -0500
committerAlex Deucher <alex@t41p.hsd1.va.comcast.net>2007-12-18 15:32:10 -0500
commit20568f66f9a9a60a33bd9a69ccc14a891c656836 (patch)
tree29fc833b92fa64ae4caa353d7228bd86264ff9ae /src/radeon_crtc.c
parent1496194200adbcb044ec3977367a0908262e389c (diff)
RADEON: more cleanups and warning fixes
Diffstat (limited to 'src/radeon_crtc.c')
-rw-r--r--src/radeon_crtc.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/radeon_crtc.c b/src/radeon_crtc.c
index 41375dae..07857dd5 100644
--- a/src/radeon_crtc.c
+++ b/src/radeon_crtc.c
@@ -145,15 +145,13 @@ RADEONInitCommonRegisters(RADEONSavePtr save, RADEONInfoPtr info)
static void
RADEONInitSurfaceCntl(xf86CrtcPtr crtc, RADEONSavePtr save)
{
- ScrnInfoPtr pScrn = crtc->scrn;
-
save->surface_cntl = 0;
#if X_BYTE_ORDER == X_BIG_ENDIAN
/* We must set both apertures as they can be both used to map the entire
* video memory. -BenH.
*/
- switch (pScrn->bitsPerPixel) {
+ switch (crtc->scrn->bitsPerPixel) {
case 16:
save->surface_cntl |= RADEON_NONSURF_AP0_SWP_16BPP;
save->surface_cntl |= RADEON_NONSURF_AP1_SWP_16BPP;