diff options
author | Rohan Garg <[email protected]> | 2019-08-30 18:00:12 +0200 |
---|---|---|
committer | Boris Brezillon <[email protected]> | 2019-08-30 22:06:54 +0200 |
commit | 6b0dc3d53011b384798bcdb5d5e804d7482a3247 (patch) | |
tree | 414572b258a75a860b486735328aff6800f32508 /src/gallium/drivers/panfrost/pan_screen.c | |
parent | bd98470a4692860004c1e9282808a638758c6f04 (diff) |
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 <[email protected]>
Reviewed-by: Boris Brezillon <[email protected]>
Reviewed-by: Alyssa Rosenzweig <[email protected]>
Signed-off-by: Boris Brezillon <[email protected]>
Diffstat (limited to 'src/gallium/drivers/panfrost/pan_screen.c')
-rw-r--r-- | src/gallium/drivers/panfrost/pan_screen.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/gallium/drivers/panfrost/pan_screen.c b/src/gallium/drivers/panfrost/pan_screen.c index 36c91a1572e..5c288f52bbd 100644 --- a/src/gallium/drivers/panfrost/pan_screen.c +++ b/src/gallium/drivers/panfrost/pan_screen.c @@ -665,9 +665,6 @@ panfrost_create_screen(int fd, struct renderonly *ro) screen->base.fence_finish = panfrost_fence_finish; screen->base.set_damage_region = panfrost_resource_set_damage_region; - screen->last_fragment_flushed = true; - screen->last_job = NULL; - panfrost_resource_screen_init(screen); return &screen->base; |