summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2010-03-02 09:22:37 +0100
committerCarl Worth <cworth@cworth.org>2010-03-04 09:38:37 -0800
commit086c0e25cac1d3dd0a37def8b5cb82c1c6279edf (patch)
treebbf1845c7278684cd035d0d9ec27b9a6bd7b2f63
parent2a989aa057cee74154419fd0a4911ba1e95582cf (diff)
i830_memory: rename i830_bind_all_memory to reflect code reality
It doesn't bind anything anymore, but does a few random things. Give it a hopefully vague enough name to cover all cases ;) Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> Reviewed-by: Eric Anholt <eric@anholt.net>
-rw-r--r--src/i830.h2
-rw-r--r--src/i830_driver.c2
-rw-r--r--src/i830_memory.c9
3 files changed, 5 insertions, 8 deletions
diff --git a/src/i830.h b/src/i830.h
index 45b60288..8449dc69 100644
--- a/src/i830.h
+++ b/src/i830.h
@@ -462,7 +462,7 @@ Bool i830_tiled_width(intel_screen_private *intel, int *width, int cpp);
int i830_pad_drawable_width(int width, int cpp);
/* i830_memory.c */
-Bool i830_bind_all_memory(ScrnInfoPtr scrn);
+Bool i830_reinit_memory(ScrnInfoPtr scrn);
unsigned long i830_get_fence_size(intel_screen_private *intel, unsigned long size);
unsigned long i830_get_fence_pitch(intel_screen_private *intel, unsigned long pitch,
uint32_t tiling_mode);
diff --git a/src/i830_driver.c b/src/i830_driver.c
index 4b2e6171..733f4098 100644
--- a/src/i830_driver.c
+++ b/src/i830_driver.c
@@ -1403,7 +1403,7 @@ static Bool I830EnterVT(int scrnIndex, int flags)
}
}
- if (!i830_bind_all_memory(scrn))
+ if (!i830_reinit_memory(scrn))
return FALSE;
intel_batch_init(scrn);
diff --git a/src/i830_memory.c b/src/i830_memory.c
index 0d7ae438..2c00d436 100644
--- a/src/i830_memory.c
+++ b/src/i830_memory.c
@@ -439,13 +439,10 @@ Bool i830_allocate_2d_memory(ScrnInfoPtr scrn)
}
/**
- * Called at EnterVT to grab the AGP GART and bind our allocations.
- *
- * In zaphod mode, this will walk the list trying to bind twice, since each
- * intel points to the same allocation list, but the bind_memory will just
- * no-op then.
+ * Called at EnterVT to reinit memory related stuff. Also reinits the drmmode
+ * cursors.
*/
-Bool i830_bind_all_memory(ScrnInfoPtr scrn)
+Bool i830_reinit_memory(ScrnInfoPtr scrn)
{
intel_screen_private *intel = intel_get_screen_private(scrn);
xf86CrtcConfigPtr xf86_config = XF86_CRTC_CONFIG_PTR(scrn);