vbo: also map the immediate mode buffer for read
authorMarek Olšák <marek.olsak@amd.com>
Sat, 1 Feb 2020 01:50:42 +0000 (20:50 -0500)
committerMarge Bot <eric+marge@anholt.net>
Tue, 11 Feb 2020 00:34:57 +0000 (00:34 +0000)
commitee5bd8638bd123ab3ea49d513f8bba9e7cd4ae28
tree5fbfabb8638b3163d15f4c67eb78d783228af2df
parent27bd241103e8fa1fc34859cac6bd23d5a5fb04fe
vbo: also map the immediate mode buffer for read

because we read from it sometimes and we want cached reads.

We can only do it with the persistent mapping, because the non-persistent
mapping uses incompatible flags.

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_draw.c