summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/i965/brw_curbe.c
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2009-04-22 16:24:42 -0700
committerEric Anholt <eric@anholt.net>2009-04-23 11:13:04 -0700
commit4f4907d69f9020ce17aef21b6431d2dd65e01982 (patch)
tree7dfe250cc35dba6801ca839310339edd42beaa88 /src/mesa/drivers/dri/i965/brw_curbe.c
parentf3c7d6ff866cdd96cdd55baee94f58698a9656a3 (diff)
intel: Take advantage of GL_READ_ONLY_ARB to map to GEM bo_map write flag.
This is a CPU win in general, but in particular reduces the pain of Mesa's calculation of min/max indices in DrawElements (wtf?).
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_curbe.c')
-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 18b187ed1d..03371564e1 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);
- dri_bo_map(const_buffer, GL_TRUE);
+ drm_intel_gem_bo_map_gtt(const_buffer);
map = const_buffer->virtual;
memcpy(map, params->ParameterValues, size);
- dri_bo_unmap(const_buffer);
+ drm_intel_gem_bo_unmap_gtt(const_buffer);
if (0) {
int i;