mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-22 22:10:10 +01:00
radv: use common vkGetPhysicalDevice{Image}FormatProperties()
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12416>
This commit is contained in:
parent
8a9c17bf4e
commit
9fc16b66d0
1 changed files with 0 additions and 30 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue