From: Samuel Pitoiset Date: Tue, 25 Jun 2019 06:47:35 +0000 (+0200) Subject: radv/gfx10: increase maximum number of levels to 14 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0213fe09b81b3325fa86e493f68f4f2fb293781d;p=mesa.git radv/gfx10: increase maximum number of levels to 14 Signed-off-by: Samuel Pitoiset Reviewed-by: Bas Nieuwenhuizen --- diff --git a/src/amd/vulkan/radv_formats.c b/src/amd/vulkan/radv_formats.c index 2e0a140d395..95b59b56ecf 100644 --- a/src/amd/vulkan/radv_formats.c +++ b/src/amd/vulkan/radv_formats.c @@ -1114,6 +1114,7 @@ static VkResult radv_get_image_format_properties(struct radv_physical_device *ph uint32_t maxArraySize; VkSampleCountFlags sampleCounts = VK_SAMPLE_COUNT_1_BIT; const struct vk_format_description *desc = vk_format_description(info->format); + enum chip_class chip_class = physical_device->rad_info.chip_class; radv_physical_device_get_format_properties(physical_device, info->format, &format_props); @@ -1152,7 +1153,7 @@ static VkResult radv_get_image_format_properties(struct radv_physical_device *ph maxExtent.width = 2048; maxExtent.height = 2048; maxExtent.depth = 2048; - maxMipLevels = 12; /* log2(maxWidth) + 1 */ + maxMipLevels = chip_class >= GFX10 ? 14 : 12; /* log2(maxWidth) + 1 */ maxArraySize = 1; break; }