summaryrefslogtreecommitdiffstats
path: root/src/amd
diff options
context:
space:
mode:
authorBas Nieuwenhuizen <[email protected]>2018-07-28 14:01:42 +0200
committerBas Nieuwenhuizen <[email protected]>2018-08-14 22:11:04 +0200
commit4bb6c49375ecc36b32331cc53f90c89d0eb4c8f0 (patch)
tree46680ad3661c8c180f86c5114000a19bd1e43e7d /src/amd
parentbf33ca751252e9735418e33bacd257a8b431b102 (diff)
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 <[email protected]>
Diffstat (limited to 'src/amd')
-rw-r--r--src/amd/vulkan/radv_formats.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/amd/vulkan/radv_formats.c b/src/amd/vulkan/radv_formats.c
index f23ebfb2ad7..f0cc0fc5f95 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;