From: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
To: linux-fbdev@vger.kernel.org
Subject: Re: [PATCH] viafb: Use proper register for bgcolor when doing MONO
Date: Tue, 21 Sep 2010 17:00:10 +0000 [thread overview]
Message-ID: <4C98E49A.5010200@gmx.de> (raw)
In-Reply-To: <20100921154604.2E3059D401B@zog.reactivated.net>
Daniel Drake schrieb:
> From: Jon Nettleton <jon.nettleton@gmail.com>
>
> Seemingly random colours were being painted as the background on the
> terminal. This fixes MONO color blits.
Not really. For color blits it looks like we're doing the right thing here, at
least it works on VX800 as I'd expect it (when I change the bg_color to red I
get the characters with a red background, after applying your patch I get them
with a black background). To me it looks like we should set this register for
fillrect operations (as after your patch is applied I get a red backround for
the space where no characters are).
Thanks,
Florian Tobias Schandinat
>
> Fixes http://dev.laptop.org/ticket/9323
>
> Signed-off-by: Daniel Drake <dsd@laptop.org>
>
> ---
> drivers/video/via/accel.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/video/via/accel.c b/drivers/video/via/accel.c
> index e44893e..8d9819c 100644
> --- a/drivers/video/via/accel.c
> +++ b/drivers/video/via/accel.c
> @@ -287,7 +287,7 @@ static int hw_bitblt_2(void __iomem *engine, u8 op, u32 width, u32 height,
> writel(fg_color, engine + 0x4C);
>
> if (op = VIA_BITBLT_MONO)
> - writel(bg_color, engine + 0x50);
> + writel(bg_color, engine + 0x58);
>
> if (op = VIA_BITBLT_FILL)
> ge_cmd |= fill_rop << 24 | 0x00002000 | 0x00000001;
next prev parent reply other threads:[~2010-09-21 17:00 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-21 15:46 [PATCH] viafb: Use proper register for bgcolor when doing MONO blits Daniel Drake
2010-09-21 17:00 ` Florian Tobias Schandinat [this message]
2010-09-21 17:07 ` Daniel Drake
2010-09-21 19:37 ` Jon Nettleton
2010-09-21 20:31 ` [PATCH] viafb: Use proper register for bgcolor when doing MONO Florian Tobias Schandinat
2010-09-21 22:18 ` [PATCH] viafb: Use proper register for bgcolor when doing MONO blits Jon Nettleton
2010-09-22 2:52 ` [PATCH] viafb: use proper register for colour when doing fill ops Florian Tobias Schandinat
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4C98E49A.5010200@gmx.de \
--to=florianschandinat@gmx.de \
--cc=linux-fbdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).