radv: move radv_device_supports_etc() to radv_physical_device.c

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28519>
This commit is contained in:
Samuel Pitoiset 2024-04-02 10:52:50 +02:00 committed by Marge Bot
parent 57dd6691df
commit 964f1ed023
2 changed files with 7 additions and 7 deletions

View file

@ -690,13 +690,6 @@ radv_is_format_emulated(const struct radv_physical_device *pdev, VkFormat format
return false;
}
bool
radv_device_supports_etc(const struct radv_physical_device *pdev)
{
return pdev->info.family == CHIP_VEGA10 || pdev->info.family == CHIP_RAVEN || pdev->info.family == CHIP_RAVEN2 ||
pdev->info.family == CHIP_STONEY;
}
static void
radv_physical_device_get_format_properties(struct radv_physical_device *pdev, VkFormat format,
VkFormatProperties3 *out_properties)

View file

@ -133,6 +133,13 @@ radv_is_conformant(const struct radv_physical_device *pdev)
return pdev->info.gfx_level >= GFX8;
}
bool
radv_device_supports_etc(const struct radv_physical_device *pdev)
{
return pdev->info.family == CHIP_VEGA10 || pdev->info.family == CHIP_RAVEN || pdev->info.family == CHIP_RAVEN2 ||
pdev->info.family == CHIP_STONEY;
}
static void
parse_hex(char *out, const char *in, unsigned length)
{