Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp238290pxj; Fri, 28 May 2021 02:49:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx81ZlvGlDIETv5IY1V5y6EiELC3noaSt7Ei/ocR1wx1nw0Yku8Ns9ZhZF2+NdEyksXZ3x9 X-Received: by 2002:a05:6e02:490:: with SMTP id b16mr6691343ils.213.1622195392047; Fri, 28 May 2021 02:49:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622195392; cv=none; d=google.com; s=arc-20160816; b=vC+wS3q2KYJoE4SoaezmoEfgHb+ljWfggjE6KqXiAPhsar9QgQbQfPqu11lcTN7nTI boTAo/sKCVipnX3STbfK3qDrJNDQtJMH38Em9XBa6Wm4cqBOstSD3UbGvWPkGYrqTrV5 VRUZNAXJvxenrX9nyCwKWf0/ksAOsw/dng7xa1qQZL4lM3+5e4ir8zAAdwtDPXfvqUmv BQdWWB3Xj9fAOp0JGQVEJc3Y3sTnEde67DMk97TwTv7Ni6F+PGsUwYrQxNvRucZNHFqU i4pDHgvF3WDMMDWzpumui/Mnk336DUv2JPomtuihE6nJ2zgaGzGvkMxuQ7RxTVqx1b2T OUMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=lxAjGvpo1LXWjw6YKiP5BBieOlkqgzdRCJLuilNRNes=; b=UeJgzqjWfEj67GtQwR/+YhSOPsqedNg3MhQHhbtB42tz0HzfF9Rj/krTDA1EdQYyPm depQxWqsALE0jC9Qdyy8byty705isLLMU8dD4jp97Oogb0AU/IJ18yHWOZ9gqDtIG1I8 uoUuGxU15T2LNh6+Rc8o0riowqJY5aaqvUvxEL+xLfZh80LF8LE/DBiniG+Olaj9A0JZ M0PPWUX1ixSHMwBoKjTNWXHEM8USn5Oy3g4rGxCJR2rDN6lMMu/MZFTN9NryBKS4SJut TmmjZ8BjvFp4Qk/flJ/yQWBidnsS43jF1YedyeNrg3717ywG+UktWTb2VzSTLgCOkpEM +/eQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q1si1247004jat.103.2021.05.28.02.49.38; Fri, 28 May 2021 02:49:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235957AbhE1JuQ (ORCPT + 99 others); Fri, 28 May 2021 05:50:16 -0400 Received: from alexa-out.qualcomm.com ([129.46.98.28]:2534 "EHLO alexa-out.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229774AbhE1JuP (ORCPT ); Fri, 28 May 2021 05:50:15 -0400 Received: from ironmsg08-lv.qualcomm.com ([10.47.202.152]) by alexa-out.qualcomm.com with ESMTP; 28 May 2021 02:48:40 -0700 X-QCInternal: smtphost Received: from ironmsg01-blr.qualcomm.com ([10.86.208.130]) by ironmsg08-lv.qualcomm.com with ESMTP/TLS/AES256-SHA; 28 May 2021 02:48:38 -0700 X-QCInternal: smtphost Received: from c-mansur-linux.qualcomm.com ([10.204.90.208]) by ironmsg01-blr.qualcomm.com with ESMTP; 28 May 2021 15:18:20 +0530 Received: by c-mansur-linux.qualcomm.com (Postfix, from userid 461723) id 9E5DD225EC; Fri, 28 May 2021 15:18:19 +0530 (IST) From: Mansur Alisha Shaik To: linux-media@vger.kernel.org, stanimir.varbanov@linaro.org Cc: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, vgarodia@codeaurora.org, mansur@codeaurora.org, dikshita@codeaurora.org Subject: [PATCH] venus: helper: do not set constrained format for UBWC Date: Fri, 28 May 2021 15:18:08 +0530 Message-Id: <1622195288-18541-1-git-send-email-mansur@codeaurora.org> X-Mailer: git-send-email 2.7.4 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Do not set constrained format explicitly for UBWC Signed-off-by: Mansur Alisha Shaik --- drivers/media/platform/qcom/venus/helpers.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/media/platform/qcom/venus/helpers.c b/drivers/media/platform/qcom/venus/helpers.c index b813d6dba..e4b8a2a 100644 --- a/drivers/media/platform/qcom/venus/helpers.c +++ b/drivers/media/platform/qcom/venus/helpers.c @@ -1138,8 +1138,12 @@ int venus_helper_set_format_constraints(struct venus_inst *inst) if (!IS_V6(inst->core)) return 0; + if (inst->opb_fmt == HFI_COLOR_FORMAT_NV12_UBWC) + return 0; + pconstraint.buffer_type = HFI_BUFFER_OUTPUT2; pconstraint.num_planes = 2; + pconstraint.plane_format[0].stride_multiples = 128; pconstraint.plane_format[0].max_stride = 8192; pconstraint.plane_format[0].min_plane_buffer_height_multiple = 32; -- QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation