From: José Fonseca Date: Tue, 10 Nov 2009 13:22:15 +0000 (-0800) Subject: llvmpipe: Fix derived blend color state. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=eef5a0b3a3e03abd1c69649763efc79575df650f;p=mesa.git llvmpipe: Fix derived blend color state. --- diff --git a/src/gallium/drivers/llvmpipe/lp_state_blend.c b/src/gallium/drivers/llvmpipe/lp_state_blend.c index 3f03bd00571..b2e75d3b14e 100644 --- a/src/gallium/drivers/llvmpipe/lp_state_blend.c +++ b/src/gallium/drivers/llvmpipe/lp_state_blend.c @@ -76,7 +76,7 @@ void llvmpipe_set_blend_color( struct pipe_context *pipe, for (i = 0; i < 4; ++i) { uint8_t c = float_to_ubyte(blend_color->color[i]); for (j = 0; j < 16; ++j) - llvmpipe->jit_context.blend_color[i*4 + j] = c; + llvmpipe->jit_context.blend_color[i*16 + j] = c; } }