panfrost: Keep track of active BOs
If two jobs use the same GEM object at the same time, the job that finishes first will (previous to this commit) close the GEM object, even if there's a job still referencing it. To prevent this, have all jobs use the same panfrost_bo for a given GEM object, so it's only closed once the last job is done with it. Signed-off-by:Tomeu Vizoso <tomeu.vizoso@collabora.com> Signed-off-by:
Boris Brezillon <boris.brezillon@collabora.com> Reviewed-by:
Daniel Stone <daniels@collabora.com> Reviewed-by:
Rohan Garg <rohan.garg@collabora.com> Reviewed-by:
Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Showing
- src/gallium/drivers/panfrost/pan_bo.c 62 additions, 21 deletionssrc/gallium/drivers/panfrost/pan_bo.c
- src/gallium/drivers/panfrost/pan_screen.c 21 additions, 0 deletionssrc/gallium/drivers/panfrost/pan_screen.c
- src/gallium/drivers/panfrost/pan_screen.h 4 additions, 0 deletionssrc/gallium/drivers/panfrost/pan_screen.h
Loading
Please register or sign in to comment