lima: allocate new bo for stream draw
authorErico Nunes <nunes.erico@gmail.com>
Sat, 29 Aug 2020 14:32:24 +0000 (16:32 +0200)
committerMarge Bot <eric+marge@anholt.net>
Sat, 19 Sep 2020 09:41:33 +0000 (09:41 +0000)
commit6a1926035bd5d0fb39ab3c7de7662cc552a5dc02
tree9a4f32983b754485156b39ac0dcce64cd9a313b9
parent017ca86b2230b168f8a4fdffc2b56fd7d77df049
lima: allocate new bo for stream draw

In stream draws, the resource bo might be in use in a previous draw.
Allocate a new one for the resource to avoid overwriting data in use.

Signed-off-by: Erico Nunes <nunes.erico@gmail.com>
Reviewed-by: Vasily Khoruzhick <anarsoul@gmail.com>
Reviewed-by: Qiang Yu <yuq825@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6503>
src/gallium/drivers/lima/lima_resource.c