diff options
author | Eric Anholt <eric@anholt.net> | 2009-10-21 13:30:38 -0700 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2009-11-05 16:01:32 -0800 |
commit | 4c8e783d84d2c14c8a1638b6a12307c0164d3e31 (patch) | |
tree | 607f28b8acd680b40fddf16aa579d87b34ba8735 /src | |
parent | d0e08fe611681fcc840d1b9ee8d49acdf50f7e58 (diff) |
Fix "Remove flow-control macros for fallbacks in the 2D driver."
I guess this is the sort of failure due to rebase-happiness that makes
Linus yell at us for rebasing.
Diffstat (limited to 'src')
-rw-r--r-- | src/i830_render.c | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/src/i830_render.c b/src/i830_render.c index 7fe528e9..24d644be 100644 --- a/src/i830_render.c +++ b/src/i830_render.c @@ -197,8 +197,9 @@ static Bool i830_get_blend_cntl(ScrnInfoPtr scrn, int op, PicturePtr mask, */ if (dst_format == PICT_a8 && ((sblend == BLENDFACTOR_DST_ALPHA || sblend == BLENDFACTOR_INV_DST_ALPHA))) { - I830FALLBACK - ("Can't do dst alpha blending with PICT_a8 dest.\n"); + intel_debug_fallback(scrn, "Can't do dst alpha blending with " + "PICT_a8 dest.\n"); + return FALSE; } /* If the source alpha is being used, then we should only be in a case @@ -398,10 +399,12 @@ i830_check_composite(int op, PicturePtr source_picture, PicturePtr mask_picture, * source value that we get to blend with. */ if (i830_blend_op[op].src_alpha && - (i830_blend_op[op].src_blend != BLENDFACTOR_ZERO)) - I830FALLBACK - ("Component alpha not supported with source " - "alpha and source value blending.\n"); + (i830_blend_op[op].src_blend != BLENDFACTOR_ZERO)) { + intel_debug_fallback(scrn, "Component alpha not " + "supported with source alpha and " + "source value blending.\n"); + return FALSE; + } } if (!i830_check_composite_texture(scrn, source_picture, 0)) { |