diff options
author | Keith Packard <keithp@guitar.keithp.com> | 2007-03-05 22:32:52 -0800 |
---|---|---|
committer | Keith Packard <keithp@guitar.keithp.com> | 2007-03-05 22:34:13 -0800 |
commit | 4042b27f01fdb94e7fc0d4e991e054fff88479ea (patch) | |
tree | 1a9160de3d92ce7d9700ae58654574b7108eba5b /src/i830_memory.c | |
parent | 55ee46aebbf1ec1a8ce914fbd0c8894fc857db8f (diff) |
Move EnterVT mode setting code to xf86SetDesiredModes.
Make the application of crtc desiredModes generic code instead of
per-driver by creating xf86SetDesiredModes from the code that was in EnterVT
and calling it.
Also, move the frame buffer clear until just before mode setting to make
sure things are mapped correctly.
Diffstat (limited to 'src/i830_memory.c')
-rw-r--r-- | src/i830_memory.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/i830_memory.c b/src/i830_memory.c index 7bcf48e0..ea6b90d7 100644 --- a/src/i830_memory.c +++ b/src/i830_memory.c @@ -835,6 +835,8 @@ i830_allocate_framebuffer(ScrnInfoPtr pScrn, I830Ptr pI830, BoxPtr FbMemBox, return NULL; } + if (pI830->FbBase) + memset (pI830->FbBase + front_buffer->offset, 0, size); return front_buffer; } |