vulkan/wsi: remove unused image_get_modifier
authorJonathan Marek <jonathan@marek.ca>
Tue, 21 Jan 2020 13:32:49 +0000 (08:32 -0500)
committerMarge Bot <eric+marge@anholt.net>
Thu, 23 Jan 2020 18:34:07 +0000 (18:34 +0000)
Signed-off-by: Jonathan Marek <jonathan@marek.ca>
Acked-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3485>

src/freedreno/vulkan/tu_wsi.c
src/vulkan/wsi/wsi_common.h

index 7117f6766bd5ae8890c80a1b3605be07aa23a34c..b172ba155699896a4e3d43a71100f125d4f85234 100644 (file)
@@ -35,21 +35,6 @@ tu_wsi_proc_addr(VkPhysicalDevice physicalDevice, const char *pName)
    return tu_lookup_entrypoint_unchecked(pName);
 }
 
-static uint64_t
-tu_wsi_image_get_modifier(VkImage _image)
-{
-   TU_FROM_HANDLE(tu_image, image, _image);
-
-   if (!image->layout.tile_mode)
-      return DRM_FORMAT_MOD_LINEAR;
-
-   if (image->layout.ubwc_size)
-      return DRM_FORMAT_MOD_QCOM_COMPRESSED;
-
-   /* TODO invent a modifier for tiled but not UBWC buffers: */
-   return DRM_FORMAT_MOD_INVALID;
-}
-
 VkResult
 tu_wsi_init(struct tu_physical_device *physical_device)
 {
@@ -64,7 +49,6 @@ tu_wsi_init(struct tu_physical_device *physical_device)
       return result;
 
    physical_device->wsi_device.supports_modifiers = true;
-   physical_device->wsi_device.image_get_modifier = tu_wsi_image_get_modifier;
 
    return VK_SUCCESS;
 }
index 5c331e2a99684fdce6cab93312e689a8fa811399..92121be8bda1fa55c1d7edc1a63c76662f56c91f 100644 (file)
@@ -111,8 +111,6 @@ struct wsi_device {
       bool strict_imageCount;
    } x11;
 
-   uint64_t (*image_get_modifier)(VkImage image);
-
    /* Signals the semaphore such that any wait on the semaphore will wait on
     * any reads or writes on the give memory object.  This is used to
     * implement the semaphore signal operation in vkAcquireNextImage.