mesa/src/imagination
Jarred Davies 1115a29025 pvr: Fix segfaults when pDepthStencilAttachment is NULL
depth_stencil_attachment has been changed from a pointer to the attachment idx
to just the attachment idx, as this avoids the driver having to check for NULL
when comparing attachments indexes with depth_stencil_attachment.

Anyplace that relies on depth_stencil_attachment being a valid index must
already check that depth_stencil_attachment is not VK_ATTACHMENT_UNUSED, so
this change avoids having to check both the pointer and the index for the same
information.

Noticed when running dEQP-VK.api.smoke.triangle

Signed-off-by: Jarred Davies <jarred.davies@imgtec.com>

Reviewed-by: Frank Binns <frank.binns@imgtec.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21690>
2023-03-14 19:27:27 +00:00
..
common pvr: debug: Add option to zero-alloc all buffer objects 2022-12-01 15:05:59 +00:00
csbgen pvr: Add firmware stream support for transfer submit 2023-02-08 16:33:35 +00:00
include pvr: Check depth/stencil attachment is tile-aligned 2022-12-08 14:53:13 +00:00
rogue pvr: Add encodings for index registers 2023-02-24 11:29:48 +00:00
vulkan pvr: Fix segfaults when pDepthStencilAttachment is NULL 2023-03-14 19:27:27 +00:00
.clang-format pvr: Add support for validating modifier combos 2023-02-24 11:29:48 +00:00
.dir-locals.el
.editorconfig pvr: Change indentation from tab to spaces for xml files. 2022-08-31 08:26:17 +00:00
meson.build