egl/x11: use swrast-xlib helper
authorKeith Whitwell <keithw@vmware.com>
Tue, 9 Mar 2010 17:31:50 +0000 (17:31 +0000)
committerKeith Whitwell <keithw@vmware.com>
Tue, 9 Mar 2010 17:32:10 +0000 (17:32 +0000)
src/gallium/state_trackers/egl/x11/native_ximage.c

index 0aa25ead253f2d493175566cacc6c9616282a477..7d1462d4b781ac4473f1749e4e1fa768a06ea0c6 100644 (file)
@@ -32,9 +32,9 @@
 #include "util/u_math.h"
 #include "util/u_format.h"
 #include "pipe/p_compiler.h"
-#include "util/u_simple_screen.h"
 #include "util/u_inlines.h"
 #include "state_tracker/xlib_sw_winsys.h"
+#include "target-helpers/swrast_xlib.h"
 #include "egllog.h"
 
 #include "native_x11.h"
@@ -640,8 +640,7 @@ x11_create_ximage_display(EGLNativeDisplayType dpy)
       return NULL;
    }
 
-   xdpy->driver = xlib_sw_winsys_init();
-   xdpy->base.screen = xdpy->driver->create_pipe_screen(xdpy->dpy);
+   xdpy->base.screen = swrast_xlib_create_screen(xdpy->dpy);
 
    xdpy->base.destroy = ximage_display_destroy;
    xdpy->base.get_param = ximage_display_get_param;