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:
@@ -464,7 +464,6 @@ anv_image_view_init(struct anv_image_view *iview,
|
||||
struct anv_device *device,
|
||||
const VkImageViewCreateInfo* pCreateInfo,
|
||||
struct anv_cmd_buffer *cmd_buffer,
|
||||
uint32_t offset,
|
||||
VkImageUsageFlags usage_mask)
|
||||
{
|
||||
ANV_FROM_HANDLE(anv_image, image, pCreateInfo->image);
|
||||
@@ -495,7 +494,7 @@ anv_image_view_init(struct anv_image_view *iview,
|
||||
|
||||
iview->image = image;
|
||||
iview->bo = image->bo;
|
||||
iview->offset = image->offset + surface->offset + offset;
|
||||
iview->offset = image->offset + surface->offset;
|
||||
|
||||
iview->aspect_mask = pCreateInfo->subresourceRange.aspectMask;
|
||||
iview->vk_format = pCreateInfo->format;
|
||||
@@ -614,7 +613,7 @@ anv_CreateImageView(VkDevice _device,
|
||||
if (view == NULL)
|
||||
return vk_error(VK_ERROR_OUT_OF_HOST_MEMORY);
|
||||
|
||||
anv_image_view_init(view, device, pCreateInfo, NULL, 0, ~0);
|
||||
anv_image_view_init(view, device, pCreateInfo, NULL, ~0);
|
||||
|
||||
*pView = anv_image_view_to_handle(view);
|
||||
|
||||
|
Reference in New Issue
Block a user