summaryrefslogtreecommitdiff
path: root/src/i830_display.c
diff options
context:
space:
mode:
authorZhenyu Wang <zhenyu.z.wang@intel.com>2008-01-24 10:40:18 +0800
committerZhenyu Wang <zhenyu.z.wang@intel.com>2008-01-24 10:40:18 +0800
commitd341e41c863f1212bf2c6b84782a7e472b6612a1 (patch)
treebc9adf9266bb405820c781855ed0b4efef5c8847 /src/i830_display.c
parent88a1041c5361964d37107c22d77feaa1b2160656 (diff)
Clear shadow memory after allocation
Diffstat (limited to 'src/i830_display.c')
-rw-r--r--src/i830_display.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/i830_display.c b/src/i830_display.c
index d16871d4..f61d3c40 100644
--- a/src/i830_display.c
+++ b/src/i830_display.c
@@ -1342,6 +1342,7 @@ i830_crtc_shadow_allocate (xf86CrtcPtr crtc, int width, int height)
"Couldn't allocate shadow memory for rotated CRTC\n");
return NULL;
}
+ memset(pI830->FbBase + intel_crtc->rotate_mem->offset, 0, size);
return pI830->FbBase + intel_crtc->rotate_mem->offset;
}