summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/llvmpipe/lp_tile_cache.h
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2009-08-09 23:58:06 +0100
committerJosé Fonseca <jfonseca@vmware.com>2009-08-29 09:21:27 +0100
commit3ce1abf950b7175d65a32fb9d182561a9d3d57f7 (patch)
tree827eb31eceea434a4ec96a8c2ed8bae84aa59c89 /src/gallium/drivers/llvmpipe/lp_tile_cache.h
parent29d94a9cbb7858cc8b0cfb05c0bb66f56a6acfa5 (diff)
llvmpipe: Store tile color in SoA.
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_tile_cache.h')
-rw-r--r--src/gallium/drivers/llvmpipe/lp_tile_cache.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_tile_cache.h b/src/gallium/drivers/llvmpipe/lp_tile_cache.h
index 19676392dc..2f904d9e53 100644
--- a/src/gallium/drivers/llvmpipe/lp_tile_cache.h
+++ b/src/gallium/drivers/llvmpipe/lp_tile_cache.h
@@ -64,7 +64,10 @@ struct llvmpipe_cached_tile
{
union tile_address addr;
union {
- float color[TILE_SIZE][TILE_SIZE][4];
+
+ /** color in SOA format (rrrr, gggg, bbbb, aaaa) */
+ float color[4][TILE_SIZE][TILE_SIZE];
+
uint color32[TILE_SIZE][TILE_SIZE];
uint depth32[TILE_SIZE][TILE_SIZE];
ushort depth16[TILE_SIZE][TILE_SIZE];