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

Author: Samuel Pitoiset <samuel.pitoi...@gmail.com>
Date:   Tue Jul 10 16:13:41 2018 +0200

radv: remove one useless check in radv_bind_descriptor_set()

'set' shouldn't be NULL.

Signed-off-by: Samuel Pitoiset <samuel.pitoi...@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <b...@basnieuwenhuizen.nl>

---

 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 41435d0649..5d945ddafc 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) {

_______________________________________________
mesa-commit mailing list
mesa-commit@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to