vbo: optimize resizing vertex attributes during immediate mode
authorMarek Olšák <marek.olsak@amd.com>
Thu, 30 Jan 2020 03:09:20 +0000 (22:09 -0500)
committerMarge Bot <eric+marge@anholt.net>
Tue, 11 Feb 2020 00:34:57 +0000 (00:34 +0000)
commit077a843c27d84d4531074bbc477391e886a7ba71
tree0e3ab06a17503cd50b4f9d94946ef22061381258
parent1f6e53e2437690de9a84e47f5587ff359b8484f2
vbo: optimize resizing vertex attributes during immediate mode

Just move data manually instead of copying all attributes back and forth.

This increases performance by 5% for Viewperf11/Catia - first scene.

Reviewed-by: Mathias Fröhlich <mathias.froehlich@web.de>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3766>
src/mesa/vbo/vbo_exec_api.c