i965: Drop MAP_READ from some write-only mappings
[mesa.git] / src / mesa / drivers / dri / i965 / intel_tex_subimage.c
index 0f75bdfb72f29b65268d6bc39f71d0ec487e03f7..b0b1a0ff68e03939bb5dcbb48ae01d3df23f5325 100644 (file)
@@ -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;