aboutsummaryrefslogtreecommitdiffstats
path: root/src/intel/vulkan/anv_image.c
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2016-03-31 09:32:05 -0700
committerJason Ekstrand <[email protected]>2016-04-08 15:58:45 -0700
commitb377c1d08ed16ca0abeabc86e8d651036eea3145 (patch)
tree337c144a40e4e55be79b34fed65943bffdff433d /src/intel/vulkan/anv_image.c
parentf9a2570a06949810b10395d81c19f6295d76c530 (diff)
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 <[email protected]>
Diffstat (limited to 'src/intel/vulkan/anv_image.c')
-rw-r--r--src/intel/vulkan/anv_image.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/intel/vulkan/anv_image.c b/src/intel/vulkan/anv_image.c
index 759c8612005..db109625316 100644
--- a/src/intel/vulkan/anv_image.c
+++ b/src/intel/vulkan/anv_image.c
@@ -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);