From 4b58e35a2a8d2c0fe4d1425631e7169e39884562 Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Tue, 21 Jul 2020 15:51:13 +0200 Subject: [PATCH] radv/winsys: remove useless check when binding virtual buffers/images Size must be greater than 0. Signed-off-by: Samuel Pitoiset Reviewed-by: Bas Nieuwenhuizen Part-of: --- src/amd/vulkan/winsys/amdgpu/radv_amdgpu_bo.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/amd/vulkan/winsys/amdgpu/radv_amdgpu_bo.c b/src/amd/vulkan/winsys/amdgpu/radv_amdgpu_bo.c index a1fbdf960f6..52b94f2e27a 100644 --- a/src/amd/vulkan/winsys/amdgpu/radv_amdgpu_bo.c +++ b/src/amd/vulkan/winsys/amdgpu/radv_amdgpu_bo.c @@ -169,9 +169,6 @@ radv_amdgpu_winsys_bo_virtual_bind(struct radeon_winsys_bo *_parent, assert(parent->is_virtual); assert(!bo || !bo->is_virtual); - if (!size) - return; - /* We have at most 2 new ranges (1 by the bind, and another one by splitting a range that contains the newly bound range). */ if (parent->range_capacity - parent->range_count < 2) { uint32_t range_capacity = parent->range_capacity + 2; -- 2.30.2