radv: fix access to uninitialized radeon_bo_metadata
authorSimon Ser <contact@emersion.fr>
Thu, 3 Dec 2020 15:03:15 +0000 (16:03 +0100)
committerMarge Bot <eric+marge@anholt.net>
Mon, 14 Dec 2020 14:59:49 +0000 (14:59 +0000)
commitad19b0714a8d3cb51121b09b6e3915439d5f3452
treec9c25a5f634a66ebb30dd92701b19fc32137763c
parent614c77772ac2f48955537efcfefaf0609d6c03e5
radv: fix access to uninitialized radeon_bo_metadata

If the image tiling is set to VK_IMAGE_TILING_LINEAR,
buffer_set_metadata will read an uninitialized radeon_bo_metadata.

Signed-off-by: Simon Ser <contact@emersion.fr>
Fixes: d5fd8cd46eee ("radv: Allow non-dedicated linear images and buffer.")
Cc: mesa-stable
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7898>
src/amd/vulkan/radv_device.c