summaryrefslogtreecommitdiff
path: root/src/gallium/winsys/xlib/xlib_cell.c
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2010-03-09 08:12:47 -0700
committerBrian Paul <brianp@vmware.com>2010-03-09 08:14:06 -0700
commit27a7f9454f190ebb51834e9d2d74c55766cbb29f (patch)
treeb50a3032229e9ee569444e3ad1807305ac4b73f3 /src/gallium/winsys/xlib/xlib_cell.c
parentff407a117c7bd4e9f370f8ec204d3f7b4e7f91a2 (diff)
cell: fix up assorted compilation problems
The driver is pretty much totally broken though.
Diffstat (limited to 'src/gallium/winsys/xlib/xlib_cell.c')
-rw-r--r--src/gallium/winsys/xlib/xlib_cell.c23
1 files changed, 13 insertions, 10 deletions
diff --git a/src/gallium/winsys/xlib/xlib_cell.c b/src/gallium/winsys/xlib/xlib_cell.c
index 2ad1aab439..d943953bd1 100644
--- a/src/gallium/winsys/xlib/xlib_cell.c
+++ b/src/gallium/winsys/xlib/xlib_cell.c
@@ -33,11 +33,8 @@
*/
-
-
#include "xlib.h"
-
#if defined(GALLIUM_CELL)
#include "cell/ppu/cell_texture.h"
@@ -46,9 +43,18 @@
#include "util/u_debug.h"
-
-
-
+/**
+ * Display/copy the image in the surface into the X window specified
+ * by the XMesaBuffer.
+ */
+static void
+xm_cell_displaytarget_display(struct sw_winsys *ws,
+ struct sw_displaytarget *dt,
+ void *context_private)
+{
+ struct xlib_drawable *xlib_drawable = (struct xlib_drawable *)context_private;
+ xlib_sw_display(xlib_drawable, dt);
+}
static struct pipe_screen *
@@ -64,7 +70,7 @@ xlib_create_cell_screen( Display *dpy )
/* Plug in a little cell-specific code:
*/
- ws->base.displaytarget_display = xm_cell_displaytarget_display;
+ winsys->displaytarget_display = xm_cell_displaytarget_display;
screen = cell_create_screen(winsys);
if (screen == NULL)
@@ -80,13 +86,10 @@ fail:
}
-
-
struct xm_driver xlib_cell_driver =
{
.create_pipe_screen = xlib_create_cell_screen,
};
-
#endif /* GALLIUM_CELL */