diff options
author | Keith Packard <keithp@keithp.com> | 2009-07-15 09:43:04 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2009-07-15 09:47:40 -0700 |
commit | e386e7b14b139f15205e14b173e8222bf38d9e18 (patch) | |
tree | 5c50603c7118b6f9b1e023b543f316c78ec4defe /src/i830_memory.c | |
parent | b74bf3f9a65af9e72921d4e9028d9d4d023f8bc6 (diff) |
Reset framebuffer offset when rebinding aperture (22760).
scrn->fbOffset may be changed when binding objects to the aperture during
server initialization or VT enter. This was accidentally removed when the
NoAlloc option was eliminated.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/i830_memory.c')
-rw-r--r-- | src/i830_memory.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/i830_memory.c b/src/i830_memory.c index f2f39660..cc9d376d 100644 --- a/src/i830_memory.c +++ b/src/i830_memory.c @@ -1581,6 +1581,9 @@ i830_bind_all_memory(ScrnInfoPtr pScrn) i830_update_cursor_offsets(pScrn); i830_set_max_gtt_map_size(pScrn); + if (pI830->front_buffer) + pScrn->fbOffset = pI830->front_buffer->offset; + return TRUE; } |