Signed-off-by: Jakob Bornecrantz <wallbraker@gmail.com>
int write = 0;
if (rbuffer->pb) {
- return pb_map(rbuffer->pb, transfer->usage) + transfer->box.x;
+ return (uint8_t*)pb_map(rbuffer->pb, transfer->usage) + transfer->box.x;
}
if (transfer->usage & PIPE_TRANSFER_DONTBLOCK) {
/* FIXME */
if (radeon_bo_map(rscreen->rw, rbuffer->bo)) {
return NULL;
}
- return rbuffer->bo->data + transfer->box.x;
+ return (uint8_t*)rbuffer->bo->data + transfer->box.x;
}
static void r600_buffer_transfer_unmap(struct pipe_context *pipe,