summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nv50/nv50_screen.c
diff options
context:
space:
mode:
authorBen Skeggs <[email protected]>2008-06-17 23:43:38 +1000
committerBen Skeggs <[email protected]>2008-06-29 15:46:19 +1000
commit65ad8176ca91b5ed2a01b1b3ee145cfdce369419 (patch)
treeeb51b2413942066192a342ef1e8337f49b8f4480 /src/gallium/drivers/nv50/nv50_screen.c
parentfd7412a7f1beab8b81ce307b1054331eee102e8b (diff)
nv50: move surface_map/unmap into nv50_surface.c
Diffstat (limited to 'src/gallium/drivers/nv50/nv50_screen.c')
-rw-r--r--src/gallium/drivers/nv50/nv50_screen.c26
1 files changed, 1 insertions, 25 deletions
diff --git a/src/gallium/drivers/nv50/nv50_screen.c b/src/gallium/drivers/nv50/nv50_screen.c
index 8affb0f073f..18f22c59609 100644
--- a/src/gallium/drivers/nv50/nv50_screen.c
+++ b/src/gallium/drivers/nv50/nv50_screen.c
@@ -118,28 +118,6 @@ nv50_screen_get_paramf(struct pipe_screen *pscreen, int param)
}
}
-static void *
-nv50_surface_map(struct pipe_screen *screen, struct pipe_surface *surface,
- unsigned flags )
-{
- struct pipe_winsys *ws = screen->winsys;
- void *map;
-
- map = ws->buffer_map(ws, surface->buffer, flags);
- if (!map)
- return NULL;
-
- return map + surface->offset;
-}
-
-static void
-nv50_surface_unmap(struct pipe_screen *screen, struct pipe_surface *surface)
-{
- struct pipe_winsys *ws = screen->winsys;
-
- ws->buffer_unmap(ws, surface->buffer);
-}
-
static void
nv50_screen_destroy(struct pipe_screen *pscreen)
{
@@ -309,10 +287,8 @@ nv50_screen_create(struct pipe_winsys *ws, struct nouveau_winsys *nvws)
screen->pipe.is_format_supported = nv50_screen_is_format_supported;
- screen->pipe.surface_map = nv50_surface_map;
- screen->pipe.surface_unmap = nv50_surface_unmap;
-
nv50_screen_init_miptree_functions(&screen->pipe);
+ nv50_surface_init_screen_functions(&screen->pipe);
return &screen->pipe;
}