summaryrefslogtreecommitdiff
path: root/src/i830_render.c
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2009-10-21 13:30:38 -0700
committerOwain G. Ainsworth <oga@openbsd.org>2010-03-01 15:56:51 +0000
commitba4c463b7d4fcdaa7cb019f6b1974227ead23fc7 (patch)
tree018c05828c3975f727eb0026d5a80dd1cab97fce /src/i830_render.c
parent742ac31aeef8474340f7e5d48ae15f9a0d032916 (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. (cherry picked from commit 4c8e783d84d2c14c8a1638b6a12307c0164d3e31) Signed-off-by: Owain G. Ainsworth <oga@openbsd.org>
Diffstat (limited to 'src/i830_render.c')
-rw-r--r--src/i830_render.c15
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)) {