[Intel-gfx] [v7 1/2] drm: Add colorspace connector property
Daniel Stone
daniel at fooishbar.org
Tue Jan 29 15:53:46 UTC 2019
Hi,
On Tue, 29 Jan 2019 at 15:24, Brian Starkey <Brian.Starkey at arm.com> wrote:
> On Tue, Jan 29, 2019 at 01:30:43PM +0000, Shankar, Uma wrote:
> > >> +#define DP_COLORIMETRY_SCRGB 15
> > >> +#define DP_COLORIMETRY_DCI_P3 16
> > >> +#define DP_COLORIMETRY_CUSTOM_COLOR_PROFILE 17
>
> Sorry, I somehow missed your reply earlier in the month - but this
> wasn't what I meant.
>
> The expectation with enum properties is that the numeric values are
> determined at runtime - userspace shouldn't depend on them being known
> at compile-time. So, in include/uapi there shouldn't be these numeric
> values.
>
> The strings themselves effectively form the UABI, so I was wondering
> if they should be defined in include/uapi, but you would be the first
> to do that.
>
> Daniel Vetter and/or Daniel Stone might have opinions on this.
That's correct. The DPMS definitions are a historical aberration, and
we should not be adding any more numeric definitions of enum
properties to uABI.
They can be fixed in the kernel, but userspace must only rely on the strings.
Cheers,
Daniel
More information about the dri-devel
mailing list