b/src/gallium/drivers/r600/r600_upload.c
@@ -103,7 +103,11 @@ int r600_upload_buffer(struct r600_upload *upload,
unsigned offset,
}
in_ptr = in_buffer->user_buffer;
- memcpy(upload->ptr + upload->offset, (uint8_t *) in_ptr + offset,
size);
+ uint8_t * ptr_src = (uint8_t *) upload->ptr + upload->offset;
+ uint8_t * ptr_dest = (uint8_t *) in_ptr + offset;
+ //R600_ERR("memcpy src %d dest %d size %d\n", ptr_src, ptr_dest, size);
+ fprintf(stdout, "memcpy src %p dest %p size %d\n", ptr_src, ptr_dest,
size);
+ memcpy(ptr_src, ptr_dest, size);