[Mesa-dev] [PATCH 2/2] radv: don't check if format is depth in radv_image_can_enable_hile()

Samuel Pitoiset samuel.pitoiset at gmail.com
Wed Dec 12 13:15:53 UTC 2018


This is always TRUE if htile_size is not 0.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
---
 src/amd/vulkan/radv_image.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/src/amd/vulkan/radv_image.c b/src/amd/vulkan/radv_image.c
index b1044639fdf..9b7564985a6 100644
--- a/src/amd/vulkan/radv_image.c
+++ b/src/amd/vulkan/radv_image.c
@@ -933,7 +933,6 @@ radv_image_can_enable_htile(struct radv_image *image)
 {
 	return radv_image_has_htile(image) &&
 	       image->info.levels == 1 &&
-	       vk_format_is_depth(image->vk_format) &&
 	       image->info.width * image->info.height >= 8 * 8;
 }
 
-- 
2.20.0



More information about the mesa-dev mailing list