Commit 97516065 authored by Vitaly Prosyak's avatar Vitaly Prosyak Committed by Alex Deucher

drm/amd/display: add flags for gamut map library

[Why & How]
Gamut map lib provides a wider gamut mapping options
vs BT2390
Signed-off-by: default avatarVitaly Prosyak <vitaly.prosyak@amd.com>
Reviewed-by: default avatarKrunoslav Kovac <Krunoslav.Kovac@amd.com>
Acked-by: default avatarAric Cyr <Aric.Cyr@amd.com>
Acked-by: default avatarBhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Acked-by: default avatarVitaly Prosyak <Vitaly.Prosyak@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 796c9ece
...@@ -61,7 +61,10 @@ union lut3d_control_flags { ...@@ -61,7 +61,10 @@ union lut3d_control_flags {
unsigned int use_3dlut :1; unsigned int use_3dlut :1;
unsigned int less_than_dcip3 :1; unsigned int less_than_dcip3 :1;
unsigned int override_lum :1; unsigned int override_lum :1;
unsigned int reseved :8; unsigned int use_gamut_map_lib :1;
unsigned int chromatic_adaptation_src :1;
unsigned int chromatic_adaptation_dst :1;
unsigned int reseved :5;
} bits; } bits;
}; };
...@@ -71,6 +74,21 @@ enum tm_show_option_internal { ...@@ -71,6 +74,21 @@ enum tm_show_option_internal {
tm_show_option_internal_duplicate_sidebyside/*use flags2*/ tm_show_option_internal_duplicate_sidebyside/*use flags2*/
}; };
enum lut3d_control_gamut_map {
lut3d_control_gamut_map_none = 0,
lut3d_control_gamut_map_tonemap,
lut3d_control_gamut_map_chto,
lut3d_control_gamut_map_chto_chso,
lut3d_control_gamut_map_chto_chci
};
enum lut3d_control_rotation_mode {
lut3d_control_rotation_mode_none = 0,
lut3d_control_rotation_mode_hue,
lut3d_control_rotation_mode_cc,
lut3d_control_rotation_mode_hue_cc
};
struct lut3d_settings { struct lut3d_settings {
unsigned char version; unsigned char version;
union lut3d_control_flags flags; union lut3d_control_flags flags;
...@@ -80,6 +98,10 @@ struct lut3d_settings { ...@@ -80,6 +98,10 @@ struct lut3d_settings {
unsigned int max_lum; unsigned int max_lum;
unsigned int min_lum2; unsigned int min_lum2;
unsigned int max_lum2; unsigned int max_lum2;
enum lut3d_control_gamut_map map;
enum lut3d_control_rotation_mode rotation;
enum lut3d_control_gamut_map map2;
enum lut3d_control_rotation_mode rotation2;
}; };
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment