radv: Fix dword alignment in SDMA buffer copy.
authorTimur Kristóf <timur.kristof@gmail.com>
Tue, 18 Apr 2023 11:26:19 +0000 (13:26 +0200)
committerMarge Bot <emma+marge@anholt.net>
Thu, 20 Apr 2023 00:46:01 +0000 (00:46 +0000)
commitb32556b058a9fb04355fb68d53c29c6e541b6990
treef2783deec6e352a4e7ddb45ac4a9fa8df61d4357
parentcf181fef68dbb9d91ef019c9ae5c33f4290c2dad
radv: Fix dword alignment in SDMA buffer copy.

Also add a comment that explains the dword aligned mode.

Note that the SDMA shader uploads are always dword aligned
so this commit doesn't fix any issues but just prepares this
function for more general use.

Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Tatsuyuki Ishi <ishitatsuyuki@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22551>
src/amd/vulkan/radv_sdma_copy_image.c