mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-25 14:13:01 -04:00
disp: msm: sde: add check for unsupported writeback output formats
Chroma sample types H1V2 and H2V1 are not supported in write back output. Made changes to add atomic check for such unsupported output formats in writeback. Change-Id: Ic37865e0b0c64016df728cc753ad66c3b9e9d138 Signed-off-by: Andhavarapu Karthik <kartkart@codeaurora.org>
This commit is contained in:
parent
5bbd5f8e7a
commit
72707666f2
1 changed files with 7 additions and 0 deletions
|
|
@ -784,6 +784,13 @@ static int sde_encoder_phys_wb_atomic_check(
|
|||
return -EINVAL;
|
||||
}
|
||||
|
||||
if (fmt->chroma_sample == SDE_CHROMA_H2V1 ||
|
||||
fmt->chroma_sample == SDE_CHROMA_H1V2) {
|
||||
SDE_ERROR("invalid chroma sample type in output format %x\n",
|
||||
fmt->base.pixel_format);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
if (SDE_FORMAT_IS_UBWC(fmt) &&
|
||||
!(wb_cfg->features & BIT(SDE_WB_UBWC))) {
|
||||
SDE_ERROR("invalid output format %x\n", fmt->base.pixel_format);
|
||||
|
|
|
|||
Loading…
Reference in a new issue