mesa/src/panfrost/lib
Mary Guillemard 58e6c8f6c8 pan/lib, panvk: Ensure data_size is on 64 bits
It was previously possible to overflow the data_size calculation (for
example with width=4096, height=4096, array_size=256 and any format)

This was then causing GetImageMemoryRequirements2 to return a size of 0.

Fix "dEQP-VK.pipeline.*.render_to_image.core.2d_array.huge.width_height_layers.r8g8b8a8_unorm" failures.

Signed-off-by: Mary Guillemard <mary.guillemard@collabora.com>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Acked-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29670>
2024-06-13 14:48:32 +02:00
..
genxml panfrost: change default rounding mode for samplers 2024-05-30 13:35:26 +00:00
kmod pan/kmod: Make default allocator thread-safe 2024-05-07 11:11:28 +00:00
tests panfrost: Make pan_layout.c panfrost_device agnostic 2024-01-23 16:32:09 +00:00
.gitignore
meson.build panfrost/meson: remove redundant gallium include from meson files 2024-03-14 17:23:55 +00:00
pan_afbc.c panfrost: Add AFBC packing support for RG formats 2024-02-22 18:23:51 +00:00
pan_attributes.c panfrost: clang-format the tree 2022-12-24 02:22:57 +00:00
pan_blend.c pan/blend: Expose pan_blend_create_shader() 2024-05-22 14:13:16 +00:00
pan_blend.h pan/blend: Expose pan_blend_create_shader() 2024-05-22 14:13:16 +00:00
pan_blitter.c pan/jc: Drop unused pool argument passed to pan_jc_add_job() 2024-05-28 16:03:30 +00:00
pan_blitter.h panfrost: Make pan_blitter.{c,h} panfrost_device agnostic 2024-01-23 16:32:09 +00:00
pan_clear.c panfrost: pass blendable formats to pan_pack_color 2023-11-06 14:30:28 +01:00
pan_desc.c pan/desc: Add missing format in translate_s_format() 2024-05-28 16:03:30 +00:00
pan_desc.h panfrost: Make pan_desc.{c,h} panfrost_bo agnostic 2024-01-23 16:32:09 +00:00
pan_earlyzs.c panfrost: clang-format the tree 2022-12-24 02:22:57 +00:00
pan_earlyzs.h panfrost: clang-format the tree 2022-12-24 02:22:57 +00:00
pan_encoder.h panfrost: Make pan_encoder.h panfrost_device agnostic 2024-01-23 16:32:09 +00:00
pan_format.c panfrost: Don't try to set bifrost blendable format on midgard 2024-01-17 11:07:48 +00:00
pan_format.h panfrost: Move panfrost_is_yuv() to pan_format.h 2024-01-23 16:32:08 +00:00
pan_indirect_dispatch.c pan/jc: Drop unused pool argument passed to pan_jc_add_job() 2024-05-28 16:03:30 +00:00
pan_indirect_dispatch.h panfrost: Make pan_indirect_dispatch panfrost_device agnostic 2024-01-23 16:32:09 +00:00
pan_jc.h pan/jc: Drop unused pool argument passed to pan_jc_add_job() 2024-05-28 16:03:30 +00:00
pan_layout.c pan/lib, panvk: Ensure data_size is on 64 bits 2024-06-13 14:48:32 +02:00
pan_pool.h panfrost: Make pan_pool.h panfrost_{device,bo} agnostic 2024-01-23 16:32:09 +00:00
pan_props.c panfrost: Enable Mali-T600 2024-03-01 23:26:57 +00:00
pan_props.h panfrost: Prepare support for GPU variants 2024-03-01 10:42:43 +00:00
pan_samples.c panfrost: Make pan_sample.c panfrost_device agnostic 2024-01-23 16:32:09 +00:00
pan_samples.h panfrost: Make pan_sample.c panfrost_device agnostic 2024-01-23 16:32:09 +00:00
pan_scratch.c panfrost: clang-format the tree 2022-12-24 02:22:57 +00:00
pan_shader.c panfrost: Remove uneeded pan_device.h inclusions 2024-01-23 16:32:09 +00:00
pan_shader.h panfrost: Remove uneeded pan_device.h inclusions 2024-01-23 16:32:09 +00:00
pan_texture.c panfrost: untangle faces from layers 2024-05-23 10:18:07 +00:00
pan_texture.h pan/lib, panvk: Ensure data_size is on 64 bits 2024-06-13 14:48:32 +02:00
pan_tiler.c panfrost: Remove uneeded pan_device.h inclusions 2024-01-23 16:32:09 +00:00
pan_util.c panfrost: Make panfrost_format_to_bifrost_blend() a per-gen helper 2024-01-23 16:32:08 +00:00
pan_util.h panfrost: Make panfrost_format_to_bifrost_blend() a per-gen helper 2024-01-23 16:32:08 +00:00
wrap.h pan/decode: handle more than one panfrost_device 2023-08-14 22:41:10 +00:00