radv: remove useless 'cmd_buffer' param from radv_buffer_view_init()
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 12 Sep 2017 17:08:45 +0000 (19:08 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 13 Sep 2017 07:47:41 +0000 (09:47 +0200)
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/radv_image.c
src/amd/vulkan/radv_meta_blit2d.c
src/amd/vulkan/radv_meta_bufimage.c
src/amd/vulkan/radv_private.h

index 46b62052a0ce40800a9a10ba59eb80eb16e64d49..9c04d7ecca54c6133034e5914a3d14439f91853d 100644 (file)
@@ -1125,8 +1125,7 @@ radv_DestroyImageView(VkDevice _device, VkImageView _iview,
 
 void radv_buffer_view_init(struct radv_buffer_view *view,
                           struct radv_device *device,
-                          const VkBufferViewCreateInfo* pCreateInfo,
-                          struct radv_cmd_buffer *cmd_buffer)
+                          const VkBufferViewCreateInfo* pCreateInfo)
 {
        RADV_FROM_HANDLE(radv_buffer, buffer, pCreateInfo->buffer);
 
@@ -1153,7 +1152,7 @@ radv_CreateBufferView(VkDevice _device,
        if (!view)
                return vk_error(VK_ERROR_OUT_OF_HOST_MEMORY);
 
-       radv_buffer_view_init(view, device, pCreateInfo, NULL);
+       radv_buffer_view_init(view, device, pCreateInfo);
 
        *pView = radv_buffer_view_to_handle(view);
 
index 05e49fea76275dc3e068d9782b6b7e12961fafcc..461d097d05f858831595e73d0153b446a0cbacab 100644 (file)
@@ -82,7 +82,7 @@ create_bview(struct radv_cmd_buffer *cmd_buffer,
                                      .format = format,
                                      .offset = src->offset,
                                      .range = VK_WHOLE_SIZE,
-                             }, cmd_buffer);
+                             });
 
 }
 
index 91af80c3921b48a1dc047fdcd415e66e8df5532c..96b5c22662271dd39e48fb6e7a154ab950fa713e 100644 (file)
@@ -893,7 +893,7 @@ create_bview(struct radv_cmd_buffer *cmd_buffer,
                                      .format = format,
                                      .offset = offset,
                                      .range = VK_WHOLE_SIZE,
-                             }, cmd_buffer);
+                             });
 
 }
 
index 31991a314c87742e15ebbfccb21f29877d723b0a..76149afb0751067912848952539f53afe00d305f 100644 (file)
@@ -1314,8 +1314,7 @@ struct radv_buffer_view {
 };
 void radv_buffer_view_init(struct radv_buffer_view *view,
                           struct radv_device *device,
-                          const VkBufferViewCreateInfo* pCreateInfo,
-                          struct radv_cmd_buffer *cmd_buffer);
+                          const VkBufferViewCreateInfo* pCreateInfo);
 
 static inline struct VkExtent3D
 radv_sanitize_image_extent(const VkImageType imageType,