exynos4: hwc: add missing checks in is_overlay_supported

make sure that if something is transformed/scaled we don't try drawing
directly to FIMD

Change-Id: I69be0d296c11496c5b380b7135dad10cb6c66fc8
This commit is contained in:
Simon Shields 2017-10-29 23:10:49 +11:00 committed by Shilin Victor
parent dfa35134f6
commit 2dc726f442
1 changed files with 2 additions and 1 deletions

View File

@ -302,7 +302,8 @@ bool is_overlay_supported(struct hwc_context_t *ctx, hwc_layer_1_t &layer, size_
break;
default:
if (!format_is_supported(handle->format)) {
if (!format_is_supported(handle->format) || is_transformed(layer) || is_scaled(layer) || !is_contiguous(layer)
|| !is_x_aligned(layer)) {
ALOGW("\tlayer %u: pixel format %u not supported", i, handle->format);
return false;
}