diff options
author | Brian <brian.paul@tungstengraphics.com> | 2008-01-28 17:23:44 -0700 |
---|---|---|
committer | Ben Skeggs <skeggsb@gmail.com> | 2008-02-15 13:50:24 +1100 |
commit | 948dc8ad24d554ab23bea97aa3e405c4f6ad47c6 (patch) | |
tree | 84f6d68cef17bb5aae7dacc2634a6e7f7dfbda29 /src/mesa/pipe/cell/ppu/cell_context.h | |
parent | 2f868411a209d909f3ea8f29a317b7327fe6f88a (diff) |
Cell: basic texture mapping
Texture images are tiled in PPU code. SPUs use a texture cache for getting
texels from textures.
This is very rough code, but demos/texcyl.c works.
Diffstat (limited to 'src/mesa/pipe/cell/ppu/cell_context.h')
-rw-r--r-- | src/mesa/pipe/cell/ppu/cell_context.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mesa/pipe/cell/ppu/cell_context.h b/src/mesa/pipe/cell/ppu/cell_context.h index de65fb5e9a..7d234f3e45 100644 --- a/src/mesa/pipe/cell/ppu/cell_context.h +++ b/src/mesa/pipe/cell/ppu/cell_context.h @@ -76,7 +76,7 @@ struct cell_context struct pipe_framebuffer_state framebuffer; struct pipe_poly_stipple poly_stipple; struct pipe_scissor_state scissor; - struct pipe_texture *texture[PIPE_MAX_SAMPLERS]; + struct cell_texture *texture[PIPE_MAX_SAMPLERS]; struct pipe_viewport_state viewport; struct pipe_vertex_buffer vertex_buffer[PIPE_ATTRIB_MAX]; struct pipe_vertex_element vertex_element[PIPE_ATTRIB_MAX]; @@ -84,6 +84,9 @@ struct cell_context ubyte *cbuf_map[PIPE_MAX_COLOR_BUFS]; ubyte *zsbuf_map; + struct pipe_surface *tex_surf; + uint *tex_map; + uint dirty; /** The primitive drawing context */ |