int src_width, int src_height)
{
bool same_slice;
- uint8_t *mapped, *src_mapped, *dst_mapped;
+ void *mapped, *src_mapped, *dst_mapped;
int src_stride, dst_stride, i, cpp;
int map_x1, map_y1, map_x2, map_y2;
GLuint src_bw, src_bh;
intel_miptree_map(brw, src_mt, src_level, src_z,
map_x1, map_y1, map_x2 - map_x1, map_y2 - map_y1,
GL_MAP_READ_BIT | GL_MAP_WRITE_BIT,
- (void **)&mapped, &src_stride);
+ &mapped, &src_stride);
dst_stride = src_stride;
} else {
intel_miptree_map(brw, src_mt, src_level, src_z,
src_x, src_y, src_width, src_height,
- GL_MAP_READ_BIT, (void **)&src_mapped, &src_stride);
+ GL_MAP_READ_BIT, &src_mapped, &src_stride);
intel_miptree_map(brw, dst_mt, dst_level, dst_z,
dst_x, dst_y, src_width, src_height,
- GL_MAP_WRITE_BIT, (void **)&dst_mapped, &dst_stride);
+ GL_MAP_WRITE_BIT, &dst_mapped, &dst_stride);
}
src_width /= (int)src_bw;