anv/image: Remove the offset parameter from image_view_init

The only place we were using this was in meta_blit2d which always creates a
new image anyway so we can just use the image offset.

Reviewed-by: Nanley Chery <nanley.g.chery@intel.com>
This commit is contained in:
Jason Ekstrand
2016-03-31 09:32:05 -07:00
parent f9a2570a06
commit b377c1d08e
6 changed files with 9 additions and 11 deletions

View File

@@ -131,7 +131,7 @@ create_iview(struct anv_cmd_buffer *cmd_buffer,
* creating a dummy memory object etc. so there's really no point.
*/
anv_image_from_handle(*img)->bo = surf->bo;
anv_image_from_handle(*img)->offset = surf->base_offset;
anv_image_from_handle(*img)->offset = surf->base_offset + offset;
anv_image_view_init(iview, cmd_buffer->device,
&(VkImageViewCreateInfo) {
@@ -146,7 +146,7 @@ create_iview(struct anv_cmd_buffer *cmd_buffer,
.baseArrayLayer = 0,
.layerCount = 1
},
}, cmd_buffer, offset, usage);
}, cmd_buffer, usage);
}
struct blit2d_src_temps {