mesa/src
Paulo Zanoni da396a49a0 anv/trtt: fix the creation of sparse buffers of size 2^32 on 32bit systems
When the VkBuffer is of size 2^32 (which matches maxBufferSize), we
have vm_bind->size set to 2^32, which is fine because it fits in an
uint64_t. What is not fine is the 'i' variable being size_t, because
on 32bit systems it will loop forever since it will always be smaller
than 2^32.

Credits to Iván for not only reporting it, but also coming up with the
solution at the same time as I did, then testing it.

Cc: mesa-stable
Reported-by: Iván Briano <ivan.briano@intel.com>
Reviewed-by: Iván Briano <ivan.briano@intel.com>
Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31698>
2024-10-18 04:10:47 +00:00
..
amd ci/amd: Reassign radv-raven-traces from zork to dalboz 2024-10-18 03:27:46 +00:00
android_stub vulkan/android: Add helper to probe AHB support 2024-05-14 14:53:44 +00:00
asahi nir: always emit ddx intrinsics 2024-10-17 09:50:19 +00:00
broadcom v3dv: fix leak during device initialization 2024-10-17 13:27:05 +00:00
c11 build: pass licensing information in SPDX form 2024-06-29 12:42:49 -07:00
compiler brw/nir: rework inline_data_intel to work with compute 2024-10-17 19:35:59 +00:00
drm-shim drm-shim: stub synobj_timeline_wait and query ioctl 2024-07-16 11:17:59 +02:00
egl egl/x11: Downgrade warning to info 2024-10-10 20:52:02 +00:00
etnaviv ci/etnaviv: unify job naming with the rest of the CI 2024-10-17 23:49:54 +00:00
freedreno ci/turnip: Rebalance kingoftown jobs 2024-10-18 03:27:46 +00:00
gallium ci/zink: Add skips for zink-anv-(adl|tgl) 2024-10-18 03:27:45 +00:00
gbm gbm: mark surface buffers as explicit flushed 2024-09-26 09:36:46 +00:00
getopt build: pass licensing information in SPDX form 2024-06-29 12:42:49 -07:00
gfxstream gfxstream: Use KHR version of the line_rasterization extension 2024-10-15 04:49:06 +00:00
glx glx: Destroy base screen after deinitScreen 2024-09-10 08:55:58 +02:00
gtest build: pass licensing information in SPDX form 2024-06-29 12:42:49 -07:00
imagination pvr: unify code into one condition 2024-10-02 12:16:19 +00:00
imgui
intel anv/trtt: fix the creation of sparse buffers of size 2^32 on 32bit systems 2024-10-18 04:10:47 +00:00
loader meson: remove dri-search-path 2024-09-19 05:06:50 +00:00
mapi mesa: OVR_multiview_multisampled_render_to_texture 2024-09-20 18:54:26 +00:00
mesa mesa/st: use drawable->ID as hash for drawable_ht 2024-10-17 21:43:32 +00:00
microsoft nir: always emit ddx intrinsics 2024-10-17 09:50:19 +00:00
nouveau nvk: Use nvk_queue_submit_simple() for nvk_queue_state_update() 2024-10-18 02:58:00 +00:00
panfrost ci/panfrost: Increment panfrost-g52-gl parallel no. 2024-10-18 03:27:46 +00:00
tool perfetto: Add Panfrost data sources to system.cfg 2024-08-22 18:33:45 +00:00
util driconf: set vk_zero_vram driconf for X4 Foundations 2024-10-17 22:19:33 +00:00
virtio virtio/drm: Update header 2024-10-17 18:17:18 +00:00
vulkan vulkan/util: add vk_format_has_float_depth() 2024-10-18 00:56:15 +00:00
x11 meson: require dri3 modifiers 2024-09-06 17:34:17 +00:00
.clang-format panfrost: Move ForEachMacros into panfrost 2024-09-12 20:04:58 +00:00
meson.build mesa: add gfxstream-experimental to -Dvulkan-drivers 2024-09-19 20:06:04 +00:00