radv: Initialize BO pointers when creating preambles.
authorTimur Kristóf <timur.kristof@gmail.com>
Thu, 5 May 2022 17:17:42 +0000 (19:17 +0200)
committerTimur Kristóf <timur.kristof@gmail.com>
Tue, 10 May 2022 08:19:34 +0000 (10:19 +0200)
commitd83213ec58086e4cb99c3524ecc90533779435ed
tree0cc728ee7d56186cb4365dd9fef79770e9afb84a
parent1154ee73c1488790ea3204356c1edab5c1780273
radv: Initialize BO pointers when creating preambles.

This aims to improve the readability of this function.

Initialize the BO pointers to the queue's current pointers
at the beginning instead of in the else branches later.

Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
Reviewed-By: Tatsuyuki Ishi <ishitatsuyuki@gmail.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16358>
src/amd/vulkan/radv_device.c