mirror of
https://github.com/team-infusion-developers/android_hardware_samsung.git
synced 2024-11-06 21:55:41 +00:00
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:
parent
dfa35134f6
commit
2dc726f442
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue