radv: drop useless check in depth_view_can_fast_clear()
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 28 Sep 2017 09:18:01 +0000 (11:18 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 2 Oct 2017 09:56:20 +0000 (11:56 +0200)
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/radv_meta_clear.c

index 71c4dbcbd6b5e4565e50f4b52254b21a27345f55..9b67c062d6c8eab7de4f77a179045f92a4c1f72a 100644 (file)
@@ -553,8 +553,7 @@ static bool depth_view_can_fast_clear(struct radv_cmd_buffer *cmd_buffer,
            clear_rect->rect.extent.width != iview->extent.width ||
            clear_rect->rect.extent.height != iview->extent.height)
                return false;
-       if (iview->image->surface.htile_size &&
-           iview->base_mip == 0 &&
+       if (iview->base_mip == 0 &&
            iview->base_layer == 0 &&
            radv_layout_is_htile_compressed(iview->image, layout, queue_mask) &&
            !radv_image_extent_compare(iview->image, &iview->extent))