diff options
author | Bas Nieuwenhuizen <[email protected]> | 2018-01-04 01:32:04 +0100 |
---|---|---|
committer | Bas Nieuwenhuizen <[email protected]> | 2018-07-27 01:31:32 +0200 |
commit | 3665f66ef26ae7f69e870b8f48e7e1f28616879c (patch) | |
tree | 6bc1cc01fe0b53e8be0ab99a2a2e999bff323061 /src/amd/vulkan/radv_device.c | |
parent | 1e8b8e0878fc6342d6530fdaa04239315f511c50 (diff) |
radv: Add support for ETC2 textures.
Was surprised that is even supported by Vega.
Reviewed-by: Samuel Pitoiset <[email protected]>
Diffstat (limited to 'src/amd/vulkan/radv_device.c')
-rw-r--r-- | src/amd/vulkan/radv_device.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c index f6cd6dd1131..33f24b9d302 100644 --- a/src/amd/vulkan/radv_device.c +++ b/src/amd/vulkan/radv_device.c @@ -685,6 +685,7 @@ void radv_GetPhysicalDeviceFeatures( VkPhysicalDevice physicalDevice, VkPhysicalDeviceFeatures* pFeatures) { + RADV_FROM_HANDLE(radv_physical_device, pdevice, physicalDevice); memset(pFeatures, 0, sizeof(*pFeatures)); *pFeatures = (VkPhysicalDeviceFeatures) { @@ -708,7 +709,8 @@ void radv_GetPhysicalDeviceFeatures( .alphaToOne = true, .multiViewport = true, .samplerAnisotropy = true, - .textureCompressionETC2 = false, + .textureCompressionETC2 = pdevice->rad_info.chip_class >= GFX9 || + pdevice->rad_info.family == CHIP_STONEY, .textureCompressionASTC_LDR = false, .textureCompressionBC = true, .occlusionQueryPrecise = true, |