Commit 88499197 authored by Yongqiang Sun's avatar Yongqiang Sun Committed by Alex Deucher

drm/amd/display: Moved swizzle parameter translation to dc.

Signed-off-by: default avatarYongqiang Sun <yongqiang.sun@amd.com>
Reviewed-by: default avatarTony Cheng <Tony.Cheng@amd.com>
Acked-by: default avatarHarry Wentland <Harry.Wentland@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 1e3d346f
......@@ -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
......@@ -25,6 +25,7 @@
#include "mem_input.h"
#include "reg_helper.h"
#include "basics/conversion.h"
#define CTX \
mi->ctx
......@@ -129,16 +130,6 @@ static bool is_vert_scan(enum dc_rotation_angle rotation)
}
}
static unsigned int log_2(unsigned int num)
{
unsigned int result = 0;
while ((num >>= 1) != 0)
result++;
return result;
}
void dce_mem_input_program_pte_vm(struct mem_input *mi,
enum surface_pixel_format format,
union dc_tiling_info *tiling_info,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment