Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1794d92b authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "disp: msm: sde: add check for unsupported writeback output formats"

parents 0ed04a31 72707666
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -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);