sna/gen8: Fix cleanup after failing to convert channel

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2014-06-18 14:48:33 +01:00
parent 21b6e55152
commit 44b5912ffc
1 changed files with 3 additions and 3 deletions

View File

@ -2306,7 +2306,7 @@ gen8_render_composite(struct sna *sna,
return true;
if (!gen8_composite_channel_convert(&tmp->src))
goto cleanup_dst;
goto cleanup_src;
break;
}
@ -2353,7 +2353,7 @@ gen8_render_composite(struct sna *sna,
/* fall through to fixup */
case 1:
if (!gen8_composite_channel_convert(&tmp->mask))
goto cleanup_src;
goto cleanup_mask;
break;
}
}
@ -2588,7 +2588,7 @@ gen8_render_composite_spans(struct sna *sna,
/* fall through to fixup */
case 1:
if (!gen8_composite_channel_convert(&tmp->base.src))
goto cleanup_dst;
goto cleanup_src;
break;
}
tmp->base.mask.bo = NULL;