mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-25 09:20:30 +01:00
radv: make sure to zero-initialize image view descriptors
This prevents a regression from the next commit which would write garbage for combined image+sampler descriptors and that might break capture&replay. It seems also more robust to write zeroes than garbage overall. Cc: mesa-stable Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35455>
This commit is contained in:
parent
6e57f3738d
commit
22e06d65d7
1 changed files with 2 additions and 0 deletions
|
|
@ -506,6 +506,8 @@ radv_image_view_init(struct radv_image_view *iview, struct radv_device *device,
|
|||
bool from_client = extra_create_info && extra_create_info->from_client;
|
||||
vk_image_view_init(&device->vk, &iview->vk, !from_client, pCreateInfo);
|
||||
|
||||
memset(&iview->descriptor, 0, sizeof(iview->descriptor));
|
||||
|
||||
iview->image = image;
|
||||
iview->plane_id = radv_plane_from_aspect(pCreateInfo->subresourceRange.aspectMask);
|
||||
iview->nbc_view.valid = false;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue