diff options
author | Younes Manton <[email protected]> | 2009-02-25 12:55:26 -0500 |
---|---|---|
committer | Younes Manton <[email protected]> | 2009-02-25 12:56:00 -0500 |
commit | a0dc286b5fecec1ede014cb5702368a60cbb22bc (patch) | |
tree | 7def0bcb025d1495cf41ea7aa54fca763ae60e10 /src/gallium/drivers/nv10/nv10_screen.c | |
parent | 5726a5afa56e18b1662a8b03cf36c77e2d8b3114 (diff) |
nouveau: nv04-nv40 texture transfer.
Diffstat (limited to 'src/gallium/drivers/nv10/nv10_screen.c')
-rw-r--r-- | src/gallium/drivers/nv10/nv10_screen.c | 28 |
1 files changed, 1 insertions, 27 deletions
diff --git a/src/gallium/drivers/nv10/nv10_screen.c b/src/gallium/drivers/nv10/nv10_screen.c index f417b06c944..6532a93c7ba 100644 --- a/src/gallium/drivers/nv10/nv10_screen.c +++ b/src/gallium/drivers/nv10/nv10_screen.c @@ -116,30 +116,6 @@ nv10_screen_is_format_supported(struct pipe_screen *screen, return FALSE; } -static void * -nv10_surface_map(struct pipe_screen *screen, struct pipe_surface *surface, - unsigned flags ) -{ - struct pipe_winsys *ws = screen->winsys; - void *map; - struct nv10_miptree *nv10mt = (struct nv10_miptree *)surface->texture; - - map = ws->buffer_map(ws, nv10mt->buffer, flags); - if (!map) - return NULL; - - return map + surface->offset; -} - -static void -nv10_surface_unmap(struct pipe_screen *screen, struct pipe_surface *surface) -{ - struct pipe_winsys *ws = screen->winsys; - struct nv10_miptree *nv10mt = (struct nv10_miptree *)surface->texture; - - ws->buffer_unmap(ws, nv10mt->buffer); -} - static void nv10_screen_destroy(struct pipe_screen *pscreen) { @@ -215,10 +191,8 @@ nv10_screen_create(struct pipe_winsys *ws, struct nouveau_winsys *nvws) screen->pipe.is_format_supported = nv10_screen_is_format_supported; - screen->pipe.surface_map = nv10_surface_map; - screen->pipe.surface_unmap = nv10_surface_unmap; - nv10_screen_init_miptree_functions(&screen->pipe); + nv10_screen_init_transfer_functions(&screen->pipe); u_simple_screen_init(&screen->pipe); return &screen->pipe; |