diff options
author | José Fonseca <jfonseca@vmware.com> | 2009-08-18 11:41:01 +0100 |
---|---|---|
committer | José Fonseca <jfonseca@vmware.com> | 2009-08-29 09:21:34 +0100 |
commit | efab431684bb17459073f6a2e96044cb2ebd2524 (patch) | |
tree | 7800a9ccaefaf6dd1937cfa8ceecf565125c0c1f /src/gallium/drivers/llvmpipe/lp_tile_cache.h | |
parent | ee066eaf6d0dd3c771dc3e37390f3665e747af2a (diff) |
llvmpipe: Tile in SoA format identical to the blender function output.
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_tile_cache.h')
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_tile_cache.h | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_tile_cache.h b/src/gallium/drivers/llvmpipe/lp_tile_cache.h index df63d47e1b..20d4137696 100644 --- a/src/gallium/drivers/llvmpipe/lp_tile_cache.h +++ b/src/gallium/drivers/llvmpipe/lp_tile_cache.h @@ -32,18 +32,13 @@ #include "pipe/p_compiler.h" +#include "lp_tile_soa.h" struct llvmpipe_context; struct llvmpipe_tile_cache; -/** - * Cache tile size (width and height). This needs to be a power of two. - */ -#define TILE_SIZE 64 - - /* If we need to support > 4096, just expand this to be a 64 bit * union, or consider tiling in Z as well. */ @@ -65,8 +60,8 @@ struct llvmpipe_cached_tile union tile_address addr; union { - /** color in SOA format (rrrr, gggg, bbbb, aaaa) */ - uint8_t color[4][TILE_SIZE][TILE_SIZE]; + /** color in SOA format */ + uint8_t color[TILE_SIZE*TILE_SIZE*NUM_CHANNELS]; uint color32[TILE_SIZE][TILE_SIZE]; uint depth32[TILE_SIZE][TILE_SIZE]; |