diff options
author | Matt Coster <matt.coster@imgtec.com> | 2023-05-02 14:28:28 +0100 |
---|---|---|
committer | Marge Bot <emma+marge@anholt.net> | 2023-05-15 10:31:28 +0000 |
commit | 36db17dfa5b48287830becc8ff41100f8b8bf0ac (patch) | |
tree | fe933f264d61459ee468160254332ffd12ebe4c1 | |
parent | 5f8320bd0485b6e43387b3a7ef99e624cebc84e9 (diff) | |
download | mesa-36db17dfa5b48287830becc8ff41100f8b8bf0ac.tar.gz |
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>
-rw-r--r-- | src/imagination/vulkan/pvr_image.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/imagination/vulkan/pvr_image.c b/src/imagination/vulkan/pvr_image.c index 19d5240b2ad..c9067750db7 100644 --- a/src/imagination/vulkan/pvr_image.c +++ b/src/imagination/vulkan/pvr_image.c @@ -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; |