pvr: Initialize aspect_mask when creating buffer views

Fixes random aborts in CSB handling.

Signed-off-by: Matt Coster <matt.coster@imgtec.com>
Reported-by: James Glanville <james.glanville@imgtec.com>
Reviewed-by: Karmjit Mahil <Karmjit.Mahil@imgtec.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22868>
This commit is contained in:
Matt Coster 2023-05-02 14:28:28 +01:00 committed by Marge Bot
parent 5f8320bd04
commit 36db17dfa5

View file

@ -427,6 +427,7 @@ VkResult pvr_CreateBufferView(VkDevice _device,
info.tex_state_type = PVR_TEXTURE_STATE_SAMPLE;
info.format = bview->format;
info.flags = PVR_TEXFLAGS_INDEX_LOOKUP;
info.aspect_mask = VK_IMAGE_ASPECT_COLOR_BIT;
if (PVR_HAS_FEATURE(&device->pdevice->dev_info, tpu_array_textures))
info.array_size = 1U;