Commit 83a76b53 authored by Vitaly Prosyak's avatar Vitaly Prosyak Committed by Alex Deucher

drm/amd/display: Add 3dlut control flags

[Why & How]
The follow up change
Improve some naming for fields and structs
Signed-off-by: default avatarVitaly Prosyak <vitaly.prosyak@amd.com>
Reviewed-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 ede37e4c
...@@ -46,19 +46,19 @@ enum vrr_packet_type { ...@@ -46,19 +46,19 @@ enum vrr_packet_type {
}; };
#if defined(CONFIG_DRM_AMD_DC_DCN2_0) #if defined(CONFIG_DRM_AMD_DC_DCN2_0)
union tm3dlut_internal_flags { union lut3d_control_flags {
unsigned int raw; unsigned int raw;
struct { struct {
unsigned int dochroma_scale :1; unsigned int do_chroma_scale :1;
unsigned int spec_version :3; unsigned int spec_version :3;
unsigned int use_zero_display_black :1; unsigned int use_zero_display_black :1;
unsigned int use_zero_source_black :1; unsigned int use_zero_source_black :1;
unsigned int force_display_black :6; unsigned int force_display_black :6;
unsigned int apply_display_gamma :1; unsigned int apply_display_gamma :1;
unsigned int exp_shaper_max :6; unsigned int exp_shaper_max :6;
unsigned int unity3dlut :1; unsigned int unity_3dlut :1;
unsigned int bypass3dlut :1; unsigned int bypass_3dlut :1;
unsigned int use3dlut :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 reseved :8;
...@@ -67,14 +67,14 @@ union tm3dlut_internal_flags { ...@@ -67,14 +67,14 @@ union tm3dlut_internal_flags {
enum tm_show_option_internal { enum tm_show_option_internal {
tm_show_option_internal_single_file = 0,/*flags2 not in use*/ tm_show_option_internal_single_file = 0,/*flags2 not in use*/
tm_show_option_internal_duplicate_file,/*use flags2*/ tm_show_option_internal_duplicate_file, /*use flags2*/
tm_show_option_internal_duplicate_sidebyside/*use flags2*/ tm_show_option_internal_duplicate_sidebyside/*use flags2*/
}; };
struct tm3dlut_settings { struct lut3d_settings {
unsigned char version; unsigned char version;
union tm3dlut_internal_flags flags; union lut3d_control_flags flags;
union tm3dlut_internal_flags flags2; union lut3d_control_flags flags2;
enum tm_show_option_internal option; enum tm_show_option_internal option;
unsigned int min_lum;/*multiplied by 100*/ unsigned int min_lum;/*multiplied by 100*/
unsigned int max_lum; unsigned int max_lum;
......
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