radv: align buffer descriptor sizes to dword
authorRhys Perry <pendingchaos02@gmail.com>
Fri, 10 Apr 2020 13:25:46 +0000 (14:25 +0100)
committerMarge Bot <eric+marge@anholt.net>
Fri, 24 Apr 2020 18:52:54 +0000 (18:52 +0000)
commit51363bd4751c2f8e388c229fe91507a7a181517c
tree1efe34de27ccdb4775607329c3d7c77a78ad6150
parent62ff2ff8086fd3bbff02004628e0c7498fe3294e
radv: align buffer descriptor sizes to dword

This is needed to prevent bounds checking issues when load 8/16-bit values
with dword loads.

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4639>
src/amd/vulkan/radv_constants.h
src/amd/vulkan/radv_descriptor_set.c