[Mesa-dev] [PATCH 14/19] radv: drop useless check in depth_view_can_fast_clear()

Samuel Pitoiset samuel.pitoiset at gmail.com
Fri Sep 29 15:49:01 UTC 2017


Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
---
 src/amd/vulkan/radv_meta_clear.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/amd/vulkan/radv_meta_clear.c b/src/amd/vulkan/radv_meta_clear.c
index 458e2b8186..72efe4608e 100644
--- a/src/amd/vulkan/radv_meta_clear.c
+++ b/src/amd/vulkan/radv_meta_clear.c
@@ -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_has_htile(iview->image, layout, queue_mask) &&
 	    !radv_image_extent_compare(iview->image, &iview->extent))
-- 
2.14.2



More information about the mesa-dev mailing list