diff options
author | José Fonseca <jfonseca@vmware.com> | 2009-08-10 08:16:31 +0100 |
---|---|---|
committer | José Fonseca <jfonseca@vmware.com> | 2009-08-29 09:21:27 +0100 |
commit | 2101c2941c1ff3ae7f3f587e6e9921ed336ce17c (patch) | |
tree | 76c5ac8787c0d3b052c85f5746c2d68bf3d1f807 /src/gallium/drivers/llvmpipe/lp_state_blend.c | |
parent | 3ce1abf950b7175d65a32fb9d182561a9d3d57f7 (diff) |
llvmpipe: Tiles in rgba8 format.
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_state_blend.c')
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_state_blend.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_state_blend.c b/src/gallium/drivers/llvmpipe/lp_state_blend.c index ed4ea3b330..c75214430f 100644 --- a/src/gallium/drivers/llvmpipe/lp_state_blend.c +++ b/src/gallium/drivers/llvmpipe/lp_state_blend.c @@ -32,6 +32,7 @@ */ #include "util/u_memory.h" +#include "util/u_math.h" #include "util/u_debug_dump.h" #include "lp_screen.h" #include "lp_context.h" @@ -66,11 +67,11 @@ blend_generate(struct llvmpipe_screen *screen, unsigned i; type.value = 0; - type.floating = TRUE; + type.floating = FALSE; type.sign = FALSE; type.norm = TRUE; - type.width = 32; - type.length = 4; + type.width = 8; + type.length = 16; vec_type = lp_build_vec_type(type); @@ -181,8 +182,8 @@ void llvmpipe_set_blend_color( struct pipe_context *pipe, unsigned i, j; for (i = 0; i < 4; ++i) - for (j = 0; j < QUAD_SIZE; ++j) - llvmpipe->blend_color[i][j] = blend_color->color[i]; + for (j = 0; j < 16; ++j) + llvmpipe->blend_color[i][j] = float_to_ubyte(blend_color->color[i]); llvmpipe->dirty |= LP_NEW_BLEND; } |