summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorBen Skeggs <[email protected]>2008-07-11 22:24:24 +1000
committerBen Skeggs <[email protected]>2008-07-11 22:24:24 +1000
commit5180a668a7da627a40e024a2ed765458d5bac43e (patch)
treedc403eb6adf8203500ea6237a24493c7568656f9 /src/gallium
parent866a68dbd1ec9c3a6100de6d50890ac5068247dc (diff)
nouveau: winsys surface funcs deprecated, remove them
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/winsys/dri/nouveau/nouveau_winsys_pipe.c30
1 files changed, 0 insertions, 30 deletions
diff --git a/src/gallium/winsys/dri/nouveau/nouveau_winsys_pipe.c b/src/gallium/winsys/dri/nouveau/nouveau_winsys_pipe.c
index 765ea36f881..8a2870a2ff2 100644
--- a/src/gallium/winsys/dri/nouveau/nouveau_winsys_pipe.c
+++ b/src/gallium/winsys/dri/nouveau/nouveau_winsys_pipe.c
@@ -25,33 +25,6 @@ nouveau_get_name(struct pipe_winsys *pws)
return "Nouveau/DRI";
}
-static struct pipe_surface *
-nouveau_surface_alloc(struct pipe_winsys *ws)
-{
- struct pipe_surface *surf;
-
- surf = CALLOC_STRUCT(pipe_surface);
- if (!surf)
- return NULL;
-
- surf->refcount = 1;
- surf->winsys = ws;
- return surf;
-}
-
-static void
-nouveau_surface_release(struct pipe_winsys *ws, struct pipe_surface **s)
-{
- struct pipe_surface *surf = *s;
-
- *s = NULL;
- if (--surf->refcount <= 0) {
- if (surf->buffer)
- pipe_buffer_reference(ws, &surf->buffer, NULL);
- free(surf);
- }
-}
-
static struct pipe_buffer *
nouveau_pipe_bo_create(struct pipe_winsys *pws, unsigned alignment,
unsigned usage, unsigned size)
@@ -215,9 +188,6 @@ nouveau_create_pipe_winsys(struct nouveau_context *nv)
pws->flush_frontbuffer = nouveau_flush_frontbuffer;
- pws->surface_alloc = nouveau_surface_alloc;
- pws->surface_release = nouveau_surface_release;
-
pws->buffer_create = nouveau_pipe_bo_create;
pws->buffer_destroy = nouveau_pipe_bo_del;
pws->user_buffer_create = nouveau_pipe_bo_user_create;