drm/amd/display: Pass visible flag into surface programming
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:
parent
02dfc70737
commit
624d7c4708
@ -372,7 +372,8 @@ void dce_mem_input_program_surface_config(struct mem_input *mi,
|
||||
union plane_size *plane_size,
|
||||
enum dc_rotation_angle rotation,
|
||||
struct dc_plane_dcc_param *dcc,
|
||||
bool horizontal_mirror)
|
||||
bool horizontal_mirror,
|
||||
bool visible)
|
||||
{
|
||||
REG_UPDATE(GRPH_ENABLE, GRPH_ENABLE, 1);
|
||||
|
||||
|
@ -243,7 +243,8 @@ void dce_mem_input_program_surface_config(struct mem_input *mi,
|
||||
union plane_size *plane_size,
|
||||
enum dc_rotation_angle rotation,
|
||||
struct dc_plane_dcc_param *dcc,
|
||||
bool horizontal_mirror);
|
||||
bool horizontal_mirror,
|
||||
bool visible);
|
||||
|
||||
void dce_mem_input_allocate_dmif(struct mem_input *mi,
|
||||
uint32_t h_total,
|
||||
|
@ -1538,7 +1538,8 @@ static void set_plane_config(
|
||||
&surface->public.plane_size,
|
||||
surface->public.rotation,
|
||||
NULL,
|
||||
false);
|
||||
false,
|
||||
pipe_ctx->surface->public.visible);
|
||||
|
||||
if (dc->public.config.gpu_vm_support)
|
||||
mi->funcs->mem_input_program_pte_vm(
|
||||
@ -1877,8 +1878,9 @@ static void dce110_program_front_end_for_pipe(
|
||||
&surface->public.tiling_info,
|
||||
&surface->public.plane_size,
|
||||
surface->public.rotation,
|
||||
NULL,
|
||||
false,
|
||||
false);
|
||||
pipe_ctx->surface->public.visible);
|
||||
|
||||
if (dc->public.config.gpu_vm_support)
|
||||
mi->funcs->mem_input_program_pte_vm(
|
||||
|
@ -105,7 +105,8 @@ bool dce110_mem_input_program_surface_config(
|
||||
union plane_size *plane_size,
|
||||
enum dc_rotation_angle rotation,
|
||||
struct dc_plane_dcc_param *dcc,
|
||||
bool horizontal_mirror);
|
||||
bool horizontal_mirror,
|
||||
bool visible);
|
||||
|
||||
/*
|
||||
* dce110_mem_input_is_flip_pending
|
||||
|
@ -664,7 +664,8 @@ void dce110_mem_input_v_program_surface_config(
|
||||
union plane_size *plane_size,
|
||||
enum dc_rotation_angle rotation,
|
||||
struct dc_plane_dcc_param *dcc,
|
||||
bool horizotal_mirror)
|
||||
bool horizotal_mirror,
|
||||
bool visible)
|
||||
{
|
||||
struct dce110_mem_input *mem_input110 = TO_DCE110_MEM_INPUT(mem_input);
|
||||
|
||||
|
@ -89,6 +89,7 @@ bool dce110_mem_input_v_program_surface_config(
|
||||
enum surface_pixel_format format,
|
||||
union dc_tiling_info *tiling_info,
|
||||
union plane_size *plane_size,
|
||||
enum dc_rotation_angle rotation);
|
||||
enum dc_rotation_angle rotation,
|
||||
bool visible);
|
||||
|
||||
#endif
|
||||
|
@ -95,7 +95,8 @@ struct mem_input_funcs {
|
||||
union plane_size *plane_size,
|
||||
enum dc_rotation_angle rotation,
|
||||
struct dc_plane_dcc_param *dcc,
|
||||
bool horizontal_mirror);
|
||||
bool horizontal_mirror,
|
||||
bool visible);
|
||||
|
||||
bool (*mem_input_is_flip_pending)(struct mem_input *mem_input);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user