diff options
author | Samuel Pitoiset <[email protected]> | 2018-07-10 16:13:41 +0200 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2018-07-12 11:08:47 +0200 |
commit | 826b3a87735210fd297f36e2ae78d65d2240cb81 (patch) | |
tree | 65fbddb855d6dca1c28012c7add329fe3c73e115 /src/amd/vulkan | |
parent | 6bfbc7b38b581e1a634b07bb5f3b3870c0a57317 (diff) |
radv: remove one useless check in radv_bind_descriptor_set()
'set' shouldn't be NULL.
Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src/amd/vulkan')
-rw-r--r-- | src/amd/vulkan/radv_cmd_buffer.c | 3 |
1 files changed, 1 insertions, 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) { |