summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/llvmpipe/lp_tex_cache.h
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2009-08-30 12:36:03 +0100
committerJosé Fonseca <jfonseca@vmware.com>2009-08-30 12:37:03 +0100
commitc28f253ac26e2d5a8cc7befa35e754515d4510dd (patch)
tree863fc12797f182883199374b5da2da6d6d9b7470 /src/gallium/drivers/llvmpipe/lp_tex_cache.h
parent62b586fce43ac117dcb553baa1fe884053fdef12 (diff)
llvmpipe: Texture cache in 4 ubytes instead of 4 floats.
This is more a short term experiment than a long term commitment, as we'll need to support higher precision textures too, as this will all be be replaced by runtime generated code. With this change most Mesa demos fps increased around 10%. Not a huge improvement, but not a negligible one either.
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_tex_cache.h')
-rw-r--r--src/gallium/drivers/llvmpipe/lp_tex_cache.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_tex_cache.h b/src/gallium/drivers/llvmpipe/lp_tex_cache.h
index 106b5059b7..9fa6c36812 100644
--- a/src/gallium/drivers/llvmpipe/lp_tex_cache.h
+++ b/src/gallium/drivers/llvmpipe/lp_tex_cache.h
@@ -61,7 +61,7 @@ union tex_tile_address {
struct llvmpipe_cached_tex_tile
{
union tex_tile_address addr;
- float color[TEX_TILE_SIZE][TEX_TILE_SIZE][4];
+ uint8_t color[TEX_TILE_SIZE][TEX_TILE_SIZE][4];
};
#define NUM_ENTRIES 50