From: Knut Petersen <Knut_Petersen@t-online.de>
To: Andrew Morton <akpm@osdl.org>
Cc: linux-fbdev-devel@lists.sourceforge.net,
"Antonino A. Daplas" <adaplas@gmail.com>
Subject: [BUG] [PATCH 8/10] fbcon: Break up bit_putcs into its component functions
Date: Fri, 02 Sep 2005 13:18:22 +0200 [thread overview]
Message-ID: <431834FE.1030308@t-online.de> (raw)
In-Reply-To: <431775CA.4020509@gmail.com>
The patch is broken, please don´t apply!
If count > maxcnt in bit_putcs(), bit_putcs_(un)aligned() is first
called to display
maxcnt characters. It returns, and the current value for the source
pointer s is lost.
Then bit_putcs_(un)aligned() is called again, obviously displaying
characters from
the start of s and not starting after the last allready displayed character.
Obviously that will only happen for small pixmap buffers, large fonts
and high
resolutions. For the default pixmap size of 8k, a 16x32 font this bug
will have
the described results for all xres > 2048, for the same font and a pixmap
size of 4k all xres > 1024.
A small pixmap sizes of 4k gives better overall performance for at least
the
cyberbade/i1 / Via Samuel 2 combination because of cache effects.
Steps to reproduce:
- Reduce pixmap size to 4k, compile and reboot or reload framebuffer
module
- fbset 1280x1024
- setfont bitstream_vera_sans_mono_roman.16x30.psf
- ctrl-alt-f2 ctrl-alt-f1
To Antonino,
- dont´t pass unused parameters like count, xx and yy to
bit_putcs_(un)alligned()
- you do not need to calculate idx if you have calculated and passed
s_pitch
cu
knut
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
prev parent reply other threads:[~2005-09-02 11:43 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-09-01 21:42 [PATCH 8/10] fbcon: Break up bit_putcs into its component functions Antonino A. Daplas
2005-09-02 7:31 ` Knut Petersen
2005-09-02 11:18 ` Knut Petersen [this message]
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=431834FE.1030308@t-online.de \
--to=knut_petersen@t-online.de \
--cc=adaplas@gmail.com \
--cc=akpm@osdl.org \
--cc=linux-fbdev-devel@lists.sourceforge.net \
/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.