Mesa (master): radv: remove redundant check in radv_process_depth_stencil()

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Jan 20 17:32:56 UTC 2021


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

Author: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Date:   Tue Jan 19 17:48:18 2021 +0100

radv: remove redundant check in radv_process_depth_stencil()

This is already checked in radv_handle_depth_image_transition().

Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8579>

---

 src/amd/vulkan/radv_meta_decompress.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/src/amd/vulkan/radv_meta_decompress.c b/src/amd/vulkan/radv_meta_decompress.c
index 4ac3c25f506..011c353b355 100644
--- a/src/amd/vulkan/radv_meta_decompress.c
+++ b/src/amd/vulkan/radv_meta_decompress.c
@@ -481,9 +481,6 @@ static void radv_process_depth_stencil(struct radv_cmd_buffer *cmd_buffer,
 	VkCommandBuffer cmd_buffer_h = radv_cmd_buffer_to_handle(cmd_buffer);
 	VkPipeline *pipeline;
 
-	if (!radv_image_has_htile(image))
-		return;
-
 	radv_meta_save(&saved_state, cmd_buffer,
 		       RADV_META_SAVE_GRAPHICS_PIPELINE |
 		       RADV_META_SAVE_SAMPLE_LOCATIONS |



More information about the mesa-commit mailing list