Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp4311652imw; Tue, 12 Jul 2022 05:59:42 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vROhQKQVvsEGY0nT+v09p3Iw94r+gUwMEJieYhSUqDlrJCfzVvxlnUTKAlOYda2EqtAlU2 X-Received: by 2002:a05:6402:1f01:b0:43a:239e:e65a with SMTP id b1-20020a0564021f0100b0043a239ee65amr31907510edb.428.1657630781845; Tue, 12 Jul 2022 05:59:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657630781; cv=none; d=google.com; s=arc-20160816; b=kXPuOtLdUvrl2C/1mk/yXCcnLsM9p9cyeC0RSp8TwL7vDUQhO9E0VgEeSUDwDXQpQC Am0Q3qyoIndQD/G+WEcp1DXDRFz+3j0i3BY7ElOme9TVfg4gMS6XmZwS57VTBbM8gMrE xzcgfhnij6Vl6Ttw86DoXQSTHi3qn7LjEPuX0uTXrLs7RzlaiRl532aUyZGnLBtQ887S RQEL92gfZ5CS0Ilt6tdgohHkAz54GG9LGK6tzjXIBDmHpPQYNIvYZlur6XYu+FTZ4jXb sL6v6+FR7lwv7iR6mxaRfaMMPQQ1N8mZNuTZAumrgYKrvp+LUiXaQvpbI4bZCmUEyFWW WMoA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dkim-signature; bh=kjqCC1TQXN5pqJ5k6XuqzpdiFR+t5y37ltNwK7wmqWc=; b=cz9PQ7ixAGaKIUZCBDXMoHAdPN7L6owCOLby/+iYhEJMhqzCxxjnjH5TVLHC2O+y7D LzMfIudlbq027OMSXKQrH++azfxyLIm8BxmOeio+bidKtn0kW81O7flWvpvQ2skykrtH 30F44BPskugKRQWbI+5Wp8h36Per5Cecs6XNJWZBkyOwUu611qsUre+fo1PzCruaVBzN ukI0DXIQviiVlUZOPR4PZLXu1g+Te7AGm0Z0G1QFc1r/9bVIjp8i2ZUqCF3FOX4bjFbQ y112+82BvL6xnYoyiAZBX2FeRBGt6Dtpvb/ldfhNQQGzZ8HuPnwqJO5gwfj0pdUePzWz hiqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=EdU7zWR8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f34-20020a05640232a200b0043a88f655efsi12180690eda.300.2022.07.12.05.59.16; Tue, 12 Jul 2022 05:59:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=EdU7zWR8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232830AbiGLMYV (ORCPT + 99 others); Tue, 12 Jul 2022 08:24:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40598 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232727AbiGLMYP (ORCPT ); Tue, 12 Jul 2022 08:24:15 -0400 Received: from alexa-out.qualcomm.com (alexa-out.qualcomm.com [129.46.98.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 058EBA5E45; Tue, 12 Jul 2022 05:24:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1657628653; x=1689164653; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=kjqCC1TQXN5pqJ5k6XuqzpdiFR+t5y37ltNwK7wmqWc=; b=EdU7zWR8UewuwuyIqU1vaIrbdyhYA9QrPGqGGl2DBP7EX/xyadYBQLBP TKLWN5Yfk1366dstRX22nf5thpuhEGAWg4RDRycl7r9tiKy8MtIZ2ogNL zk34NFpV+sHeIIJG0xSi7VwLxNMDBk7TsaOFYL0828q5KilQr/uPNcH0O Q=; Received: from ironmsg07-lv.qualcomm.com ([10.47.202.151]) by alexa-out.qualcomm.com with ESMTP; 12 Jul 2022 05:24:12 -0700 X-QCInternal: smtphost Received: from ironmsg01-blr.qualcomm.com ([10.86.208.130]) by ironmsg07-lv.qualcomm.com with ESMTP/TLS/AES256-SHA; 12 Jul 2022 05:24:10 -0700 X-QCInternal: smtphost Received: from vboma-linux.qualcomm.com ([10.204.65.94]) by ironmsg01-blr.qualcomm.com with ESMTP; 12 Jul 2022 17:54:06 +0530 Received: by vboma-linux.qualcomm.com (Postfix, from userid 72083) id 3EC7F900883; Tue, 12 Jul 2022 17:54:05 +0530 (IST) From: Viswanath Boma To: video.upstream.external@qti.qualcomm.com, Stanimir Varbanov , Andy Gross , Bjorn Andersson , Mauro Carvalho Chehab , linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Viswanath Boma Subject: [PATCH 3/7] venus : CAPTURE Plane width/height alignment with OUT plane. Date: Tue, 12 Jul 2022 17:53:43 +0530 Message-Id: <20220712122347.6781-3-quic_vboma@quicinc.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220712122347.6781-1-quic_vboma@quicinc.com> References: <20220712122347.6781-1-quic_vboma@quicinc.com> X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Stanimir Varbanov V4l2 encoder compliance set-format test cases failing as Capture plane width/height not aligned to OUT plane . Change-Id: I7318a8a750f720e81b7b51520823b68ff13a2697 Signed-off-by: Viswanath Boma --- drivers/media/platform/qcom/venus/venc.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/media/platform/qcom/venus/venc.c b/drivers/media/platform/qcom/venus/venc.c index 21bff25e3f814..b56960d7f6c89 100644 --- a/drivers/media/platform/qcom/venus/venc.c +++ b/drivers/media/platform/qcom/venus/venc.c @@ -192,10 +192,8 @@ venc_try_fmt_common(struct venus_inst *inst, struct v4l2_format *f) pixmp->height = clamp(pixmp->height, frame_height_min(inst), frame_height_max(inst)); - if (f->type == V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE) { - pixmp->width = ALIGN(pixmp->width, 128); - pixmp->height = ALIGN(pixmp->height, 32); - } + pixmp->width = ALIGN(pixmp->width, 128); + pixmp->height = ALIGN(pixmp->height, 32); pixmp->width = ALIGN(pixmp->width, 2); pixmp->height = ALIGN(pixmp->height, 2); -- 2.17.1