mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-06 11:00:11 +01:00
tu: Remove useless tu_image_view_init parameter
We can find it from the device. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37919>
This commit is contained in:
parent
928e19320c
commit
7a8b7fc480
1 changed files with 3 additions and 4 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue