From 7a8b7fc480bed33fee2967579bc5e5176ac74622 Mon Sep 17 00:00:00 2001 From: Connor Abbott Date: Thu, 9 Oct 2025 12:57:29 -0400 Subject: [PATCH] tu: Remove useless tu_image_view_init parameter We can find it from the device. Part-of: --- src/freedreno/vulkan/tu_image.cc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/freedreno/vulkan/tu_image.cc b/src/freedreno/vulkan/tu_image.cc index f3190df27db..df9c436ea71 100644 --- a/src/freedreno/vulkan/tu_image.cc +++ b/src/freedreno/vulkan/tu_image.cc @@ -188,8 +188,7 @@ tu_cs_image_flag_ref(struct tu_cs *cs, const struct fdl6_view *iview, uint32_t l static void tu_image_view_init(struct tu_device *device, struct tu_image_view *iview, - const VkImageViewCreateInfo *pCreateInfo, - bool has_z24uint_s8uint) + const VkImageViewCreateInfo *pCreateInfo) { VK_FROM_HANDLE(tu_image, image, pCreateInfo->image); const VkImageSubresourceRange *range = &pCreateInfo->subresourceRange; @@ -287,7 +286,7 @@ tu_image_view_init(struct tu_device *device, args.chroma_offsets[1] = (enum fdl_chroma_location) conversion->state.chroma_offsets[1]; } - TU_CALLX(device, fdl6_view_init)(&iview->view, layouts, &args, has_z24uint_s8uint); + TU_CALLX(device, fdl6_view_init)(&iview->view, layouts, &args, device->use_z24uint_s8uint); if (image->vk.format == VK_FORMAT_D32_SFLOAT_S8_UINT) { struct fdl_layout *layout = &image->layout[0]; @@ -1382,7 +1381,7 @@ tu_CreateImageView(VkDevice _device, if (view == NULL) return vk_error(device, VK_ERROR_OUT_OF_HOST_MEMORY); - tu_image_view_init(device, view, pCreateInfo, device->use_z24uint_s8uint); + tu_image_view_init(device, view, pCreateInfo); *pView = tu_image_view_to_handle(view);