mesa/src/panfrost/vulkan/jm
Boris Brezillon 737fc5d3c1 pan/genxml: Make sure we catch overflows on 32-bit integer fields
If we store the temporary value in a [u]int32_t, the result might be
silently truncated, making the overflow check in the u_pack helpers
useless.

Make sure we use 64-bit fields as soon as the size is greater than 31
bits to prevent that.

It forces us to fix some types in the xml and helper arguments (sint
wrongly defined as uint) and add explicit casts on u32 subtraction
whose result is stored in an s32.

Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Lars-Ivar Hesselberg Simonsen <lars-ivar.simonsen@arm.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35555>
2025-06-25 12:10:37 +02:00
..
panvk_cmd_buffer.h pan: Use a consistent pan_ prefix across src/panfrost/* 2025-05-21 14:58:20 +02:00
panvk_event.h panvk: Move the VkEvent logic to the jm folder and make it per-arch 2024-08-23 14:38:59 +00:00
panvk_queue.h panvk: prepare for multiple queue types 2025-06-24 18:53:04 +00:00
panvk_vX_cmd_buffer.c panvk: fix case where vk_meta is used after PROVOKING_VERTEX_MODE_LAST 2025-05-26 04:15:22 +00:00
panvk_vX_cmd_dispatch.c panvk: Fix dependency chain on indirect dispatch for JM 2025-06-20 10:11:52 +00:00
panvk_vX_cmd_draw.c pan/genxml: Make sure we catch overflows on 32-bit integer fields 2025-06-25 12:10:37 +02:00
panvk_vX_cmd_event.c panvk: Add support for layered rendering 2024-06-27 10:57:39 +00:00
panvk_vX_cmd_precomp.c pan: Use a consistent pan_ prefix across src/panfrost/* 2025-05-21 14:58:20 +02:00
panvk_vX_cmd_query.c pan: Use a consistent pan_ prefix across src/panfrost/* 2025-05-21 14:58:20 +02:00
panvk_vX_event.c pan/kmod: Add drmIoctl() wrapper pan_kmod_ioctl() with CPU trace 2025-04-15 10:37:39 +00:00
panvk_vX_gpu_queue.c panvk: prepare for multiple queue types 2025-06-24 18:53:04 +00:00