panfrost: Jobs must be per context, not per screen
authorRohan Garg <rohan.garg@collabora.com>
Fri, 30 Aug 2019 16:00:12 +0000 (18:00 +0200)
committerBoris Brezillon <boris.brezillon@collabora.com>
Fri, 30 Aug 2019 20:06:54 +0000 (22:06 +0200)
commit6b0dc3d53011b384798bcdb5d5e804d7482a3247
tree414572b258a75a860b486735328aff6800f32508
parentbd98470a4692860004c1e9282808a638758c6f04
panfrost: Jobs must be per context, not per screen

Jobs _must_ only be shared across the same context, having
the last_job tracked in a screen causes use-after-free issues
and memory corruptions.

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_context.c
src/gallium/drivers/panfrost/pan_context.h
src/gallium/drivers/panfrost/pan_drm.c
src/gallium/drivers/panfrost/pan_screen.c
src/gallium/drivers/panfrost/pan_screen.h