From: Samuel Pitoiset Date: Tue, 21 Jul 2020 13:51:13 +0000 (+0200) Subject: radv/winsys: remove useless check when binding virtual buffers/images X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4b58e35a2a8d2c0fe4d1425631e7169e39884562;p=mesa.git 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: --- 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;