virgl: remove sw_winsys pointer from virgl_screen
authorEmil Velikov <emil.l.velikov@gmail.com>
Wed, 28 Oct 2015 10:21:54 +0000 (10:21 +0000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Fri, 30 Oct 2015 17:37:08 +0000 (17:37 +0000)
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@gmail.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
src/gallium/drivers/virgl/virgl_public.h
src/gallium/drivers/virgl/virgl_screen.c
src/gallium/drivers/virgl/virgl_screen.h

index 6a2c11be3204004d1f6931665041f7f0ea3849b3..a3ea560df7b8528f3cca9240031cfeab6652fd92 100644 (file)
@@ -24,7 +24,6 @@
 #define VIRGL_PUBLIC_H
 
 struct pipe_screen;
-struct sw_winsys;
 struct virgl_winsys;
 
 struct pipe_screen *
index ebc42f4a5d776fba46092a57ee98286bdcb8a0cc..fbc6ababd4638f6783d8353c4e33e964148b7333 100644 (file)
@@ -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;
index d64576c377e5826f27f149fa0ff0cf2386fb2c8b..82b876f9f11a008ec02461095d70ca2c63e40a13 100644 (file)
@@ -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;