diff options
author | Brian <brian.paul@tungstengraphics.com> | 2008-01-21 20:26:40 -0700 |
---|---|---|
committer | Brian <brian.paul@tungstengraphics.com> | 2008-01-21 21:17:21 -0700 |
commit | 1811965091341fb2c5c94ac0e3bb3c2ca4de161e (patch) | |
tree | 2c770f39abc8469317b8720bc4e22cf7425b7500 /src/mesa/pipe/cell/ppu/cell_context.c | |
parent | fd9c03fc428b325103051d4543e464def71d0b53 (diff) |
Cell: Add initial texture functions
Diffstat (limited to 'src/mesa/pipe/cell/ppu/cell_context.c')
-rw-r--r-- | src/mesa/pipe/cell/ppu/cell_context.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/mesa/pipe/cell/ppu/cell_context.c b/src/mesa/pipe/cell/ppu/cell_context.c index 897c187d65..fc1ca28f3a 100644 --- a/src/mesa/pipe/cell/ppu/cell_context.c +++ b/src/mesa/pipe/cell/ppu/cell_context.c @@ -46,6 +46,7 @@ #include "cell_state.h" #include "cell_surface.h" #include "cell_spu.h" +#include "cell_texture.h" #include "cell_vbuf.h" @@ -225,14 +226,17 @@ cell_create_context(struct pipe_winsys *winsys, struct cell_winsys *cws) cell->pipe.clear = cell_clear_surface; cell->pipe.flush = cell_flush; + /* textures */ + cell->pipe.texture_create = cell_texture_create; + cell->pipe.texture_release = cell_texture_release; + cell->pipe.get_tex_surface = cell_get_tex_surface; + + cell->pipe.set_sampler_texture = cell_set_sampler_texture; + #if 0 cell->pipe.begin_query = cell_begin_query; cell->pipe.end_query = cell_end_query; cell->pipe.wait_query = cell_wait_query; - - /* textures */ - cell->pipe.mipmap_tree_layout = cell_mipmap_tree_layout; - cell->pipe.get_tex_surface = cell_get_tex_surface; #endif |