Mesa (main): radv: use common vkGetPhysicalDevice{Image}FormatProperties()
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Thu Sep 2 11:15:57 UTC 2021
Module: Mesa
Branch: main
Commit: 9fc16b66d0db943b5a3e94f311484fd3e23a3c1c
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=9fc16b66d0db943b5a3e94f311484fd3e23a3c1c
Author: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Date: Tue Aug 17 17:06:39 2021 +0200
radv: use common vkGetPhysicalDevice{Image}FormatProperties()
Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12416>
---
src/amd/vulkan/radv_formats.c | 30 ------------------------------
1 file changed, 30 deletions(-)
diff --git a/src/amd/vulkan/radv_formats.c b/src/amd/vulkan/radv_formats.c
index 405afb8e075..6253e6c96d4 100644
--- a/src/amd/vulkan/radv_formats.c
+++ b/src/amd/vulkan/radv_formats.c
@@ -1113,15 +1113,6 @@ radv_format_pack_clear_color(VkFormat format, uint32_t clear_vals[2], VkClearCol
return true;
}
-void
-radv_GetPhysicalDeviceFormatProperties(VkPhysicalDevice physicalDevice, VkFormat format,
- VkFormatProperties *pFormatProperties)
-{
- RADV_FROM_HANDLE(radv_physical_device, physical_device, physicalDevice);
-
- radv_physical_device_get_format_properties(physical_device, format, pFormatProperties);
-}
-
static const struct ac_modifier_options radv_modifier_options = {
.dcc = true,
.dcc_retile = true,
@@ -1491,27 +1482,6 @@ unsupported:
return result;
}
-VkResult
-radv_GetPhysicalDeviceImageFormatProperties(VkPhysicalDevice physicalDevice, VkFormat format,
- VkImageType type, VkImageTiling tiling,
- VkImageUsageFlags usage, VkImageCreateFlags createFlags,
- VkImageFormatProperties *pImageFormatProperties)
-{
- RADV_FROM_HANDLE(radv_physical_device, physical_device, physicalDevice);
-
- const VkPhysicalDeviceImageFormatInfo2 info = {
- .sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_IMAGE_FORMAT_INFO_2,
- .pNext = NULL,
- .format = format,
- .type = type,
- .tiling = tiling,
- .usage = usage,
- .flags = createFlags,
- };
-
- return radv_get_image_format_properties(physical_device, &info, format, pImageFormatProperties);
-}
-
static void
get_external_image_format_properties(struct radv_physical_device *physical_device,
const VkPhysicalDeviceImageFormatInfo2 *pImageFormatInfo,
More information about the mesa-commit
mailing list