* could get mip offset directly but need call above to
* invoke tiled->linear conversion.
*/
- assert(lp_tex->linear_mip_offsets[j] == jit_tex->mip_offsets[j]);
+ assert(lp_tex->mip_offsets[j] == jit_tex->mip_offsets[j]);
jit_tex->row_stride[j] = lp_tex->row_stride[j];
jit_tex->img_stride[j] = lp_tex->img_stride[j];
}
* could get mip offset directly but need call above to
* invoke tiled->linear conversion.
*/
- assert(lp_tex->linear_mip_offsets[j] == mip_offsets[j]);
+ assert(lp_tex->mip_offsets[j] == mip_offsets[j]);
row_stride[j] = lp_tex->row_stride[j];
img_stride[j] = lp_tex->img_stride[j];
}
unsigned offset;
img = &lpr->linear_img;
- offset = lpr->linear_mip_offsets[level];
+ offset = lpr->mip_offsets[level];
if (face_slice > 0)
offset += face_slice * tex_image_face_size(lpr, level);
*/
for (level = 0; level <= lpr->base.last_level; level++) {
uint buffer_size = tex_image_size(lpr, level);
- lpr->linear_mip_offsets[level] = offset;
+ lpr->mip_offsets[level] = offset;
offset += align(buffer_size, alignment);
}
lpr->linear_img.data = align_malloc(offset, alignment);
}
target_img = &lpr->linear_img;
- target_off_ptr = lpr->linear_mip_offsets;
+ target_off_ptr = lpr->mip_offsets;
target_data = target_img->data;
if (!target_data) {
/** Number of 3D slices or cube faces per level */
unsigned num_slices_faces[LP_MAX_TEXTURE_LEVELS];
/** Offset to start of mipmap level, in bytes */
- unsigned linear_mip_offsets[LP_MAX_TEXTURE_LEVELS];
+ unsigned mip_offsets[LP_MAX_TEXTURE_LEVELS];
/**
* Display target, for textures with the PIPE_BIND_DISPLAY_TARGET