st/vega: Disable blending when the paint is opaque.
authorChia-I Wu <olv@lunarg.com>
Sun, 30 Jan 2011 14:54:40 +0000 (22:54 +0800)
committerChia-I Wu <olv@lunarg.com>
Sun, 30 Jan 2011 15:22:40 +0000 (23:22 +0800)
commit3f0a966807f03a364edea0272ddf45f08ab7ce4f
treeb6d5fee2968cc39727752aa37e7734da0c26bee0
parente919dee1edd469c174c5c07c95efd4932a674b67
st/vega: Disable blending when the paint is opaque.

When the paint is opaque (currently, solid color with alpha 1.0f), no
blending is needed for VG_BLEND_SRC_OVER.  This eliminates the serious
performance hit introduced by 859106f196ade77f59f8787b071739901cd1a843
for a common scenario.
src/gallium/state_trackers/vega/api_paint.c
src/gallium/state_trackers/vega/api_params.c
src/gallium/state_trackers/vega/paint.c
src/gallium/state_trackers/vega/paint.h
src/gallium/state_trackers/vega/renderer.c
src/gallium/state_trackers/vega/shader.c
src/gallium/state_trackers/vega/vg_context.c
src/gallium/state_trackers/vega/vg_context.h