gallium: squash-merge of gallium screen context
[mesa.git] / src / gallium / state_trackers / egl / x11 / native_ximage.c
index dfa8df222340b702e207ba38d77ee4f1510d006d..92a62f230e00aa02449b35c81d4689d643c6f326 100644 (file)
@@ -33,7 +33,8 @@
 #include "util/u_math.h"
 #include "util/u_format.h"
 #include "pipe/p_compiler.h"
-#include "pipe/internal/p_winsys_screen.h"
+#include "util/u_simple_screen.h"
+#include "util/u_inlines.h"
 #include "softpipe/sp_winsys.h"
 #include "egllog.h"
 
@@ -491,16 +492,6 @@ ximage_display_create_pbuffer_surface(struct native_display *ndpy,
    return (xsurf) ? &xsurf->base : NULL;
 }
 
-static struct pipe_context *
-ximage_display_create_context(struct native_display *ndpy,
-                              void *context_private)
-{
-   struct pipe_context *pctx = softpipe_create(ndpy->screen);
-   if (pctx)
-      pctx->priv = context_private;
-   return pctx;
-}
-
 static enum pipe_format
 choose_format(const XVisualInfo *vinfo)
 {
@@ -685,7 +676,6 @@ x11_create_ximage_display(EGLNativeDisplayType dpy, boolean use_xshm)
 
    xdpy->base.get_configs = ximage_display_get_configs;
    xdpy->base.is_pixmap_supported = ximage_display_is_pixmap_supported;
-   xdpy->base.create_context = ximage_display_create_context;
    xdpy->base.create_window_surface = ximage_display_create_window_surface;
    xdpy->base.create_pixmap_surface = ximage_display_create_pixmap_surface;
    xdpy->base.create_pbuffer_surface = ximage_display_create_pbuffer_surface;