mesa/src
Caio Oliveira c005b5a16f util: Avoid waste space when linear alloc'ing large sizes
In the linear allocator, when a size larger than the minimum
buffer size is allocated, we currently create the new buffer
to fit exactly the requested size.

In that case, don't bother updating the `latest` pointer, since
this newly created buffer is already full.  In the worst case,
the current `latest` is full and it would be the same; in the
best case, there's still room for small allocations, so we avoid
wasting space if the next allocations would fit.

Reviewed-by: Emma Anholt <emma@anholt.net>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25517>
2023-10-08 00:55:20 +00:00
..
amd radv: fix re-emitting streamout descriptors for NGG streamout 2023-10-06 22:51:31 +00:00
android_stub
asahi asahi: decode: Fix uint64_t format modifiers in agxdecode_stateful() 2023-10-01 12:37:55 -04:00
broadcom v3d/ci: move traces job to wayland 2023-10-07 21:04:40 +00:00
c11 util/meson: Getting mesa util core to be self contained 2023-08-02 03:41:24 +00:00
compiler nir: handle nir_var_mem_ubo in nir_clone_uniform_variable 2023-10-07 11:18:40 +00:00
drm-shim drm-shim: Avoid assertion fail if someone does close(-1). 2023-06-01 01:50:41 +00:00
egl egl/wayland: Don't segfault if create_wl_buffer returns NULL 2023-10-06 18:31:29 +00:00
etnaviv ci/etnaviv: return gl-1.4-tex1d-2dborder as a known flake 2023-10-06 04:06:29 +00:00
freedreno tu,util/driconf: Add option to not reserve descriptor set 2023-10-07 18:15:02 +00:00
gallium virgl: Use common clear_texture if host doesn't support the feature 2023-10-07 09:20:57 +00:00
gbm egl/drm: Assume modern DRI interface versions 2023-07-28 12:25:19 +00:00
getopt
glx glx: XFree visual info 2023-09-28 12:17:49 +00:00
gtest gtest: backport ansi color fix 2023-08-18 21:33:14 +00:00
imagination pvr: Force compile error on GNU void pointer arithmetic 2023-09-27 15:25:32 +00:00
imgui
intel anv: fix index buffer size programming 2023-10-07 17:30:17 +00:00
loader loader: add DRI_PRIME_DEBUG env var 2023-09-18 07:45:27 +00:00
mapi glthread: sync for VDPAU sync functions 2023-08-17 04:53:37 +00:00
mesa mesa: Fix glBegin/End when LINE_LOOP is not supported 2023-10-05 21:52:37 +00:00
microsoft ci: skip dEQP-VK.api.driver_properties.conformance_version for everyone 2023-10-06 17:37:20 +00:00
nouveau nvk: set optimization level to 3 2023-10-07 23:39:32 +00:00
panfrost panfrost: Add GPU variant of G57 to the set of known ids 2023-10-04 16:32:05 +00:00
tool pps-producer: add ability to select device with DRI_PRIME 2023-09-07 10:44:51 +00:00
util util: Avoid waste space when linear alloc'ing large sizes 2023-10-08 00:55:20 +00:00
virtio venus: fix re-export of imported classic 3d resources 2023-10-07 00:22:02 +00:00
vulkan vulkan/runtime, radv: remove 1D support from ETC2 emulation 2023-10-06 00:55:18 +00:00
.clang-format nir: Add nir_foreach_block_in_cf_node_reverse 2023-09-22 10:05:58 +00:00
meson.build nvk: add vulkan skeleton 2023-08-04 21:31:52 +00:00