mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-23 12:58:09 +02:00
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> |
||
|---|---|---|
| .. | ||
| panvk_cmd_buffer.h | ||
| panvk_event.h | ||
| panvk_queue.h | ||
| panvk_vX_cmd_buffer.c | ||
| panvk_vX_cmd_dispatch.c | ||
| panvk_vX_cmd_draw.c | ||
| panvk_vX_cmd_event.c | ||
| panvk_vX_cmd_precomp.c | ||
| panvk_vX_cmd_query.c | ||
| panvk_vX_event.c | ||
| panvk_vX_gpu_queue.c | ||