summaryrefslogtreecommitdiffstats
path: root/src/freedreno/vulkan
diff options
context:
space:
mode:
authorJonathan Marek <[email protected]>2020-01-21 08:32:49 -0500
committerMarge Bot <[email protected]>2020-01-23 18:34:07 +0000
commitb7e22b7a3523ac1a81c8d90fd30735d97dd48bf3 (patch)
tree55a1e1c123154efc3ba31e39962b9ac59527af91 /src/freedreno/vulkan
parente8afd4075846a08c7b94fee3789a8e739e2a6474 (diff)
vulkan/wsi: remove unused image_get_modifier
Signed-off-by: Jonathan Marek <[email protected]> Acked-by: Eric Anholt <[email protected]> Reviewed-by: Jason Ekstrand <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3485>
Diffstat (limited to 'src/freedreno/vulkan')
-rw-r--r--src/freedreno/vulkan/tu_wsi.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/freedreno/vulkan/tu_wsi.c b/src/freedreno/vulkan/tu_wsi.c
index 7117f6766bd..b172ba15569 100644
--- a/src/freedreno/vulkan/tu_wsi.c
+++ b/src/freedreno/vulkan/tu_wsi.c
@@ -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;
}