sna/gen8: Fix cleanup after failing to convert channel
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
21b6e55152
commit
44b5912ffc
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue