drm/amd/display: Add a flags union for 3dlut transformation matrix

[Why & How]
When TM is enabled with 3dlut, we apply conversion to
dcip3 in gamut remap matrix, if source area less than
dcip3. If it is bigger, we remap to bt2020. The added
flags will be used to facilitate this logic.

Signed-off-by: Vitaly Prosyak <vitaly.prosyak@amd.com>
Reviewed-by: Aric Cyr <Aric.Cyr@amd.com>
Acked-by: Krunoslav Kovac <Krunoslav.Kovac@amd.com>
Acked-by: Leo Li <sunpeng.li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
此提交包含在:
Vitaly Prosyak
2019-03-19 15:46:50 -05:00
提交者 Alex Deucher
父節點 00999d991f
當前提交 c5d3a38b1a

查看文件

@@ -82,6 +82,18 @@ struct freesync_hdr_tf_params {
unsigned int skip_tm; // skip tm
};
union tm3dlut_flags {
unsigned int raw;
struct {
unsigned int dochroma_scale :1;
unsigned int spec_version :3;
unsigned int less_than_dcip3 :1;
unsigned int exp_shaper_max :6;
unsigned int zero_display_black :1;
unsigned int reseved :20;
} bits;
};
void setup_x_points_distribution(void);
void precompute_pq(void);
void precompute_de_pq(void);