Browse Source

nouveau: winsys surface funcs deprecated, remove them

tags/mesa_20090313
Ben Skeggs 17 years ago
parent
commit
5180a668a7
1 changed files with 0 additions and 30 deletions
  1. 0
    30
      src/gallium/winsys/dri/nouveau/nouveau_winsys_pipe.c

+ 0
- 30
src/gallium/winsys/dri/nouveau/nouveau_winsys_pipe.c View File

@@ -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;

Loading…
Cancel
Save