summaryrefslogtreecommitdiffstats
path: root/src/intel/vulkan/anv_meta_resolve.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_meta_resolve.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_meta_resolve.c')
-rw-r--r--src/intel/vulkan/anv_meta_resolve.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/intel/vulkan/anv_meta_resolve.c b/src/intel/vulkan/anv_meta_resolve.c
index 3e7c7d39ba5..8c1bdc06f84 100644
--- a/src/intel/vulkan/anv_meta_resolve.c
+++ b/src/intel/vulkan/anv_meta_resolve.c
@@ -758,7 +758,7 @@ void anv_CmdResolveImage(
.layerCount = 1,
},
},
- cmd_buffer, 0, VK_IMAGE_USAGE_SAMPLED_BIT);
+ cmd_buffer, VK_IMAGE_USAGE_SAMPLED_BIT);
struct anv_image_view dest_iview;
anv_image_view_init(&dest_iview, cmd_buffer->device,
@@ -775,7 +775,7 @@ void anv_CmdResolveImage(
.layerCount = 1,
},
},
- cmd_buffer, 0, VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT);
+ cmd_buffer, VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT);
VkFramebuffer fb_h;
anv_CreateFramebuffer(device_h,