mirror of
https://github.com/torvalds/linux.git
synced 2026-07-28 18:21:24 +02:00
drm/i915/bios: Define the "luminance and gamma" sub-struct of block 46
Since BDB version 211 block 46 has included more luminance and gamma related information. Define it fully. The data is semi-based on DisplayID v2.0 apparently. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20240605134756.17099-2-ville.syrjala@linux.intel.com Reviewed-by: Jani Nikula <jani.nikula@intel.com>
This commit is contained in:
parent
80c414772d
commit
3e8daf14c4
|
|
@ -1395,8 +1395,20 @@ struct chromaticity {
|
|||
u8 white_y_hi;
|
||||
} __packed;
|
||||
|
||||
struct luminance_and_gamma {
|
||||
u8 luminance_enable:1; /* 211+ */
|
||||
u8 gamma_enable:1; /* 211+ */
|
||||
u8 rsvd:6;
|
||||
|
||||
u16 min_luminance; /* 211+ */
|
||||
u16 max_luminance; /* 211+ */
|
||||
u16 one_percent_max_luminance; /* 211+ */
|
||||
u8 gamma; /* 211+ */
|
||||
} __packed;
|
||||
|
||||
struct bdb_chromaticity {
|
||||
struct chromaticity chromaticity[16];
|
||||
struct luminance_and_gamma luminance_and_gamma[16]; /* 211+ */
|
||||
} __packed;
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user