[Mesa-dev] [PATCH 1/2] radv: don't check the number of levels in emit_fast_color_clear()

Samuel Pitoiset samuel.pitoiset at gmail.com
Wed Jun 13 18:37:07 UTC 2018


This is useless because we don't support DCC/CMASK for mipmaps.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
---
 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 fae441ceb66..28050079f92 100644
--- a/src/amd/vulkan/radv_meta_clear.c
+++ b/src/amd/vulkan/radv_meta_clear.c
@@ -1008,9 +1008,6 @@ emit_fast_color_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 (iview->image->surface.is_linear)
 		goto fail;
 	if (!radv_image_extent_compare(iview->image, &iview->extent))
-- 
2.17.1



More information about the mesa-dev mailing list