From 0ecafe028533ceb48619a453bc3c592363231a0a Mon Sep 17 00:00:00 2001 From: Chad Versace Date: Mon, 14 Sep 2015 11:42:46 -0700 Subject: [PATCH] vk/meta: Rename meta_emit_blit() params Rename src -> src_view and dest -> dest_view. This reduces noise in the next patch's diff, which adds new params to the function. --- src/vulkan/anv_meta.c | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/src/vulkan/anv_meta.c b/src/vulkan/anv_meta.c index 6ce963d8374..607054b92ab 100644 --- a/src/vulkan/anv_meta.c +++ b/src/vulkan/anv_meta.c @@ -585,10 +585,10 @@ struct blit_region { static void meta_emit_blit(struct anv_cmd_buffer *cmd_buffer, - struct anv_image_view *src, + struct anv_image_view *src_view, VkOffset3D src_offset, VkExtent3D src_extent, - struct anv_color_attachment_view *dest, + struct anv_color_attachment_view *dest_view, VkOffset3D dest_offset, VkExtent3D dest_extent) { @@ -613,8 +613,8 @@ meta_emit_blit(struct anv_cmd_buffer *cmd_buffer, dest_offset.y + dest_extent.height, }, .tex_coord = { - (float)(src_offset.x + src_extent.width) / (float)src->extent.width, - (float)(src_offset.y + src_extent.height) / (float)src->extent.height, + (float)(src_offset.x + src_extent.width) / (float)src_view->extent.width, + (float)(src_offset.y + src_extent.height) / (float)src_view->extent.height, }, }; @@ -624,8 +624,8 @@ meta_emit_blit(struct anv_cmd_buffer *cmd_buffer, dest_offset.y + dest_extent.height, }, .tex_coord = { - (float)src_offset.x / (float)src->extent.width, - (float)(src_offset.y + src_extent.height) / (float)src->extent.height, + (float)src_offset.x / (float)src_view->extent.width, + (float)(src_offset.y + src_extent.height) / (float)src_view->extent.height, }, }; @@ -635,8 +635,8 @@ meta_emit_blit(struct anv_cmd_buffer *cmd_buffer, dest_offset.y, }, .tex_coord = { - (float)src_offset.x / (float)src->extent.width, - (float)src_offset.y / (float)src->extent.height, + (float)src_offset.x / (float)src_view->extent.width, + (float)src_offset.y / (float)src_view->extent.height, }, }; @@ -674,7 +674,7 @@ meta_emit_blit(struct anv_cmd_buffer *cmd_buffer, .descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE, .pDescriptors = (VkDescriptorInfo[]) { { - .imageView = anv_image_view_to_handle(src), + .imageView = anv_image_view_to_handle(src_view), .imageLayout = VK_IMAGE_LAYOUT_GENERAL }, } @@ -688,12 +688,12 @@ meta_emit_blit(struct anv_cmd_buffer *cmd_buffer, .attachmentCount = 1, .pAttachments = (VkAttachmentBindInfo[]) { { - .view = anv_attachment_view_to_handle(&dest->base), + .view = anv_attachment_view_to_handle(&dest_view->base), .layout = VK_IMAGE_LAYOUT_GENERAL } }, - .width = dest->base.extent.width, - .height = dest->base.extent.height, + .width = dest_view->base.extent.width, + .height = dest_view->base.extent.height, .layers = 1 }, &fb); @@ -704,7 +704,7 @@ meta_emit_blit(struct anv_cmd_buffer *cmd_buffer, .attachmentCount = 1, .pAttachments = &(VkAttachmentDescription) { .sType = VK_STRUCTURE_TYPE_ATTACHMENT_DESCRIPTION, - .format = dest->view.format->vk_format, + .format = dest_view->view.format->vk_format, .loadOp = VK_ATTACHMENT_LOAD_OP_LOAD, .storeOp = VK_ATTACHMENT_STORE_OP_STORE, .initialLayout = VK_IMAGE_LAYOUT_GENERAL, -- 2.30.2