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

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to