Mesa (master): radv: do not check the number of levels when doing fast htile

Samuel Pitoiset hakzsam at kemper.freedesktop.org
Mon Oct 2 09:57:10 UTC 2017


Module: Mesa
Branch: master
Commit: 6f1447c09021bee9d4c442a1c8395ea8a90e4559
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=6f1447c09021bee9d4c442a1c8395ea8a90e4559

Author: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Date:   Fri Sep 29 17:11:12 2017 +0200

radv: do not check the number of levels when doing fast htile

We shouldn't reach this point because HTILE is only enabled
when the number of levels is 1.

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, 3 deletions(-)

diff --git a/src/amd/vulkan/radv_meta_clear.c b/src/amd/vulkan/radv_meta_clear.c
index 64d3bac7f1..1133024d58 100644
--- a/src/amd/vulkan/radv_meta_clear.c
+++ b/src/amd/vulkan/radv_meta_clear.c
@@ -693,9 +693,6 @@ emit_fast_htile_clear(struct radv_cmd_buffer *cmd_buffer,
 	if (iview->image->info.array_size != iview->layer_count)
 		goto fail;
 
-	if (iview->image->info.levels > 1)
-		goto fail;
-
 	if (!radv_image_extent_compare(iview->image, &iview->extent))
 		goto fail;
 




More information about the mesa-commit mailing list