summaryrefslogtreecommitdiffstats
path: root/src/amd/vulkan/radv_meta_clear.c
diff options
context:
space:
mode:
authorBas Nieuwenhuizen <[email protected]>2017-05-09 00:44:57 +0200
committerBas Nieuwenhuizen <[email protected]>2017-05-22 20:07:21 +0200
commit62e182acd0b20eeb8ed3628048000b6ea4263f11 (patch)
tree728fd05a1922d34a039d7f7982098eb92872a205 /src/amd/vulkan/radv_meta_clear.c
parent7174e3f22bdcfa280e0abcec0d3fc3566b66bbd8 (diff)
radv: Don't use a separate can_expclear.
We never use EXPCLEAR clears. Signed-off-by: Bas Nieuwenhuizen <[email protected]> Reviewed-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/amd/vulkan/radv_meta_clear.c')
-rw-r--r--src/amd/vulkan/radv_meta_clear.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/amd/vulkan/radv_meta_clear.c b/src/amd/vulkan/radv_meta_clear.c
index 57b812d2b14..18b4ca9ba2b 100644
--- a/src/amd/vulkan/radv_meta_clear.c
+++ b/src/amd/vulkan/radv_meta_clear.c
@@ -551,7 +551,7 @@ static bool depth_view_can_fast_clear(const struct radv_image_view *iview,
if (iview->image->surface.htile_size &&
iview->base_mip == 0 &&
iview->base_layer == 0 &&
- radv_layout_can_expclear(iview->image, layout) &&
+ radv_layout_is_htile_compressed(iview->image, layout) &&
!radv_image_extent_compare(iview->image, &iview->extent))
return true;
return false;