projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
i965: Drop MAP_READ from some write-only mappings
[mesa.git]
/
src
/
mesa
/
drivers
/
dri
/
i965
/
intel_tex_subimage.c
diff --git
a/src/mesa/drivers/dri/i965/intel_tex_subimage.c
b/src/mesa/drivers/dri/i965/intel_tex_subimage.c
index 0f75bdfb72f29b65268d6bc39f71d0ec487e03f7..b0b1a0ff68e03939bb5dcbb48ae01d3df23f5325 100644
(file)
--- a/
src/mesa/drivers/dri/i965/intel_tex_subimage.c
+++ b/
src/mesa/drivers/dri/i965/intel_tex_subimage.c
@@
-146,7
+146,7
@@
intel_texsubimage_tiled_memcpy(struct gl_context * ctx,
intel_batchbuffer_flush(brw);
}
- void *map = brw_bo_map_cpu(brw, bo, MAP_
READ | MAP_
WRITE);
+ void *map = brw_bo_map_cpu(brw, bo, MAP_WRITE);
if (map == NULL) {
DBG("%s: failed to map bo\n", __func__);
return false;