Mesa (staging/18.2): radv: Allow ETC2 on RAVEN and VEGA10 instead of all GFX9.

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Aug 15 07:59:05 UTC 2018


Module: Mesa
Branch: staging/18.2
Commit: d82c36a4c7f561b4bfde7ab57f925214d290c8ee
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=d82c36a4c7f561b4bfde7ab57f925214d290c8ee

Author: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>
Date:   Sat Jul 28 14:01:42 2018 +0200

radv: Allow ETC2 on RAVEN and VEGA10 instead of all GFX9.

Follow radeonsi.

Fixes: 3665f66ef26 "radv: Add support for ETC2 textures."
Reviewed-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
(cherry picked from commit 4bb6c49375ecc36b32331cc53f90c89d0eb4c8f0)

---

 src/amd/vulkan/radv_formats.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/amd/vulkan/radv_formats.c b/src/amd/vulkan/radv_formats.c
index f23ebfb2ad..f0cc0fc5f9 100644
--- a/src/amd/vulkan/radv_formats.c
+++ b/src/amd/vulkan/radv_formats.c
@@ -612,7 +612,8 @@ radv_physical_device_get_format_properties(struct radv_physical_device *physical
 	}
 
 	if (desc->layout == VK_FORMAT_LAYOUT_ETC &&
-	    physical_device->rad_info.chip_class < GFX9 &&
+	    physical_device->rad_info.family != CHIP_VEGA10 &&
+	    physical_device->rad_info.family != CHIP_RAVEN &&
 	    physical_device->rad_info.family != CHIP_STONEY) {
 		out_properties->linearTilingFeatures = linear;
 		out_properties->optimalTilingFeatures = tiled;




More information about the mesa-commit mailing list