This should have no practical impact. For the default uploader, we
don't really care, but for others, we may want to append more data
as the GPU is reading existing data, which means we need async and
persistent flags.
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
if (!upload->bo) {
upload->bo = brw_bo_alloc(upload->bufmgr, "streamed data",
MAX2(upload->default_size, size), 4096);
- upload->map = brw_bo_map(NULL, upload->bo, MAP_READ | MAP_WRITE);
+ upload->map = brw_bo_map(NULL, upload->bo,
+ MAP_READ | MAP_WRITE |
+ MAP_PERSISTENT | MAP_ASYNC);
}
upload->next_offset = offset + size;