mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-26 21:30:09 +01:00
draw->cur_num_back is no longer used for immediately reducing the number of allocated back buffers. It just reflects how many of them are currently allocated, and is used to prevent allocating more if the current maximum is already reached. This fixes an issue where the current in-progress back buffer could get freed, which would result in visible artifacts. Unused buffers are freed once they exceed buffer age 200. This ensures we do not keep around more buffers than necessary in the long run. v2: * Drop buffer age threshold to 200. This will free unused buffers more quickly, and seems enough to avoid doing so prematurely even with "glxgears -fullscreen" running at thousands of frames per second. * Use "buf_id != LOADER_DRI3_FRONT_ID". (Pierre-Eric Pelloux-Prayer) * Simplify loader_dri3_get_buffers changes slightly. * We can now use any unallocated back buffer slot in dri3_find_back. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20385> |
||
|---|---|---|
| .. | ||
| loader.c | ||
| loader.h | ||
| loader_dri3_helper.c | ||
| loader_dri3_helper.h | ||
| loader_dri_helper.c | ||
| loader_dri_helper.h | ||
| meson.build | ||
| pci_id_driver_map.h | ||