mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-04 00:30:11 +01:00
radv: remove unnecessary NULL check in TrimCommandPool()
This function seems rarely used or maybe never but I noticed this.
From the Vulkan spec:
"VUID-vkTrimCommandPool-commandPool-parameter
commandPool must be a valid VkCommandPool handle".
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15164>
This commit is contained in:
parent
269b1232ee
commit
01ec899083
1 changed files with 0 additions and 3 deletions
|
|
@ -5811,9 +5811,6 @@ radv_TrimCommandPool(VkDevice device, VkCommandPool commandPool, VkCommandPoolTr
|
|||
{
|
||||
RADV_FROM_HANDLE(radv_cmd_pool, pool, commandPool);
|
||||
|
||||
if (!pool)
|
||||
return;
|
||||
|
||||
list_for_each_entry_safe(struct radv_cmd_buffer, cmd_buffer, &pool->free_cmd_buffers, pool_link)
|
||||
{
|
||||
radv_destroy_cmd_buffer(cmd_buffer);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue