zink: remove unused param from create_ici
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Thu, 10 Aug 2023 12:46:10 +0000 (08:46 -0400)
committerMarge Bot <emma+marge@anholt.net>
Tue, 15 Aug 2023 16:42:27 +0000 (16:42 +0000)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24685>

src/gallium/drivers/zink/zink_resource.c

index afc1a1f..17dd040 100644 (file)
@@ -565,7 +565,7 @@ get_image_usage(struct zink_screen *screen, VkImageCreateInfo *ici, const struct
 }
 
 static uint64_t
-create_ici(struct zink_screen *screen, VkImageCreateInfo *ici, const struct pipe_resource *templ, bool dmabuf, unsigned bind, unsigned modifiers_count, uint64_t *modifiers, bool *success)
+create_ici(struct zink_screen *screen, VkImageCreateInfo *ici, const struct pipe_resource *templ, unsigned bind, unsigned modifiers_count, uint64_t *modifiers, bool *success)
 {
    ici->sType = VK_STRUCTURE_TYPE_IMAGE_CREATE_INFO;
    /* pNext may already be set */
@@ -878,7 +878,7 @@ resource_object_create(struct zink_screen *screen, const struct pipe_resource *t
       } else {
          ici.pNext = NULL;
       }
-      uint64_t mod = create_ici(screen, &ici, templ, external == VK_EXTERNAL_MEMORY_HANDLE_TYPE_DMA_BUF_BIT_EXT,
+      uint64_t mod = create_ici(screen, &ici, templ,
                                 templ->bind, ici_modifier_count, ici_modifiers, &success);
       if (ici.tiling == VK_IMAGE_TILING_DRM_FORMAT_MODIFIER_EXT && srgb &&
           util_format_get_nr_components(srgb) == 4 &&