summaryrefslogtreecommitdiff
path: root/src/mesa/pipe/softpipe/sp_context.h
diff options
context:
space:
mode:
authorBrian <brian.paul@tungstengraphics.com>2007-10-20 15:18:02 -0600
committerBrian <brian.paul@tungstengraphics.com>2007-10-20 15:18:02 -0600
commit7e8396399824108d62dc3e02b2af0422e98aab8e (patch)
tree89f1ca9279bdc87e2f1b9125322331898a020466 /src/mesa/pipe/softpipe/sp_context.h
parent832e73bc098fa8fd680d70cb495f495b33769630 (diff)
Convert Z/stencil ops to use cached tiles like colors.
Also, quite a bit of re-org of the tile caches and surface mapping/unmapping. Leave surfaces mapped between primitives now.
Diffstat (limited to 'src/mesa/pipe/softpipe/sp_context.h')
-rw-r--r--src/mesa/pipe/softpipe/sp_context.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mesa/pipe/softpipe/sp_context.h b/src/mesa/pipe/softpipe/sp_context.h
index 4f429e8139..ea05f80d59 100644
--- a/src/mesa/pipe/softpipe/sp_context.h
+++ b/src/mesa/pipe/softpipe/sp_context.h
@@ -44,6 +44,7 @@ struct softpipe_surface;
struct softpipe_winsys;
struct draw_context;
struct draw_stage;
+struct softpipe_tile_cache;
#define SP_NEW_VIEWPORT 0x1
@@ -155,6 +156,13 @@ struct softpipe_context {
struct pipe_surface *cbuf; /**< current color buffer (one of cbufs) */
+ struct softpipe_tile_cache *cbuf_cache[PIPE_MAX_COLOR_BUFS];
+ struct softpipe_tile_cache *zbuf_cache;
+ /** Stencil buffer cache, for stencil separate from Z */
+ struct softpipe_tile_cache *sbuf_cache_sep;
+ /** This either points to zbuf_cache or sbuf_cache_sep */
+ struct softpipe_tile_cache *sbuf_cache;
+
int use_sse : 1;
};