MI_RPC_BO_SIZE, 64);
#ifdef DEBUG
/* Pre-filling the BO helps debug whether writes landed. */
- void *map = brw_bo_map_cpu(brw, obj->oa.bo, MAP_READ | MAP_WRITE);
+ void *map = brw_bo_map_cpu(brw, obj->oa.bo, MAP_WRITE);
memset(map, 0x80, MI_RPC_BO_SIZE);
brw_bo_unmap(obj->oa.bo);
#endif
*
* Note: the clear value for MCS buffers is all 1's, so we memset to 0xff.
*/
- void *map = brw_bo_map_gtt(brw, mt->mcs_buf->bo, MAP_READ | MAP_WRITE);
+ void *map = brw_bo_map_gtt(brw, mt->mcs_buf->bo, MAP_WRITE);
if (unlikely(map == NULL)) {
fprintf(stderr, "Failed to map mcs buffer into GTT\n");
brw_bo_unreference(mt->mcs_buf->bo);
if (bo == NULL)
goto err_results;
- map = brw_bo_map_cpu(NULL, bo, MAP_READ | MAP_WRITE);
+ map = brw_bo_map_cpu(NULL, bo, MAP_WRITE);
if (!map)
goto err_batch;
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;