summaryrefslogtreecommitdiffstats
path: root/src/amd
diff options
context:
space:
mode:
authorSamuel Pitoiset <[email protected]>2017-09-28 11:18:01 +0200
committerSamuel Pitoiset <[email protected]>2017-10-02 11:56:20 +0200
commit87f4e432e3a973f7e299f11a3d93f85a3c241bfd (patch)
tree31834cfb1d7298ad17cb2304e00b01e0bd293029 /src/amd
parent689930f670cf54ec4bf0137e8853cb206f24d967 (diff)
radv: drop useless check in depth_view_can_fast_clear()
Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src/amd')
-rw-r--r--src/amd/vulkan/radv_meta_clear.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/amd/vulkan/radv_meta_clear.c b/src/amd/vulkan/radv_meta_clear.c
index 71c4dbcbd6b..9b67c062d6c 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))