aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2009-04-23 17:41:23 -0600
committerBrian Paul <[email protected]>2009-04-23 17:41:23 -0600
commita9a363f8298e9d534e60e3d2869f8677138a1e7e (patch)
tree1404eefd33ed7c38250b5693174941653a962511 /src/mesa/drivers
parentae69a046505d8c94cd3a59a9376310a904c35b3c (diff)
i965: revert part of commit 4f4907d69f9020ce17aef21b6431d2dd65e01982
The drm_intel_gem_bo_map_gtt() call that replaced dri_bo_map() is producing errors like: intel_bufmgr_gem.c:689: Error preparing buffer map 39 (vp_const_buffer): Invalid argument . and returning NULL, causing a segfault in the memcpy(). Just reverting until we can get to the root issue...
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r--src/mesa/drivers/dri/i965/brw_curbe.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_curbe.c b/src/mesa/drivers/dri/i965/brw_curbe.c
index 03371564e13..18b187ed1dc 100644
--- a/src/mesa/drivers/dri/i965/brw_curbe.c
+++ b/src/mesa/drivers/dri/i965/brw_curbe.c
@@ -353,10 +353,10 @@ update_constant_buffer(struct brw_context *brw,
assert(const_buffer);
assert(const_buffer->size >= size);
- drm_intel_gem_bo_map_gtt(const_buffer);
+ dri_bo_map(const_buffer, GL_TRUE);
map = const_buffer->virtual;
memcpy(map, params->ParameterValues, size);
- drm_intel_gem_bo_unmap_gtt(const_buffer);
+ dri_bo_unmap(const_buffer);
if (0) {
int i;