nvk: Add a buffer alignment helper
authorFaith Ekstrand <faith.ekstrand@collabora.com>
Wed, 19 Jul 2023 22:34:27 +0000 (17:34 -0500)
committerMarge Bot <emma+marge@anholt.net>
Fri, 4 Aug 2023 21:32:06 +0000 (21:32 +0000)
commit0498eeba32f18ca22550c9cfdfe29dd902bfd36e
tree593f7505c6bf6aade975c42006056e39bf9072cc
parent6a0cc93bd41f80bed1edf744fbf7d7eedf9bdcb1
nvk: Add a buffer alignment helper

This consolodates buffer alignment calculations into one place,
including physical device queries, buffer creation, and buffer memory
requirements queries.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24326>
src/nouveau/vulkan/nvk_buffer.c
src/nouveau/vulkan/nvk_buffer.h
src/nouveau/vulkan/nvk_physical_device.c