[V7 08/45] Documentation/gpu: document drm_colorop
Simon Ser
contact at emersion.fr
Fri Feb 21 18:48:35 UTC 2025
On Friday, February 21st, 2025 at 19:41, Harry Wentland <harry.wentland at amd.com> wrote:
> > Other people have argued that strings make it easier for user-space to
> > start using a new KMS property without deploying new kernel uAPI headers.
>
> I don't understand this argument. You would either need to define the
> strings or the ints in your user-space app. You could do either without
> deploying new uAPI headers.
I suppose a string is less likely to be wrong/mixed up than a magic
number? I'm probably not the best person to explain this side of the
debate. :P
Looking at Weston, it seems to just re-define its own enums matching
the kernel strings:
https://gitlab.freedesktop.org/wayland/weston/-/blob/6d9c42a7d294a1435822541ab4b3e12a8998dabb/libweston/backend-drm/kms.c#L49
For reference, one of the previous discussions:
https://lists.freedesktop.org/archives/dri-devel/2020-April/thread.html#261055
I think there was another one, but can't find it back…
More information about the wayland-devel
mailing list