radv/winsys: remove useless check when binding virtual buffers/images
Size must be greater than 0. 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/5872>
This commit is contained in:

committed by
Marge Bot

parent
f0112fa13c
commit
4b58e35a2a
@@ -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;
|
||||
|
Reference in New Issue
Block a user