summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArun Kumar K.R <akumarkr@codeaurora.org>2016-12-21 18:29:06 -0800
committerArun Kumar K.R <akumarkr@codeaurora.org>2017-01-05 17:37:07 -0800
commitf2ec9452d5ad8a611f68f70c4278d0c3be1297c6 (patch)
tree96ea26c186a71af6f6d41c76633bf317e9f90835
parent063f9b6fcfab4c3cba2f45018a3e1c2db32ee945 (diff)
downloaddisplay-f2ec9452d5ad8a611f68f70c4278d0c3be1297c6.tar.gz
sdm: Use Lut indexes directly from HWScaleData
The modification of the lut indexes will be taken care by the extension library, hence directly assign the lut indexes to the mdp scale v2 structure. Change-Id: If0ccc401aab0c371ca4805e2cef5f22c8399e4e7 Crs-fixed: 1107694
-rw-r--r--sdm/libs/core/fb/hw_scale.cpp18
1 files changed, 6 insertions, 12 deletions
diff --git a/sdm/libs/core/fb/hw_scale.cpp b/sdm/libs/core/fb/hw_scale.cpp
index 0997d1ad..e44af5d6 100644
--- a/sdm/libs/core/fb/hw_scale.cpp
+++ b/sdm/libs/core/fb/hw_scale.cpp
@@ -1,5 +1,5 @@
/*
-* Copyright (c) 2016, The Linux Foundation. All rights reserved.
+* Copyright (c) 2016-2017, The Linux Foundation. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted
* provided that the following conditions are met:
@@ -201,17 +201,11 @@ void HWScaleV2::SetHWScaleData(const HWScaleData &scale_data, uint32_t index,
(scale_data.lut_flag.lut_y_sep_wr ? SCALER_LUT_Y_SEP_WR : 0) |
(scale_data.lut_flag.lut_uv_sep_wr ? SCALER_LUT_UV_SEP_WR : 0);
- // lut indicies - index starts from 0, hence subtract by 1 when > 0
- mdp_scale->dir_lut_idx = (scale_data.dir_lut_idx > 0) ? scale_data.dir_lut_idx - 1 :
- scale_data.dir_lut_idx;
- mdp_scale->y_rgb_cir_lut_idx = (scale_data.y_rgb_cir_lut_idx > 0) ?
- scale_data.y_rgb_cir_lut_idx - 1 : scale_data.y_rgb_cir_lut_idx;
- mdp_scale->uv_cir_lut_idx = (scale_data.uv_cir_lut_idx > 0) ? scale_data.uv_cir_lut_idx - 1 :
- scale_data.uv_cir_lut_idx;
- mdp_scale->y_rgb_sep_lut_idx = (scale_data.y_rgb_sep_lut_idx > 0) ?
- scale_data.y_rgb_sep_lut_idx - 1 : scale_data.y_rgb_sep_lut_idx;
- mdp_scale->uv_sep_lut_idx = (scale_data.uv_sep_lut_idx > 0) ? scale_data.uv_sep_lut_idx - 1 :
- scale_data.uv_sep_lut_idx;
+ mdp_scale->dir_lut_idx = scale_data.dir_lut_idx;
+ mdp_scale->y_rgb_cir_lut_idx = scale_data.y_rgb_cir_lut_idx;
+ mdp_scale->uv_cir_lut_idx = scale_data.uv_cir_lut_idx;
+ mdp_scale->y_rgb_sep_lut_idx = scale_data.y_rgb_sep_lut_idx;
+ mdp_scale->uv_sep_lut_idx = scale_data.uv_sep_lut_idx;
if (mdp_scale->enable & ENABLE_DETAIL_ENHANCE) {
mdp_det_enhance_data *mdp_det_enhance = &mdp_scale->detail_enhance;