mesa/src/imagination
Frank Binns 886ad3b4ec pvr: fix array overflow in pvr_device_tile_buffer_ensure_cap()
The function didn't properly handle the case where the requested capacity was
less than the existing capacity. This led to the loop limit being some huge
number and it writing past the end of the 'buffers' array.

Partially fixes:
  dEQP-VK.renderpass.suballocation.multisample_resolve.r16g16b16a16_unorm
    .max_attachments_8_samples_2

The test no longer hangs, but segfaults instead.

Signed-off-by: Frank Binns <frank.binns@imgtec.com>
Reviewed-by: Karmjit Mahil <Karmjit.Mahil@imgtec.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23104>
2023-05-19 10:44:27 +00:00
..
common pvr: Add PVR_DEBUG=vk_desc option to dump descriptor set layouts 2023-05-18 11:49:58 +00:00
csbgen pvr: add GUARD_SIZE_DEFAULT for CDM and VDM control stream links 1 and 2 2023-05-10 13:13:07 +00:00
include pvr: Transfer fix blit with multiple emits 2023-05-16 18:09:03 +00:00
rogue nir: Drop unused name from nir_ssa_dest_init 2023-05-17 23:46:16 +00:00
vulkan pvr: fix array overflow in pvr_device_tile_buffer_ensure_cap() 2023-05-19 10:44: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