[Mesa-dev] [PATCH 0/2] virgl: allow pipe screen sharing and fix prime fd refcounting

Rob Herring robh at kernel.org
Fri Jan 29 14:36:27 PST 2016


Dave,

These 2 patches (along with kernel side changes I sent) fix the main 
problem I've encountered using virgl with Android. There are 2 
interrelated problems with ref counting of resources. Gralloc and openGL 
need to share the pipe screen to properly ref count resources. 
Furthermore, flink names and prime handles need to be tracked 
separately. At least that is my conclusion looking at freedreno and 
other implementations.

Thanks to Rob Clark for sending me down the right path.

Rob

Rob Herring (2):
  virgl: reuse screen when fd is already open
  virgl: fix reference counting of prime handles

 src/gallium/auxiliary/target-helpers/drm_helper.h |   7 +-
 src/gallium/drivers/virgl/virgl_screen.c          |   1 +
 src/gallium/drivers/virgl/virgl_screen.h          |   6 +
 src/gallium/winsys/virgl/drm/virgl_drm_public.h   |   4 +-
 src/gallium/winsys/virgl/drm/virgl_drm_winsys.c   | 131 ++++++++++++++++++++--
 src/gallium/winsys/virgl/drm/virgl_drm_winsys.h   |   1 +
 6 files changed, 130 insertions(+), 20 deletions(-)

-- 
2.5.0



More information about the mesa-dev mailing list