dri-devel.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
From: Thomas Zimmermann <tzimmermann@suse.de>
To: Jocelyn Falempe <jfalempe@redhat.com>,
	airlied@redhat.com, maarten.lankhorst@linux.intel.com,
	mripard@kernel.org, daniel@ffwll.ch, ppaalanen@gmail.com,
	javierm@redhat.com, contact@emersion.fr
Cc: dri-devel@lists.freedesktop.org
Subject: Re: [PATCH v3] drm/plane: Add documentation about software color conversion.
Date: Fri, 8 Sep 2023 11:21:51 +0200	[thread overview]
Message-ID: <3f1bd1ad-cd1f-515d-38bd-63e412dec286@suse.de> (raw)
In-Reply-To: <20230825140434.182664-1-jfalempe@redhat.com>


[-- Attachment #1.1: Type: text/plain, Size: 1807 bytes --]

Hi

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. NAK on this 
part from my side.

If you want userspace to be able to use a certain format, then export 
the corresponding 4cc code. Then let userspace decide what to do about 
it. If userspace pick a certain format, go with it.

Hence, no implicit conversion from XRGB888 to RGB888, just because it's 
possible.

Best regards
Thomas


> + *     On most hardware, VRAM read access are slow, so when doing the software
> + *     conversion, the dumb buffer should be allocated in system RAM in order to
> + *     have decent performance.
> + *     Extra care should be taken when doing software conversion with
> + *     DRM_CAP_DUMB_PREFER_SHADOW, there are more detailed explanations here:
> + *     https://lore.kernel.org/dri-devel/20230818162415.2185f8e3@eldfell/
>    */
>   
>   static unsigned int drm_num_planes(struct drm_device *dev)
> 
> base-commit: 82d750e9d2f5d0594c8f7057ce59127e701af781

-- 
Thomas Zimmermann
Graphics Driver Developer
SUSE Software Solutions Germany GmbH
Frankenstrasse 146, 90461 Nuernberg, Germany
GF: Ivo Totev, Andrew Myers, Andrew McDonald, Boudien Moerman
HRB 36809 (AG Nuernberg)

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 840 bytes --]

  parent reply	other threads:[~2023-09-08  9:22 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 [this message]
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
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=3f1bd1ad-cd1f-515d-38bd-63e412dec286@suse.de \
    --to=tzimmermann@suse.de \
    --cc=airlied@redhat.com \
    --cc=contact@emersion.fr \
    --cc=daniel@ffwll.ch \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=javierm@redhat.com \
    --cc=jfalempe@redhat.com \
    --cc=maarten.lankhorst@linux.intel.com \
    --cc=mripard@kernel.org \
    --cc=ppaalanen@gmail.com \
    /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;
as well as URLs for NNTP newsgroup(s).