All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jocelyn Falempe <jfalempe@redhat.com>
To: Javier Martinez Canillas <javierm@redhat.com>,
	dri-devel@lists.freedesktop.org, tzimmermann@suse.de,
	airlied@redhat.com, lyude@redhat.com
Subject: Re: [PATCH 2/2] drm/mgag200: Use 24bit format in VRAM
Date: Wed, 12 Apr 2023 18:10:12 +0200	[thread overview]
Message-ID: <6d92fca7-1137-2497-86b3-bbd1ddf3917c@redhat.com> (raw)
In-Reply-To: <87mt3drv4q.fsf@minerva.mail-host-address-is-not-set>

On 12/04/2023 17:13, Javier Martinez Canillas wrote:
> Jocelyn Falempe <jfalempe@redhat.com> writes:
> 
>> The bandwidth between system memory and VRAM is very limited
>> on G200.
>> So when using a 32bit framebuffer on system memory, convert it to 24bit
>> when copying the frame to the VRAM, this allows to go 33% faster.
>> Converting the format on the fly is negligible, even on low end CPU.
>>
>> small benchmark on my Dell T310:
>> 1280x1024 32bits: ~125ms to transfert a single frame.
>> 1280x1024 24bits: ~95ms
>>
>> Signed-off-by: Jocelyn Falempe <jfalempe@redhat.com>
>> ---
> 
> I assume that the alpha channel is unused on this display HW and is just
> exposed to user-space to make the DRM driver more compatible ?

Yes, alpha channel is dropped by the hardware, and has no impact on the 
display.
Most userspace now prefer 32bit framebuffer. I know Gnome/wayland 
default to 32bit, and probably other DE are doing the same.

> 
> If so, probably has to be mentioned in the changelog but other than that:

ok I will add this in the commit message.

> 
> Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
> 

Thanks,

-- 

Jocelyn


  reply	other threads:[~2023-04-12 16:10 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-12 13:39 [RFC PATCH 0/2] drm/mgag200: Use 24bit format in VRAM Jocelyn Falempe
2023-04-12 13:39 ` [PATCH 1/2] drm/mgag200: simplify offset and scale computation Jocelyn Falempe
2023-04-12 15:06   ` Javier Martinez Canillas
2023-04-12 13:39 ` [PATCH 2/2] drm/mgag200: Use 24bit format in VRAM Jocelyn Falempe
2023-04-12 15:13   ` Javier Martinez Canillas
2023-04-12 16:10     ` Jocelyn Falempe [this message]
2023-04-13 19:29 ` [RFC PATCH 0/2] " Thomas Zimmermann
2023-04-14  7:59   ` Jocelyn Falempe
2023-04-17  7:49     ` Thomas Zimmermann

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=6d92fca7-1137-2497-86b3-bbd1ddf3917c@redhat.com \
    --to=jfalempe@redhat.com \
    --cc=airlied@redhat.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=javierm@redhat.com \
    --cc=lyude@redhat.com \
    --cc=tzimmermann@suse.de \
    /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.