Re: [PATCH 0/3] drm: zynqmp: Make the video plane primary

Thomas Zimmermann
2025-11-14T07:42:35Z

Hi

Am 13.11.25 um 21:37 schrieb Sean Anderson:
> The graphics plane does not support XRGB8888, which is the default mode
> X uses for 24-bit color. Because of this, X must be set to use 16-bit
> color, which has a measurable performance penalty. Make the video plane
> the primary plane as it natively supports XRGB8888. An alternative
> approach to add XRGB8888 to the graphics plane is discussed in [1], as
> well as in patch 2.

Did you try to set drm_device.mode_config.preferred_depth = 16, like at
[1]?  IIRC user space looks at this value to auto-detect the color format.

[1]
https://elixir.bootlin.com/linux/v6.17.7/source/drivers/gpu/drm/tiny/cirrus-qemu.c#L542

Best regards
Thomas

>
> [1] https://lore.kernel.org/dri-devel/20250627145058.6880-1-mike.looijmans@topic.nl/
>
>
> Sean Anderson (3):
> drm: zynqmp: Check property creation status
> drm: zynqmp: Make the video plane primary
> drm: zynqmp: Add blend mode property to graphics plane
>
> drivers/gpu/drm/xlnx/zynqmp_kms.c | 42 +++++++++++++++++++++++++------
> 1 file changed, 34 insertions(+), 8 deletions(-)
>

--
--
Thomas Zimmermann
Graphics Driver Developer
SUSE Software Solutions Germany GmbH
Frankenstr. 146, 90461 Nürnberg, Germany, www.suse.com
GF: Jochen Jaser, Andrew McDonald, Werner Knoblich, (HRB 36809, AG Nürnberg)