drm/amd/display: Add new transfer type HWPWL
authorVitaly Prosyak <vitaly.prosyak@amd.com>
Fri, 25 May 2018 13:37:36 +0000 (08:37 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 15 Jun 2018 17:24:35 +0000 (12:24 -0500)
It is used when curve register settings are generated
by 'matlab', i.e. bypass color module calculation.

Signed-off-by: Vitaly Prosyak <vitaly.prosyak@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Acked-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dc.h

index f09fa4722fc987675b24943cf504815a0e04adc7..9954d0eadfbca4441938ad4a2633ae37a42d4458 100644 (file)
@@ -357,6 +357,7 @@ enum dc_transfer_func_type {
        TF_TYPE_PREDEFINED,
        TF_TYPE_DISTRIBUTED_POINTS,
        TF_TYPE_BYPASS,
+       TF_TYPE_HWPWL
 };
 
 struct dc_transfer_func_distributed_points {
@@ -382,12 +383,15 @@ enum dc_transfer_func_predefined {
 
 struct dc_transfer_func {
        struct kref refcount;
-       struct dc_transfer_func_distributed_points tf_pts;
        enum dc_transfer_func_type type;
        enum dc_transfer_func_predefined tf;
        /* FP16 1.0 reference level in nits, default is 80 nits, only for PQ*/
        uint32_t sdr_ref_white_level;
        struct dc_context *ctx;
+       union {
+               struct pwl_params pwl;
+               struct dc_transfer_func_distributed_points tf_pts;
+       };
 };
 
 /*