diff options
author | Brian <[email protected]> | 2007-10-19 10:10:08 -0600 |
---|---|---|
committer | Brian <[email protected]> | 2007-10-19 10:10:08 -0600 |
commit | 2b2f761e2b0dc160793be2f48e811d2d455e1e22 (patch) | |
tree | 390bd4395ff8f92a84c586142e3703bf32fad006 /src/mesa/pipe/softpipe/sp_surface.h | |
parent | 46c3cf18315345effd15a69987294c1195843e2a (diff) |
Initial implementation of surface tile caching.
Instead of using read/write_quad() functions, do framebuffer accesses via
get/put_tile(). A cache of tiles is used to avoid frequent get/put() calls.
Only implemented for color buffers right now.
Diffstat (limited to 'src/mesa/pipe/softpipe/sp_surface.h')
-rw-r--r-- | src/mesa/pipe/softpipe/sp_surface.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/pipe/softpipe/sp_surface.h b/src/mesa/pipe/softpipe/sp_surface.h index 545983f4317..431303553fb 100644 --- a/src/mesa/pipe/softpipe/sp_surface.h +++ b/src/mesa/pipe/softpipe/sp_surface.h @@ -37,6 +37,7 @@ struct pipe_context; struct softpipe_surface; struct softpipe_context; +struct softpipe_tile_cache; /** @@ -45,6 +46,8 @@ struct softpipe_context; struct softpipe_surface { struct pipe_surface surface; + struct softpipe_tile_cache *tc; + /** * Functions for read/writing surface data */ |