aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/winsys/virgl/drm/virgl_drm_public.h
diff options
context:
space:
mode:
authorRob Herring <[email protected]>2016-01-29 16:36:28 -0600
committerDave Airlie <[email protected]>2016-02-02 09:58:29 +1000
commitf87330dbce3f67cb531194f63a5db59685dcbbd3 (patch)
tree3800acb99c5ee8b8bd1bd73995ab44e6288c565d /src/gallium/winsys/virgl/drm/virgl_drm_public.h
parent6711592c2f30307948487a448094e0ff5dc1aedc (diff)
virgl: reuse screen when fd is already open
It is necessary to share the screen between mesa and gralloc to properly ref count resources. This implements a hash lookup on the file description to re-use an already created screen. This is a similar implementation as freedreno and radeon. Signed-off-by: Rob Herring <[email protected]> Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/gallium/winsys/virgl/drm/virgl_drm_public.h')
-rw-r--r--src/gallium/winsys/virgl/drm/virgl_drm_public.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/winsys/virgl/drm/virgl_drm_public.h b/src/gallium/winsys/virgl/drm/virgl_drm_public.h
index be01021ca9a..f70f0e50448 100644
--- a/src/gallium/winsys/virgl/drm/virgl_drm_public.h
+++ b/src/gallium/winsys/virgl/drm/virgl_drm_public.h
@@ -23,8 +23,8 @@
#ifndef VIRGL_DRM_PUBLIC_H
#define VIRGL_DRM_PUBLIC_H
-struct virgl_winsys;
+struct pipe_screen;
-struct virgl_winsys *virgl_drm_winsys_create(int drmFD);
+struct pipe_screen *virgl_drm_screen_create(int fd);
#endif