vbo/dlist: keep buffers used in loopback_vertex_list() mapped.
authorPaul Gofman <pgofman@codeweavers.com>
Tue, 28 Jun 2022 01:39:04 +0000 (20:39 -0500)
committerMarge Bot <emma+marge@anholt.net>
Fri, 23 Sep 2022 04:41:50 +0000 (04:41 +0000)
commite7e989f62e9c1887bc6ac24a2bf46d4e9470fa1f
treed0a9be2bc91e338dae8eca46df7f3e42099ce6e7
parent4d44399c2e018c2ca77e612afba1d0833b32a8fb
vbo/dlist: keep buffers used in loopback_vertex_list() mapped.

When display list loopback path is hit the major performance
drop during glCallList() happens due to constantly mapping and
unmapping the buffer.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17285>
src/mesa/main/dlist.c
src/mesa/vbo/vbo_save.h
src/mesa/vbo/vbo_save_api.c
src/mesa/vbo/vbo_save_draw.c