aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVitaly Prosyak <[email protected]>2019-03-19 15:46:50 -0500
committerAlex Deucher <[email protected]>2019-06-22 09:34:08 -0500
commitc5d3a38b1a18a0bcdfd4cc54e4396cce2aabc968 (patch)
treee3dcb46d0fdb6e7b0002f45c516d51d316124743
parent00999d991fdebc1ee2d0b06342c6d10e3c51d4c8 (diff)
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 <[email protected]> Reviewed-by: Aric Cyr <[email protected]> Acked-by: Krunoslav Kovac <[email protected]> Acked-by: Leo Li <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
-rw-r--r--drivers/gpu/drm/amd/display/modules/color/color_gamma.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/display/modules/color/color_gamma.h b/drivers/gpu/drm/amd/display/modules/color/color_gamma.h
index 369953fafadf..c56c203abfcb 100644
--- a/drivers/gpu/drm/amd/display/modules/color/color_gamma.h
+++ b/drivers/gpu/drm/amd/display/modules/color/color_gamma.h
@@ -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);