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: 124017 Delivered-To: patches@linaro.org Received: by 10.140.22.227 with SMTP id 90csp4884468qgn; Tue, 9 Jan 2018 22:06:00 -0800 (PST) X-Received: by 10.84.216.8 with SMTP id m8mr10801423pli.215.1515564360522; Tue, 09 Jan 2018 22:06:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1515564360; cv=none; d=google.com; s=arc-20160816; b=S3Psavzjp1ix6qQFCz34QvFFla4Im+0GaN96Js8Hy53FtEq8CxevLUb3fMx8A6/Y5V gE9VK73VWsDGEeZQMnNZo96rRmUpAHKJtF9io6VHmZ+pMJqDqZshZDjLvE35LAijk1ib 5SG1DQGXobiVr6E57je9LRy5yfHaYg8B3uTMad/3QBL6a6zalpCqUuAS0GpHdxJuI2e9 K8brbME9u23R1ADFMrQbuN/xpIjuL+87IaCpimWNhi/0CWJsEZ5wF90/HpOir3WziMYo x8ll/zaw2EXkYiDYWeQVPaUYB9stlOfEnE4u6QgcJTVBc0nk4Uog1CKn6ONwnw9vbD6l U7ig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=ruHabPhoJH7x6cQiQT3kPWzfx+MFHkUH8axYMMM6YbY=; b=jNEo/iohKA5/KTXMYwjo98RWV3OILTcNaI4lH7l+i12q5/yQ8hYUIto5gRlS1SNIg7 4APWNVlNITPNzt7dJpiGeGrNjfSHuoR5FGsScXn46w0Uv/FwgR24OlRJYxP+ZcaTq/TO iCjVuDAopmZtTJgJv5kvytPtuXwjqObM/xRaPVA7TJV0KABr0/G68E/fuZjOoU42Z+gC HsTRvL1M7jjAGKY1Lfu5h2Ille0p8kI8xogGJIfzKKbwUz/eG2RzX9XLMqKIfai/FwiQ JLimkSAb6UTOt9hI6I0F7rIHCaECLEYCP09UUFnXZyFUOVyABS8Oa9ciuL2l+tFJM1dx PO5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BolH0Jt8; spf=pass (google.com: domain of john.stultz@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=john.stultz@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id p2sor3604239pgc.251.2018.01.09.22.06.00 for (Google Transport Security); Tue, 09 Jan 2018 22:06:00 -0800 (PST) Received-SPF: pass (google.com: domain of john.stultz@linaro.org designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BolH0Jt8; spf=pass (google.com: domain of john.stultz@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=john.stultz@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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=Ietu20qEfFUyTPAY50++tKVDDeUVfLmHuxA5plMnz9lYRTIpA82tBzd/vj5/v73koj R0tnKUe7m0mdhDMivzIR0nUCInJgGn6pNqpm+Lika0h3ohlTEZ9J1t/MJKAiInKSUdQa FcyM4NhQo2meE+b0v/eOAmdNt4XIfAke1GTkCgeo+RDkc52gbZiqBol/RUKXTpi+rP3G txFyb8syphLU5y0ketbcrdIqTdHDQEGJJxq8CQs1tnoLKTWrhF8xC+j9ZIMNLIV6a0Uz IIl+98/XLczCO3E8jLmFOIpqxsQp9mCXXHm++m3Mi5u0Km/OkELo7jTWBqR4KG7Wup9a Pm7A== X-Gm-Message-State: AKGB3mIXlDP2tzOpbJMNn4BOo9/avTMgzBryrM5y7lNnG0Tc/3vr65t3 WeRKMET3zXh2HeFtOMkELVyafXPf 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) Return-Path: 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 Cc: Rob Herring , Marissa Wall , Sean Paul , Dmitry Shmidt , Robert Foss , Matt Szczesiak , Liviu Dudau , David Hanna , Rob Herring , John Stultz 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> 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(-) -- 2.7.4 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;