diff options
author | Samuel Pitoiset <[email protected]> | 2017-09-12 19:08:45 +0200 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2017-09-13 09:47:41 +0200 |
commit | ce218c31ebc03a422b394c799dd1aa3a10da0874 (patch) | |
tree | 3fa3392b31d7bf6775923befd2e743b2b50c6774 /src | |
parent | 3633bae36b56a8667d31096b3c3472ab388c4fbf (diff) |
radv: remove useless 'cmd_buffer' param from radv_buffer_view_init()
Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/amd/vulkan/radv_image.c | 5 | ||||
-rw-r--r-- | src/amd/vulkan/radv_meta_blit2d.c | 2 | ||||
-rw-r--r-- | src/amd/vulkan/radv_meta_bufimage.c | 2 | ||||
-rw-r--r-- | src/amd/vulkan/radv_private.h | 3 |
4 files changed, 5 insertions, 7 deletions
diff --git a/src/amd/vulkan/radv_image.c b/src/amd/vulkan/radv_image.c index 46b62052a0c..9c04d7ecca5 100644 --- a/src/amd/vulkan/radv_image.c +++ b/src/amd/vulkan/radv_image.c @@ -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); diff --git a/src/amd/vulkan/radv_meta_blit2d.c b/src/amd/vulkan/radv_meta_blit2d.c index 05e49fea762..461d097d05f 100644 --- a/src/amd/vulkan/radv_meta_blit2d.c +++ b/src/amd/vulkan/radv_meta_blit2d.c @@ -82,7 +82,7 @@ create_bview(struct radv_cmd_buffer *cmd_buffer, .format = format, .offset = src->offset, .range = VK_WHOLE_SIZE, - }, cmd_buffer); + }); } diff --git a/src/amd/vulkan/radv_meta_bufimage.c b/src/amd/vulkan/radv_meta_bufimage.c index 91af80c3921..96b5c226622 100644 --- a/src/amd/vulkan/radv_meta_bufimage.c +++ b/src/amd/vulkan/radv_meta_bufimage.c @@ -893,7 +893,7 @@ create_bview(struct radv_cmd_buffer *cmd_buffer, .format = format, .offset = offset, .range = VK_WHOLE_SIZE, - }, cmd_buffer); + }); } diff --git a/src/amd/vulkan/radv_private.h b/src/amd/vulkan/radv_private.h index 31991a314c8..76149afb075 100644 --- a/src/amd/vulkan/radv_private.h +++ b/src/amd/vulkan/radv_private.h @@ -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, |