st/vega: fix drawing images with alpha channel
authorChia-I Wu <olv@lunarg.com>
Wed, 21 Sep 2011 03:40:27 +0000 (11:40 +0800)
committerChia-I Wu <olv@lunarg.com>
Wed, 21 Sep 2011 04:01:21 +0000 (12:01 +0800)
commit4a96a02de7c1b8c136ffc0cd278401c85faab233
tree4013803f8828ec0fd99f9a4f557f7455d5b960fb
parentceb6d34906c7c03c102c7e78dd02f5b0ebab4ca9
st/vega: fix drawing images with alpha channel

Checking if the paints are opaque in renderer_validate_blend() does not
work.  We could be drawing images.  Remove the check from
renderer_validate_blend() and take image drawing into consideration in
blend_use_shader().

The bug was introduced by 3f0a966807f03a364edea0272ddf45f08ab7ce4f,
which affects the lookup demo.
src/gallium/state_trackers/vega/renderer.c
src/gallium/state_trackers/vega/shader.c