summaryrefslogtreecommitdiffstats
path: root/src/mesa/pipe
diff options
context:
space:
mode:
authorBrian <[email protected]>2007-12-11 09:44:04 -0700
committerBrian <[email protected]>2007-12-11 13:55:37 -0700
commitfda387988c24fad4e0a743f16173dc3c71cbe084 (patch)
tree3f571f6e197e4a10450133d914f95eb5de267a90 /src/mesa/pipe
parent457a96e7773fb148136af76a8cf746e72c2ef722 (diff)
Remove temporary cell_create_surface()
Diffstat (limited to 'src/mesa/pipe')
-rw-r--r--src/mesa/pipe/cell/ppu/cell_surface.c22
-rw-r--r--src/mesa/pipe/cell/ppu/cell_surface.h12
2 files changed, 5 insertions, 29 deletions
diff --git a/src/mesa/pipe/cell/ppu/cell_surface.c b/src/mesa/pipe/cell/ppu/cell_surface.c
index ab20adb06d2..03b0988dc34 100644
--- a/src/mesa/pipe/cell/ppu/cell_surface.c
+++ b/src/mesa/pipe/cell/ppu/cell_surface.c
@@ -41,28 +41,6 @@
#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)
diff --git a/src/mesa/pipe/cell/ppu/cell_surface.h b/src/mesa/pipe/cell/ppu/cell_surface.h
index e222507121f..4c69c4c89f3 100644
--- a/src/mesa/pipe/cell/ppu/cell_surface.h
+++ b/src/mesa/pipe/cell/ppu/cell_surface.h
@@ -26,20 +26,18 @@
**************************************************************************/
-#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 */