r300g: fix reading from the destination buffer in blending
authorMarek Olšák <maraeo@gmail.com>
Sat, 31 Oct 2009 04:34:46 +0000 (05:34 +0100)
committerJoakim Sindholt <opensource@zhasha.com>
Sat, 31 Oct 2009 06:30:48 +0000 (07:30 +0100)
src/gallium/drivers/r300/r300_state.c

index 1e7fabf683dbdb165972b1d5d3888d1989ac2a25..3ac627e9599ea03e58ecb4eface63c73247babab 100644 (file)
@@ -75,7 +75,9 @@ static void* r300_create_blend_state(struct pipe_context* pipe,
             srcRGB == PIPE_BLENDFACTOR_DST_ALPHA ||
             srcRGB == PIPE_BLENDFACTOR_INV_DST_COLOR ||
             srcRGB == PIPE_BLENDFACTOR_INV_DST_ALPHA ||
+            srcA == PIPE_BLENDFACTOR_DST_COLOR ||
             srcA == PIPE_BLENDFACTOR_DST_ALPHA ||
+            srcA == PIPE_BLENDFACTOR_INV_DST_COLOR ||
             srcA == PIPE_BLENDFACTOR_INV_DST_ALPHA)
             blend->blend_control |= R300_READ_ENABLE;