aboutsummaryrefslogtreecommitdiffstats
path: root/src/intel/vulkan/anv_meta_blit2d.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_blit2d.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_blit2d.c')
-rw-r--r--src/intel/vulkan/anv_meta_blit2d.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/intel/vulkan/anv_meta_blit2d.c b/src/intel/vulkan/anv_meta_blit2d.c
index 49646dd0374..68ade55d8ea 100644
--- a/src/intel/vulkan/anv_meta_blit2d.c
+++ b/src/intel/vulkan/anv_meta_blit2d.c
@@ -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 {