[Mesa-dev] [PATCH 03/15] virgl: remove sw_winsys pointer from virgl_screen

Emil Velikov emil.l.velikov at gmail.com
Thu Oct 29 04:59:34 PDT 2015


The screen already has a pointer to the (base) winsys object.
With the latter of which implemented/sub-classed as either drm or sw
based one, depending on the target.

Signed-off-by: Emil Velikov <emil.l.velikov at gmail.com>
---
 src/gallium/drivers/virgl/virgl_public.h | 1 -
 src/gallium/drivers/virgl/virgl_screen.c | 1 -
 src/gallium/drivers/virgl/virgl_screen.h | 1 -
 3 files changed, 3 deletions(-)

diff --git a/src/gallium/drivers/virgl/virgl_public.h b/src/gallium/drivers/virgl/virgl_public.h
index 6a2c11b..a3ea560 100644
--- a/src/gallium/drivers/virgl/virgl_public.h
+++ b/src/gallium/drivers/virgl/virgl_public.h
@@ -24,7 +24,6 @@
 #define VIRGL_PUBLIC_H
 
 struct pipe_screen;
-struct sw_winsys;
 struct virgl_winsys;
 
 struct pipe_screen *
diff --git a/src/gallium/drivers/virgl/virgl_screen.c b/src/gallium/drivers/virgl/virgl_screen.c
index ebc42f4..fbc6aba 100644
--- a/src/gallium/drivers/virgl/virgl_screen.c
+++ b/src/gallium/drivers/virgl/virgl_screen.c
@@ -532,7 +532,6 @@ virgl_create_screen(struct virgl_winsys *vws)
       return NULL;
 
    screen->vws = vws;
-   screen->winsys = NULL;
    screen->base.get_name = virgl_get_name;
    screen->base.get_vendor = virgl_get_vendor;
    screen->base.get_param = virgl_get_param;
diff --git a/src/gallium/drivers/virgl/virgl_screen.h b/src/gallium/drivers/virgl/virgl_screen.h
index d64576c..82b876f 100644
--- a/src/gallium/drivers/virgl/virgl_screen.h
+++ b/src/gallium/drivers/virgl/virgl_screen.h
@@ -31,7 +31,6 @@
 #include "pipe/p_screen.h"
 struct virgl_screen {
    struct pipe_screen base;
-   struct sw_winsys *winsys;
    struct virgl_winsys *vws;
 
    struct virgl_drm_caps caps;
-- 
2.6.2



More information about the mesa-dev mailing list