lima: allocate separate bo to store varyings
authorErico Nunes <nunes.erico@gmail.com>
Wed, 23 Oct 2019 22:27:22 +0000 (00:27 +0200)
committerErico Nunes <nunes.erico@gmail.com>
Sat, 14 Dec 2019 06:44:43 +0000 (07:44 +0100)
commit270c282a43a2dc30558ebb709d4a25f8dbc71a58
treee6fc0d7f46402b5a42a147aef59174a659272a92
parent8bf2b5db786b8608ddd7c83fffa695ae011bf6b3
lima: allocate separate bo to store varyings

The current strategy using the suballocator with fixed size doesn't
scale and causes some programs with large number of vertices (like some
glmark2 scenes) to crash.
Change it to dynamically allocate a separate bo to accomodate for
arbitrary number of vertices.
This also fixes the buffer read/write flags for gp.

Signed-off-by: Erico Nunes <nunes.erico@gmail.com>
Reviewed-by: Vasily Khoruzhick <anarsoul@gmail.com>
Reviewed-by: Andreas Baierl <ichgeh@imkreisrum.de>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/2445>
src/gallium/drivers/lima/lima_context.h
src/gallium/drivers/lima/lima_draw.c