radv: Add ETC2 support on RAVEN2.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Thu, 6 Aug 2020 22:08:21 +0000 (00:08 +0200)
committerMarge Bot <eric+marge@anholt.net>
Fri, 7 Aug 2020 10:54:58 +0000 (10:54 +0000)
I did a whole bunch of validation and it essentially works.

Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6215>

src/amd/vulkan/radv_formats.c

index 9360fb31bcc986eb051c7f70ce43bdce5f978e0f..6f7708d9b242a16fbe2d801dadbefb3664479fe7 100644 (file)
@@ -624,6 +624,7 @@ radv_device_supports_etc(struct radv_physical_device *physical_device)
 {
        return physical_device->rad_info.family == CHIP_VEGA10 ||
               physical_device->rad_info.family == CHIP_RAVEN ||
+              physical_device->rad_info.family == CHIP_RAVEN2 ||
               physical_device->rad_info.family == CHIP_STONEY;
 }