From 826b3a87735210fd297f36e2ae78d65d2240cb81 Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Tue, 10 Jul 2018 16:13:41 +0200 Subject: [PATCH] radv: remove one useless check in radv_bind_descriptor_set() 'set' shouldn't be NULL. Signed-off-by: Samuel Pitoiset Reviewed-by: Bas Nieuwenhuizen --- src/amd/vulkan/radv_cmd_buffer.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/amd/vulkan/radv_cmd_buffer.c b/src/amd/vulkan/radv_cmd_buffer.c index 41435d0649e..5d945ddafc3 100644 --- a/src/amd/vulkan/radv_cmd_buffer.c +++ b/src/amd/vulkan/radv_cmd_buffer.c @@ -2401,9 +2401,8 @@ radv_bind_descriptor_set(struct radv_cmd_buffer *cmd_buffer, struct radeon_winsys *ws = cmd_buffer->device->ws; radv_set_descriptor_set(cmd_buffer, bind_point, set, idx); - if (!set) - return; + assert(set); assert(!(set->layout->flags & VK_DESCRIPTOR_SET_LAYOUT_CREATE_PUSH_DESCRIPTOR_BIT_KHR)); if (!cmd_buffer->device->use_global_bo_list) { -- 2.30.2