Re: [V7 08/45] Documentation/gpu: document drm_colorop

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Friday, February 21st, 2025 at 19:41, Harry Wentland <harry.wentland@xxxxxxx> 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…




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux