height /= 4;
intel_region_data(intel,
dst->region,
- dst_offset + dst_depth_offset[i], /* dst_offset */
+ dst_offset + dst_depth_offset[i] * dst->cpp, /* dst_offset */
0, 0, /* dstx, dsty */
src,
src_row_pitch,
for (i = 0; i < depth; i++) {
intel_region_copy(intel,
- dst->region, dst_offset + dst_depth_offset[i],
+ dst->region, dst_offset + dst_depth_offset[i] * dst->cpp,
0,
0,
- src->region, src_offset + src_depth_offset[i],
+ src->region, src_offset + src_depth_offset[i] * src->cpp,
0, 0, width, height);
}
* are going to be so diverse that there is no unified way to
* compute the offsets of depth/cube images within a mipmap level,
* so have to store them as a lookup table:
+ * NOTE level_offset is a byte offset, but the image_offsets are _pixel_ offsets!!!
*/
GLuint *image_offset;
};