From: Javier Martinez Canillas <javierm@redhat.com>
To: Thomas Zimmermann <tzimmermann@suse.de>,
Maxime Ripard <mripard@kernel.org>
Cc: Jocelyn Falempe <jfalempe@redhat.com>,
dri-devel@lists.freedesktop.org, ppaalanen@gmail.com,
airlied@redhat.com
Subject: Re: [PATCH v3] drm/plane: Add documentation about software color conversion.
Date: Fri, 08 Sep 2023 15:46:04 +0200 [thread overview]
Message-ID: <87ledg3hib.fsf@minerva.mail-host-address-is-not-set> (raw)
In-Reply-To: <b135fdd1-afd9-bb65-19d7-3125504afb05@suse.de>
Thomas Zimmermann <tzimmermann@suse.de> writes:
Hello Thomas,
> Hi Maxime
>
> Am 08.09.23 um 12:58 schrieb Maxime Ripard:
>> Hi,
>>
>> On Fri, Sep 08, 2023 at 11:21:51AM +0200, Thomas Zimmermann wrote:
>>> Am 25.08.23 um 16:04 schrieb Jocelyn Falempe:
>>> [...]
>>>> + *
>>>> + * But there are two exceptions only for dumb buffers:
>>>> + * * To support XRGB8888 if it's not supported by the hardware.
>>>
>>>
>>>> + * * Any driver is free to modify its internal representation of the format,
>>>> + * as long as it doesn't alter the visible content in any way, and doesn't
>>>> + * modify the user-provided buffer. An example would be to drop the
>>>> + * padding component from a format to save some memory bandwidth.
>>>
>>> I have strong objections to this point, _especially_ as you're apparently
>>> trying to sneak this in after our discussion.
>>
>> I think it's an unfair characterization. This was discussed on
>> #dri-devel, and went through several rounds over the mailing lists, with
>> you in Cc for each. How is that sneaking something in?
>
> A few months ago, we had a flamewar'ish IRC discussion on format
> conversion within the kernel. The general sentiment was that the kernel
> drivers should use what ever is provided by userspace without further
> processing. The short argument was 'userspace knows better'. The only
> exception is for supporting XRGB8888 on hardware that would otherwise
> not support it. After some consideration, I agree with all that. (Back
> then I didn't.)
>
> A few weeks ago I received a patch to do an implicit conversion from
> XRGB8888 to RGB888 within mgag200. [1] I don't have a link to the
> discussion, but I NAK'ed that patch pretty hard on IRC by following that
> other discussion.
>
> And know I find that this patch (even in its v1) contains language that
> retroactively legitimizes the mgag200 patch. I wrote 'apparently' I my
> reply, as I assume that there's more to it, but how does it not look
> like an attempt to sneak in something that is known to be controversial?
>
While is true that the motivation for Jocelyn's patch was to make explicit
what are the rules with regard to drivers emulating formats (other than
"we had a flamewar on IRC a while back" which is quite ambiguous), it was
not attempt to sneak something that is known to be controversial.
In fact, it is an attempt to dispel the controversy and document what is
acceptable and what is not for a driver.
> It might have been better to discuss the question separately on the
> dri-devel ML. Maybe we can do this here.
>
This was discussed in the #dri-devel IRC channel, I believe you were on
PTO at the time and probably that's why you missed. I found the logs here:
https://people.freedesktop.org/~cbrill/dri-log/?channel=dri-devel&date=2023-08-04
As you can see there, most people agreed that what Jocelyn wrote in his
doc patch is the most pragmatic compromise.
--
Best regards,
Javier Martinez Canillas
Core Platforms
Red Hat
next prev parent reply other threads:[~2023-09-08 13:46 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 [this message]
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
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=87ledg3hib.fsf@minerva.mail-host-address-is-not-set \
--to=javierm@redhat.com \
--cc=airlied@redhat.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=jfalempe@redhat.com \
--cc=mripard@kernel.org \
--cc=ppaalanen@gmail.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.