dri-devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Michel Dänzer" <michel.daenzer@mailbox.org>
To: Jocelyn Falempe <jfalempe@redhat.com>,
	Thomas Zimmermann <tzimmermann@suse.de>
Cc: dri-devel@lists.freedesktop.org
Subject: Re: [PATCH v3] drm/plane: Add documentation about software color conversion.
Date: Wed, 13 Sep 2023 19:02:01 +0200	[thread overview]
Message-ID: <87df2806-43d4-0bd9-e17c-84203ff9625a@mailbox.org> (raw)
In-Reply-To: <39adc271-b79a-82ab-d125-e25e3282b729@redhat.com>

On 9/13/23 10:14, Jocelyn Falempe wrote:
> On 12/09/2023 17:57, Michel Dänzer wrote:
>> On 9/11/23 10:38, Pekka Paalanen wrote:
>>> On Fri, 8 Sep 2023 17:10:46 +0200
>>> Thomas Zimmermann <tzimmermann@suse.de> wrote:
>>>> Am 08.09.23 um 16:41 schrieb Pekka Paalanen:
>>>>> On Fri, 8 Sep 2023 15:56:51 +0200
>>>>> Thomas Zimmermann <tzimmermann@suse.de> wrote:
>>>>>>
>>>>>> Another point of concern is CPU consumption: Slow I/O buses may stall
>>>>>> the display thread, but the CPU could do something else in the meantime.
>>>>>> Doing format conversion on the CPU prevents that, hence affecting other
>>>>>> parts of the system negatively. Of course, that's more of a gut feeling
>>>>>> than hard data.
>>
>> Jocelyn, have you measured if the XRGB8888 -> RGB888 conversion copy takes longer than a straight RGB888 -> RGB888 copy in the kernel?
> 
> At least on my Matrox system, the conversion is really negligible compared to the copy, due to slow memory bandwidth. I wasn't able to see a difference, using ktime_get_ns().
> 
> The CPU is an old Intel(R) Core(TM) i3 CPU 540  @ 3.07GHz
> in 1280x1024, the RGB888 copy takes 95ms.
> and the XRGB8888->RGB888 takes also 95ms.
> (and the full XRGB8888 copy takes 125ms)

Then any XRGB8888 → RGB888 conversion in user space has to result in worse performance.


> But let's admit that this discussion is going nowhere, and that I failed to reach a consensus, so I'm now focusing on other things. 

I see consensus, with one person disagreeing.


-- 
Earthling Michel Dänzer            |                  https://redhat.com
Libre software enthusiast          |         Mesa and Xwayland developer


  reply	other threads:[~2023-09-13 17:02 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-25 14:04 [PATCH v3] drm/plane: Add documentation about software color conversion Jocelyn Falempe
2023-08-25 14:14 ` Maxime Ripard
2023-08-25 14:25 ` Javier Martinez Canillas
2023-08-28  7:35 ` Pekka Paalanen
2023-09-08  9:21 ` Thomas Zimmermann
2023-09-08 10:58   ` Maxime Ripard
2023-09-08 13:22     ` Thomas Zimmermann
2023-09-08 13:27       ` Simon Ser
2023-09-08 13:46       ` Javier Martinez Canillas
2023-09-08 14:06         ` Jocelyn Falempe
2023-09-08 14:13           ` Thomas Zimmermann
2023-09-08 14:09         ` Thomas Zimmermann
2023-09-08 11:16   ` Pekka Paalanen
2023-09-08 13:56     ` Thomas Zimmermann
2023-09-08 14:41       ` Pekka Paalanen
2023-09-08 15:10         ` Thomas Zimmermann
2023-09-11  8:38           ` Pekka Paalanen
2023-09-11 10:18             ` Thomas Zimmermann
2023-09-12 15:57             ` Michel Dänzer
2023-09-13  8:14               ` Jocelyn Falempe
2023-09-13 17:02                 ` Michel Dänzer [this message]
2023-09-08 14:48       ` Jocelyn Falempe
2023-09-08 15:37         ` Thomas Zimmermann
2023-09-11 10:05           ` Jocelyn Falempe
2023-09-11 10:44             ` Thomas Zimmermann
2023-09-11 11:14           ` Maxime Ripard

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=87df2806-43d4-0bd9-e17c-84203ff9625a@mailbox.org \
    --to=michel.daenzer@mailbox.org \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=jfalempe@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox