mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-30 23:28:06 +02:00
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:
parent
5f8320bd04
commit
36db17dfa5
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue