From patchwork Wed Jan 10 06:05:44 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Stultz X-Patchwork-Id: 10154035 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id CF3B6602D8 for ; Wed, 10 Jan 2018 06:06:05 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C1FCC27FC0 for ; Wed, 10 Jan 2018 06:06:05 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B6D5A28068; Wed, 10 Jan 2018 06:06:05 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 75B8127FC0 for ; Wed, 10 Jan 2018 06:06:05 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 58CDC6E1AF; Wed, 10 Jan 2018 06:06:02 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-pg0-x241.google.com (mail-pg0-x241.google.com [IPv6:2607:f8b0:400e:c05::241]) by gabe.freedesktop.org (Postfix) with ESMTPS id 03BBD6E1AC for ; Wed, 10 Jan 2018 06:06:01 +0000 (UTC) Received: by mail-pg0-x241.google.com with SMTP id r2so10053361pgq.13 for ; Tue, 09 Jan 2018 22:06:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=ruHabPhoJH7x6cQiQT3kPWzfx+MFHkUH8axYMMM6YbY=; b=BolH0Jt8kKGvg7iVB88WvanFI74ZhvbNCLQ7c2sVtXGHx5dExxHDFP0upjyR8EOiOp xSGG5oXnCA8M+sgZqHOu+DC9rF7pj7c0eIH0KzmZyPVcKyhzPzyPhKntBUDzrx8qu4xB fSyrbNzxrQ/wwyuEoFOLgfZYW5m+5MhOoyEgw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=ruHabPhoJH7x6cQiQT3kPWzfx+MFHkUH8axYMMM6YbY=; b=tgo18SoYnODWSLAHS9a5xD2dldC05Y3z2ec7f6qCNA/jE5Cb49Sto+IMIloyPuC+GM 1fdF9tzGCU6y99ND9GkG7ht5nbC40DulxtPrPFPQUBYmwGn9P/h3BwiAXZT3gp6h2DDq y2ISNKZXTaqcUqUDvDs46+p293nzV3SyM5x462De3UgMF20mpJ3p+PfGzvkmFVcMoODH 53kj/2VZEq0X8v4GT9KqFXVy+gICKUF2DbFgUPoJaYj5EyWMLnXp0ti1BSdGZvTpBuoL iRlVwbaAANdF9GyK5l/+108ffJXYH8TDSK/Xndm7kVzxLhJutba/JHnTUHJK2hSFvlcD gaZA== X-Gm-Message-State: AKGB3mJq07gEkYnlP3XwiaPUrZNztTixtlMxXnDW9o68OJhjJ+yHsHe8 8uy1G4I3yRpx4vY1H7kyehfiVssgy7o= X-Google-Smtp-Source: ACJfBouuXtYyF83fLmf/EM9FI3P1gzXEaALREcFb+LOLHqr5ITEsdk8lZPbbkQ+z9ndEOQ8eumSQ+w== X-Received: by 10.101.81.7 with SMTP id f7mr14237099pgq.431.1515564360186; Tue, 09 Jan 2018 22:06:00 -0800 (PST) Received: from localhost.localdomain ([2601:1c2:600:5100:4e72:b9ff:fe99:466a]) by smtp.gmail.com with ESMTPSA id g8sm25538595pgs.55.2018.01.09.22.05.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 09 Jan 2018 22:05:59 -0800 (PST) From: John Stultz To: dri-devel@lists.freedesktop.org Subject: [RFC][PATCH 4/5] drm_hwcomposer: HACK: force single plane Date: Tue, 9 Jan 2018 22:05:44 -0800 Message-Id: <1515564345-1339-5-git-send-email-john.stultz@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1515564345-1339-1-git-send-email-john.stultz@linaro.org> References: <1515564345-1339-1-git-send-email-john.stultz@linaro.org> Cc: Matt Szczesiak , Dmitry Shmidt , Sean Paul , Rob Herring , Robert Foss , Liviu Dudau , Marissa Wall , David Hanna X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP From: Rob Herring Change from Rob to force use of single plane. Without this we don't see anything on the screen. Suggestions for alternative solutions here would be greatly appreciated! Change-Id: Ic963c356ab1ef241d92fde6c890936b560f52051 Cc: Marissa Wall Cc: Sean Paul Cc: Dmitry Shmidt Cc: Robert Foss Cc: Matt Szczesiak Cc: Liviu Dudau Cc: David Hanna Cc: Rob Herring Signed-off-by: John Stultz --- drmhwctwo.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drmhwctwo.cpp b/drmhwctwo.cpp index dfca1a6..5ab4595 100644 --- a/drmhwctwo.cpp +++ b/drmhwctwo.cpp @@ -692,12 +692,10 @@ HWC2::Error DrmHwcTwo::HwcDisplay::ValidateDisplay(uint32_t *num_types, case HWC2::Composition::SolidColor: case HWC2::Composition::Cursor: case HWC2::Composition::Sideband: + default: layer.set_validated_type(HWC2::Composition::Client); ++*num_types; break; - default: - layer.set_validated_type(layer.sf_type()); - break; } } return *num_types ? HWC2::Error::HasChanges : HWC2::Error::None;