radv: do not check the number of levels when doing fast htile
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 29 Sep 2017 15:11:12 +0000 (17:11 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 2 Oct 2017 09:56:20 +0000 (11:56 +0200)
We shouldn't reach this point because HTILE is only enabled
when the number of levels is 1.

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

index 64d3bac7f1bdf4fee428bf74832a41a528afc370..1133024d588eef43051aebf1fe9ab94c10b35fa6 100644 (file)
@@ -693,9 +693,6 @@ emit_fast_htile_clear(struct radv_cmd_buffer *cmd_buffer,
        if (iview->image->info.array_size != iview->layer_count)
                goto fail;
 
-       if (iview->image->info.levels > 1)
-               goto fail;
-
        if (!radv_image_extent_compare(iview->image, &iview->extent))
                goto fail;