drm/amd/display: Moved swizzle parameter translation to dc.
Signed-off-by: Yongqiang Sun <yongqiang.sun@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>
This commit is contained in:
committed by
Alex Deucher
parent
1e3d346f4f
commit
88499197de
@@ -221,3 +221,12 @@ void calculate_adjustments_y_only(
|
||||
adjustments->brightness);
|
||||
}
|
||||
|
||||
unsigned int log_2(unsigned int num)
|
||||
{
|
||||
unsigned int result = 0;
|
||||
|
||||
while ((num >>= 1) != 0)
|
||||
result++;
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
@@ -48,4 +48,6 @@ void calculate_adjustments_y_only(
|
||||
const struct dc_csc_adjustments *adjustments,
|
||||
struct fixed31_32 *matrix);
|
||||
|
||||
unsigned int log_2(unsigned int num);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user