Remove temporary cell_create_surface()
authorBrian <brian.paul@tungstengraphics.com>
Tue, 11 Dec 2007 16:44:04 +0000 (09:44 -0700)
committerBrian <brian.paul@tungstengraphics.com>
Tue, 11 Dec 2007 20:55:37 +0000 (13:55 -0700)
src/mesa/pipe/cell/ppu/cell_surface.c
src/mesa/pipe/cell/ppu/cell_surface.h

index ab20adb06d23241a66c4523d7764113deb71e6b9..03b0988dc34c5af209386a6c5cbb923d5e820212 100644 (file)
 #include "cell_spu.h"
 
 
-
-struct pipe_surface *
-cell_create_surface(int width, int height)
-{
-#if 0
-   /* XXX total hack */
-   struct pipe_surface *ps = CALLOC_STRUCT(pipe_surface);
-
-   printf("cell_create_surface\n");
-
-   ps->width = width;
-   ps->height = height;
-
-   ps->region = CALLOC_STRUCT(pipe_region);
-   ps->region->map = align_malloc(width * height * 4, 16);
-   return ps;
-#endif
-   return NULL;
-}
-
-
-
 void
 cell_clear_surface(struct pipe_context *pipe, struct pipe_surface *ps,
                    unsigned clearValue)
index e222507121f315366aa5cc5c5e0f585717099116..4c69c4c89f301ddc9a76c766f01370685ffe622b 100644 (file)
  **************************************************************************/
 
 
-#ifndef CELL_SURFACE
-#define CELL_SURFACE
+#ifndef CELL_SURFACE_H
+#define CELL_SURFACE_H
 
 
-#include "pipe/p_state.h"
+struct pipe_context;
+struct pipe_surface;
 
 
-extern struct pipe_surface *
-cell_create_surface(int width, int height);
-
 extern void
 cell_clear_surface(struct pipe_context *pipe, struct pipe_surface *ps,
                    unsigned clearValue);
 
 
 
-#endif /* CELL_SURFACE */
+#endif /* CELL_SURFACE_H */