Mesa (master): radv: drop useless check in depth_view_can_fast_clear()
Samuel Pitoiset
hakzsam at kemper.freedesktop.org
Mon Oct 2 09:57:10 UTC 2017
Module: Mesa
Branch: master
Commit: 87f4e432e3a973f7e299f11a3d93f85a3c241bfd
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=87f4e432e3a973f7e299f11a3d93f85a3c241bfd
Author: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Date: Thu Sep 28 11:18:01 2017 +0200
radv: drop useless check in depth_view_can_fast_clear()
Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>
---
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 71c4dbcbd6..9b67c062d6 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_is_htile_compressed(iview->image, layout, queue_mask) &&
!radv_image_extent_compare(iview->image, &iview->extent))
More information about the mesa-commit
mailing list