summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/llvmpipe/lp_texture.c
diff options
context:
space:
mode:
authorRoland Scheidegger <[email protected]>2014-07-01 01:54:30 +0200
committerRoland Scheidegger <[email protected]>2014-07-02 01:55:59 +0200
commitb4c3246e7b2e5d8c19bdb6f71efa3cc2b948b1ce (patch)
tree15bf7029177cebccf432a96f46dfcf90f24ce61b /src/gallium/drivers/llvmpipe/lp_texture.c
parent188ba1d6ec2468fa3405e4382901347b2ac9396b (diff)
llvmpipe: (trivial) rename linear_mip_offsets to mip_offsets
Since switching to non-swizzled rendering we only have "normal", aka linear, offsets. Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_texture.c')
-rw-r--r--src/gallium/drivers/llvmpipe/lp_texture.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_texture.c b/src/gallium/drivers/llvmpipe/lp_texture.c
index 6df88d076fa..d60d10158de 100644
--- a/src/gallium/drivers/llvmpipe/lp_texture.c
+++ b/src/gallium/drivers/llvmpipe/lp_texture.c
@@ -730,7 +730,7 @@ llvmpipe_get_texture_image_address(struct llvmpipe_resource *lpr,
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);
@@ -771,7 +771,7 @@ alloc_image_data(struct llvmpipe_resource *lpr)
*/
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);
@@ -809,7 +809,7 @@ llvmpipe_get_texture_image(struct llvmpipe_resource *lpr,
}
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) {