Message ID | 20200524194852.v2.11.Idb93182c5620fa4a55ad25cd4ef796bb8ce2241d@changeid |
---|---|
State | Superseded |
Delegated to: | Bin Meng |
Headers | show
Return-Path: <u-boot-bounces@lists.denx.de> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.a=rsa-sha256 header.s=google header.b=iojVg09j; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 49Vg7D1184z9sPF for <incoming@patchwork.ozlabs.org>; Mon, 25 May 2020 11:51:36 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id E60278168D; Mon, 25 May 2020 03:50:07 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="iojVg09j"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id E3885814E1; Mon, 25 May 2020 03:49:27 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,SPF_HELO_NONE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-io1-xd41.google.com (mail-io1-xd41.google.com [IPv6:2607:f8b0:4864:20::d41]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 17E3D812E7 for <u-boot@lists.denx.de>; Mon, 25 May 2020 03:49:18 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@chromium.org Received: by mail-io1-xd41.google.com with SMTP id q8so15863837iow.7 for <u-boot@lists.denx.de>; Sun, 24 May 2020 18:49:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=1SwT40vlnAh47lfyLthEkjOmrhT1t4PWYY+4Bbyiuso=; b=iojVg09jt1z3ARAwBWdglv4dtiVSp0D/goEomDFrHSUlnYhKhqak+gBIrG31Ewy8BQ uA01kI92p7AJfwJSpDBWAnBnyTQcDRBE+2nT49jo6cgNQ4r6FogfsYJSNmi4ih/s2ugR cQyQKSP3E3nVwXyO1LI67x4HjDJ8cDocAy7iU= 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:mime-version:content-transfer-encoding; bh=1SwT40vlnAh47lfyLthEkjOmrhT1t4PWYY+4Bbyiuso=; b=itlU3/3WuvU+k9rUCR3YK+ugFPZ8cokfW6xXV6Cc99Yk1wK9EifXkjJDXmZGMtkVYF yviidStSsN1NQQrskMxdblCQio+2KS58sXO1fVENzAMc0XebXn/ZrC10sAJUFIALkhSG wxVrTDt42OrB05IWYnh9phHMb/r7oWWsIOxEDRNzsAWOD6zQC9EtKUCYGIFgErxJvW2F gGh5QvQxNmFxUFrx3LKVeJ3MKcI1FCPWtAusc3wrInzCZoxx5NkF9dD4P4rOT339Moko MauSIwZRTQlW9CjtgSGf2VIFY2lW8kRJ6FNrzM6bWcJ5or6VZlF9/FqIJUejJaQ8fph5 ZMHQ== X-Gm-Message-State: AOAM532Fw7dOuqlU1UYepAYlzh6osmVc7dULrIcjZJVBhhyZFgi9xjTi X6HPnOlza/cd7DlR3qes2IxPzsgXDdfwhA== X-Google-Smtp-Source: ABdhPJwM/4C0JMmXwY/imyu+Ugs542gr0x4NuwG78hgqXQFkPTXdZcjCNc9MbeApS7jz26rS8eQMcA== X-Received: by 2002:a02:c804:: with SMTP id p4mr11507307jao.115.1590371356734; Sun, 24 May 2020 18:49:16 -0700 (PDT) Received: from localhost.localdomain (c-73-14-175-90.hsd1.co.comcast.net. [73.14.175.90]) by smtp.gmail.com with ESMTPSA id s7sm6822965ioc.37.2020.05.24.18.49.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 May 2020 18:49:16 -0700 (PDT) From: Simon Glass <sjg@chromium.org> To: U-Boot Mailing List <u-boot@lists.denx.de> Cc: Bin Meng <bmeng.cn@gmail.com>, Simon Glass <sjg@chromium.org>, Anatolij Gustschin <agust@denx.de> Subject: [PATCH v2 11/26] video: Clear the copy framebuffer when clearing the screen Date: Sun, 24 May 2020 19:48:48 -0600 Message-Id: <20200524194852.v2.11.Idb93182c5620fa4a55ad25cd4ef796bb8ce2241d@changeid> X-Mailer: git-send-email 2.27.0.rc0.183.gde8f92d652-goog In-Reply-To: <20200525014904.115621-1-sjg@chromium.org> References: <20200525014904.115621-1-sjg@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.30rc1 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <https://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> X-Virus-Scanned: clamav-milter 0.102.2 at phobos.denx.de X-Virus-Status: Clean |
Series |
x86: video: Speed up the framebuffer
|
expand
|
diff --git a/drivers/video/video-uclass.c b/drivers/video/video-uclass.c index 0c97377ea9..4d6f950eab 100644 --- a/drivers/video/video-uclass.c +++ b/drivers/video/video-uclass.c @@ -94,6 +94,7 @@ int video_reserve(ulong *addrp) int video_clear(struct udevice *dev) { struct video_priv *priv = dev_get_uclass_priv(dev); + int ret; switch (priv->bpix) { case VIDEO_BPP16: @@ -118,6 +119,9 @@ int video_clear(struct udevice *dev) memset(priv->fb, priv->colour_bg, priv->fb_size); break; } + ret = video_sync_copy(dev, priv->fb, priv->fb + priv->fb_size); + if (ret) + return ret; return 0; }