panfrost: protect access to shared bo cache and transient pool
authorRohan Garg <rohan.garg@collabora.com>
Fri, 30 Aug 2019 16:00:13 +0000 (18:00 +0200)
committerBoris Brezillon <boris.brezillon@collabora.com>
Fri, 30 Aug 2019 20:10:49 +0000 (22:10 +0200)
commitb2ff2dfc2a8797260d7b87a5cc6188d891f713ff
tree82a932b7d39f61ab3ba8040d47983eb781883c75
parent6b0dc3d53011b384798bcdb5d5e804d7482a3247
panfrost: protect access to shared bo cache and transient pool

Both the BO cache and the transient pool are shared across
context's. Protect access to these with mutexes.

Signed-off-by: Rohan Garg <rohan.garg@collabora.com>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
src/gallium/drivers/panfrost/pan_allocate.c
src/gallium/drivers/panfrost/pan_bo_cache.c
src/gallium/drivers/panfrost/pan_job.c
src/gallium/drivers/panfrost/pan_screen.c
src/gallium/drivers/panfrost/pan_screen.h