From: Michael Schmitz <schmitzmic@gmail.com>
To: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: "Miro Kropáček" <miro.kropacek@gmail.com>,
"Linmao Li" <lilinmao@kylinos.cn>,
deller@gmx.de, linux-fbdev@vger.kernel.org,
dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] fbdev: atafb: Restrict SuperBlitter to supported formats
Date: Fri, 11 Sep 2026 16:53:16 +1200 [thread overview]
Message-ID: <f2656a6f-0bc4-2afe-1a1a-f8ce1167e090@gmail.com> (raw)
In-Reply-To: <CAMuHMdWoZBGyH=WeiTG4QCNC4hr_+pC4QQb-wjK0afZgMUy1Fw@mail.gmail.com>
Hi Geert,
Am 08.09.2026 um 19:18 schrieb Geert Uytterhoeven:
>>> Unless I overlooked something, the fill also looks wrong on paper: the
>>> first line is filled with a repeated byte and then with repeated
>>> 32-bit words of the same value, which cannot reproduce a 3-byte pixel
>>> pattern unless all three bytes are equal.
>>
>> You're correct - we'd need a memset24() to account for that. Without
>
> Unless the frame buffer would be using a DIRECT_COLOR visual (which
> is not the case), then you could draw pixels in the 16 console colors
> by replicating the color index in all 3 bytes ;-)
Sorry, I don't get that - are the console colors chosen judiciously to
allow for that?
>> hardware support this is an academic exercise that I don't have time for :-)
>
> True. And as this code is used only to fill the first line (the blitter
> replicates it into the other lines), the performance difference between
> a simple byte loop and a true memset24() won't be that large.
I wasn't worried about performance as the blitter takes care of most of
the work (though we may schedule away from svblit_fillrect() while the
blitter is active). Getting the 'simple byte loop' right is more
important. My sample code got everything wrong in fact.
There's a reason why we don't work with 24 bit sized objects usually,
and probably a reason why 24 bpp was never implemented for the
SuperVidel :-)
Cheers,
Michael
>
>
> Gr{oetje,eeting}s,
>
> Geert
>
next prev parent reply other threads:[~2026-09-11 4:53 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-27 9:39 [PATCH] fbdev: atafb: Restrict SuperBlitter to supported formats Linmao Li
2026-09-06 1:49 ` Michael Schmitz
2026-09-07 8:38 ` Geert Uytterhoeven
2026-09-07 20:18 ` Michael Schmitz
2026-09-07 11:14 ` Miro Kropáček
2026-09-07 20:14 ` Michael Schmitz
2026-09-08 7:18 ` Geert Uytterhoeven
2026-09-11 4:53 ` Michael Schmitz [this message]
2026-09-11 7:36 ` Geert Uytterhoeven
2026-09-10 20:39 ` Helge Deller
2026-09-11 0:17 ` Miro Kropáček
2026-09-11 3:42 ` Michael Schmitz
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=f2656a6f-0bc4-2afe-1a1a-f8ce1167e090@gmail.com \
--to=schmitzmic@gmail.com \
--cc=deller@gmx.de \
--cc=dri-devel@lists.freedesktop.org \
--cc=geert@linux-m68k.org \
--cc=lilinmao@kylinos.cn \
--cc=linux-fbdev@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=miro.kropacek@gmail.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.