From patchwork Mon Nov 19 10:02:39 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Koen Kooi X-Patchwork-Id: 10688357 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 6472E14D6 for ; Mon, 19 Nov 2018 10:02:47 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 547D229C37 for ; Mon, 19 Nov 2018 10:02:47 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 48EB329C4D; Mon, 19 Nov 2018 10:02:47 +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=-5.2 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED 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 A176729C37 for ; Mon, 19 Nov 2018 10:02:46 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 6CB7689D3E; Mon, 19 Nov 2018 10:02:45 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-ed1-x543.google.com (mail-ed1-x543.google.com [IPv6:2a00:1450:4864:20::543]) by gabe.freedesktop.org (Postfix) with ESMTPS id BD5FD89D02 for ; Mon, 19 Nov 2018 10:02:43 +0000 (UTC) Received: by mail-ed1-x543.google.com with SMTP id r27so21859954eda.0 for ; Mon, 19 Nov 2018 02:02:43 -0800 (PST) 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; bh=V0qsgETnzWaBuXpE6M3sa3/4e79l1qLobN/WNzDTI08=; b=etCZN0pvGPqnXRSmvgHIzFXXwz0UBDqAVT51NlPzJfXC0qYTHb+bb06mE/4Pdew9uf x/Zvtxq3kZ2h0aEPqqEhoiLUEj++TpjT58E0Ar6nExxCpCzaomBT+scRY7q2HBMSGyKL sjy6yBheHkzVbfG+1Z0wm6XPfX5k4oYen3g54d5bFKuPCwa8VTcy+STUc+DOIxigkEo7 /OBGXtjhCuNnbBZkq/fFMgkXmQfflYMvIhqjyiMMiGgKD8yikjohq8/yGwEN4RLQ5nFt AwtZ6uNezmN+CnXleiOO6CqTC9jhp8SDA8hGu/AkyI53nV5kl8Ws6LnkKqefOFOfFxBG o9Fg== X-Gm-Message-State: AGRZ1gKEo7Vqsqc0e+M+khRpNkJah90ZsLd7hzetH1G+Br39guYngHJ/ FH8a5UNKDMCPA2GllhkaRWcF1gX0BLY= X-Google-Smtp-Source: AJdET5fkG/Q3CsRkWJwg7Ef+xN7d5oMkkUrTMRVXY3En7xfd4gN2Y6pbZHDAj5Bx3VSrB1wkCgQ+VQ== X-Received: by 2002:a17:906:8242:: with SMTP id f2-v6mr5091101ejx.125.1542621762079; Mon, 19 Nov 2018 02:02:42 -0800 (PST) Received: from localhost ([82.163.40.65]) by smtp.gmail.com with ESMTPSA id g3sm11073736edc.63.2018.11.19.02.02.41 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Mon, 19 Nov 2018 02:02:41 -0800 (PST) From: Koen Kooi To: dri-devel@lists.freedesktop.org Subject: [PATCH] drm/meson: Add implicit fencing support for primary and overlay planes Date: Mon, 19 Nov 2018 11:02:39 +0100 Message-Id: <1542621759-26413-1-git-send-email-koen@dominion.thruhere.net> X-Mailer: git-send-email 2.0.1 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Koen Kooi , Neil Armstrong MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP Suggested by Qiang Yu to fix tearing artefacts in the Kodi GUI. Signed-off-by: Koen Kooi Acked-by: Neil Armstrong --- drivers/gpu/drm/meson/meson_overlay.c | 2 ++ drivers/gpu/drm/meson/meson_plane.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/drivers/gpu/drm/meson/meson_overlay.c b/drivers/gpu/drm/meson/meson_overlay.c index 9aebc5e..691a9fd 100644 --- a/drivers/gpu/drm/meson/meson_overlay.c +++ b/drivers/gpu/drm/meson/meson_overlay.c @@ -16,6 +16,7 @@ #include #include #include +#include #include #include "meson_overlay.h" @@ -532,6 +533,7 @@ static const struct drm_plane_helper_funcs meson_overlay_helper_funcs = { .atomic_check = meson_overlay_atomic_check, .atomic_disable = meson_overlay_atomic_disable, .atomic_update = meson_overlay_atomic_update, + .prepare_fb = drm_gem_fb_prepare_fb, }; static const struct drm_plane_funcs meson_overlay_funcs = { diff --git a/drivers/gpu/drm/meson/meson_plane.c b/drivers/gpu/drm/meson/meson_plane.c index 12a47b4..8ee2cf9 100644 --- a/drivers/gpu/drm/meson/meson_plane.c +++ b/drivers/gpu/drm/meson/meson_plane.c @@ -32,6 +32,7 @@ #include #include #include +#include #include #include "meson_plane.h" @@ -322,6 +323,7 @@ static const struct drm_plane_helper_funcs meson_plane_helper_funcs = { .atomic_check = meson_plane_atomic_check, .atomic_disable = meson_plane_atomic_disable, .atomic_update = meson_plane_atomic_update, + .prepare_fb = drm_gem_fb_prepare_fb, }; static const struct drm_plane_funcs meson_plane_funcs = {