radv/gfx10: increase maximum number of levels to 14
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 25 Jun 2019 06:47:35 +0000 (08:47 +0200)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Sun, 7 Jul 2019 15:03:38 +0000 (17:03 +0200)
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/radv_formats.c

index 2e0a140d395e79f5d44721d10885711fe1ac7fb0..95b59b56ecfe58306d739f65a6c77f880d018d52 100644 (file)
@@ -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;
        }