All of lore.kernel.org
 help / color / mirror / Atom feed
* Empty IN_FORMATS in sun4i-drm
@ 2021-12-14 12:02 Emmanuel Gil Peyrot
  2021-12-14 17:58 ` Jernej Škrabec
  0 siblings, 1 reply; 6+ messages in thread
From: Emmanuel Gil Peyrot @ 2021-12-14 12:02 UTC (permalink / raw)
  To: Maxime Ripard, Chen-Yu Tsai, dri-devel, linux-sunxi

[-- Attachment #1: Type: text/plain, Size: 1234 bytes --]

Hi,

After updating Weston from 9f8561e9 to 07326040 (latest master), it
fails to run on my PinePhone saying “format 0x34325258 not supported by
output DSI-1” and then exiting.

This format is XR24, which would be extremely surprising not to be
present, and drm_info[1] says it is present.  Looking into Weston’s
code, I found that drm_plane_populate_formats()’s docstring says it uses
“either the IN_FORMATS blob property (if available), or the plane's
format list if not.”  Looking back at drm_info, I saw said IN_FORMATS
blob being empty of formats (while the format list is fully populated):
"IN_FORMATS" (immutable): blob = 32
└───DRM_FORMAT_MOD_LINEAR (0x0)

This makes me think the kernel should populate IN_FORMATS with at least
the same formats as the format list when supported, or stop advertising
this property altogether.

Other compositors (such as phoc) still run file, probably because they
use the format list exclusively, without consideration for modifiers.

Besides fixing this driver, would it make sense to also make Weston
ignore an empty IN_FORMATS and fall back to the format list?

Thanks,

[1] https://github.com/ascent12/drm_info

-- 
Emmanuel Gil Peyrot

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-12-23 10:07 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <Ybiu8jZEyRii44Dw@luna>
2021-12-14 16:34 ` Empty IN_FORMATS in sun4i-drm Simon Ser
2021-12-14 16:34   ` Simon Ser
2021-12-14 12:02 Emmanuel Gil Peyrot
2021-12-14 17:58 ` Jernej Škrabec
2021-12-23  9:59   ` Emmanuel Gil Peyrot
2021-12-23  9:59     ` Emmanuel Gil Peyrot

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.