radv: remove useless check in emit_fast_color_clear()
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 23 Nov 2018 16:04:09 +0000 (17:04 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 29 Nov 2018 09:18:42 +0000 (10:18 +0100)
The driver doesn't support DCC/CMASK for mipmapped textures.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/radv_meta_clear.c

index f2f5cb32eb9726e489a70f2732aaba3559f27f18..26bc5e75ef3bec3b9757253e37759360a553e5cc 100644 (file)
@@ -1366,9 +1366,6 @@ emit_fast_color_clear(struct radv_cmd_buffer *cmd_buffer,
        if (iview->image->info.array_size != iview->layer_count)
                return false;
 
-       if (iview->image->info.levels > 1)
-               return false;
-
        if (!radv_image_extent_compare(iview->image, &iview->extent))
                return false;