All of lore.kernel.org
 help / color / mirror / Atom feed
From: Arnaud Patard (Rtp) <arnaud.patard@rtp-net.org>
To: "Antonino A. Daplas" <adaplas@gmail.com>
Cc: "Arnaud Patard (Rtp)" <arnaud.patard@rtp-net.org>,
	linux-fbdev-devel@lists.sourceforge.net
Subject: Re: [PATCH 1/2] ARM S3C2410 framebuffer driver
Date: Mon, 05 Sep 2005 08:39:21 +0200	[thread overview]
Message-ID: <85ek845886.fsf@Orfeo.duckcorp.org> (raw)
In-Reply-To: <431B9E1F.3010607@gmail.com> (Antonino A. Daplas's message of "Mon, 05 Sep 2005 09:23:43 +0800")

"Antonino A. Daplas" <adaplas@gmail.com> writes:

> Arnaud Patard (Rtp) wrote:
>> "Antonino A. Daplas" <adaplas@gmail.com> writes:
>> 
>
> I noticed one more thing:
>
>> +	if (var->bits_per_pixel == 16) {
>> +		var->red.offset		= 11;
>> +		var->green.offset	= 5;
>> +		var->blue.offset	= 0;
>> +		var->red.length		= 5;
>> +		var->green.length	= 6;
>> +		var->blue.length	= 5;
>> +		var->transp.length	= 0;
>> +	} else {
>> +		var->red.length		= 8;
>> +		var->red.offset		= 0;
>> +		var->green.length	= 8;
>> +		var->green.offset	= 0;
>> +		var->blue.length	= 8;
>> +		var->blue.offset	= 0;
>> +		var->transp.length	= 0;
>> +	}
>
> Your driver supports bits_per_pixel of 1, 2, 4 and 8. It will
> be more correct if you do the above like this:
>
> 		var->red.length		= var->bits_per_pixel;
> 		var->red.offset		= 0;
> 		var->green.length	= var->bits_per_pixel;
> 		var->green.offset	= 0;
> 		var->blue.length	= var->bits_per_pixel;
> 		var->blue.offset	= 0;
>
> Otherwise, your driver will get wrong colors at bpp of 1 and 2
> with fbcon.
>
> If you believe the above is correct, I'll do the correction in
> my tree and you need not send a patch.

yeah, it's correct. This has been changed in a patch that adds STN
support to the driver but this patch needs cleaning and tests before
submission.

Regards,
Arnaud



-------------------------------------------------------
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

      reply	other threads:[~2005-09-05  6:39 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-09-04 10:18 [PATCH 1/2] ARM S3C2410 framebuffer driver Arnaud Patard
2005-09-04 15:50 ` Antonino A. Daplas
2005-09-04 20:57   ` Arnaud Patard
2005-09-05  0:58     ` Antonino A. Daplas
2005-09-05  1:23     ` Antonino A. Daplas
2005-09-05  6:39       ` Arnaud Patard [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=85ek845886.fsf@Orfeo.duckcorp.org \
    --to=arnaud.patard@rtp-net.org \
    --cc=adaplas@gmail.com \
    --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.