Commit 624d7c47 authored by Yongqiang Sun's avatar Yongqiang Sun Committed by Alex Deucher

drm/amd/display: Pass visible flag into surface programming

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 02dfc707
...@@ -372,7 +372,8 @@ void dce_mem_input_program_surface_config(struct mem_input *mi, ...@@ -372,7 +372,8 @@ void dce_mem_input_program_surface_config(struct mem_input *mi,
union plane_size *plane_size, union plane_size *plane_size,
enum dc_rotation_angle rotation, enum dc_rotation_angle rotation,
struct dc_plane_dcc_param *dcc, struct dc_plane_dcc_param *dcc,
bool horizontal_mirror) bool horizontal_mirror,
bool visible)
{ {
REG_UPDATE(GRPH_ENABLE, GRPH_ENABLE, 1); REG_UPDATE(GRPH_ENABLE, GRPH_ENABLE, 1);
......
...@@ -243,7 +243,8 @@ void dce_mem_input_program_surface_config(struct mem_input *mi, ...@@ -243,7 +243,8 @@ void dce_mem_input_program_surface_config(struct mem_input *mi,
union plane_size *plane_size, union plane_size *plane_size,
enum dc_rotation_angle rotation, enum dc_rotation_angle rotation,
struct dc_plane_dcc_param *dcc, struct dc_plane_dcc_param *dcc,
bool horizontal_mirror); bool horizontal_mirror,
bool visible);
void dce_mem_input_allocate_dmif(struct mem_input *mi, void dce_mem_input_allocate_dmif(struct mem_input *mi,
uint32_t h_total, uint32_t h_total,
......
...@@ -1538,7 +1538,8 @@ static void set_plane_config( ...@@ -1538,7 +1538,8 @@ static void set_plane_config(
&surface->public.plane_size, &surface->public.plane_size,
surface->public.rotation, surface->public.rotation,
NULL, NULL,
false); false,
pipe_ctx->surface->public.visible);
if (dc->public.config.gpu_vm_support) if (dc->public.config.gpu_vm_support)
mi->funcs->mem_input_program_pte_vm( mi->funcs->mem_input_program_pte_vm(
...@@ -1877,8 +1878,9 @@ static void dce110_program_front_end_for_pipe( ...@@ -1877,8 +1878,9 @@ static void dce110_program_front_end_for_pipe(
&surface->public.tiling_info, &surface->public.tiling_info,
&surface->public.plane_size, &surface->public.plane_size,
surface->public.rotation, surface->public.rotation,
NULL,
false, false,
false); pipe_ctx->surface->public.visible);
if (dc->public.config.gpu_vm_support) if (dc->public.config.gpu_vm_support)
mi->funcs->mem_input_program_pte_vm( mi->funcs->mem_input_program_pte_vm(
......
...@@ -105,7 +105,8 @@ bool dce110_mem_input_program_surface_config( ...@@ -105,7 +105,8 @@ bool dce110_mem_input_program_surface_config(
union plane_size *plane_size, union plane_size *plane_size,
enum dc_rotation_angle rotation, enum dc_rotation_angle rotation,
struct dc_plane_dcc_param *dcc, struct dc_plane_dcc_param *dcc,
bool horizontal_mirror); bool horizontal_mirror,
bool visible);
/* /*
* dce110_mem_input_is_flip_pending * dce110_mem_input_is_flip_pending
......
...@@ -664,7 +664,8 @@ void dce110_mem_input_v_program_surface_config( ...@@ -664,7 +664,8 @@ void dce110_mem_input_v_program_surface_config(
union plane_size *plane_size, union plane_size *plane_size,
enum dc_rotation_angle rotation, enum dc_rotation_angle rotation,
struct dc_plane_dcc_param *dcc, 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); struct dce110_mem_input *mem_input110 = TO_DCE110_MEM_INPUT(mem_input);
......
...@@ -89,6 +89,7 @@ bool dce110_mem_input_v_program_surface_config( ...@@ -89,6 +89,7 @@ bool dce110_mem_input_v_program_surface_config(
enum surface_pixel_format format, enum surface_pixel_format format,
union dc_tiling_info *tiling_info, union dc_tiling_info *tiling_info,
union plane_size *plane_size, union plane_size *plane_size,
enum dc_rotation_angle rotation); enum dc_rotation_angle rotation,
bool visible);
#endif #endif
...@@ -95,7 +95,8 @@ struct mem_input_funcs { ...@@ -95,7 +95,8 @@ struct mem_input_funcs {
union plane_size *plane_size, union plane_size *plane_size,
enum dc_rotation_angle rotation, enum dc_rotation_angle rotation,
struct dc_plane_dcc_param *dcc, 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); bool (*mem_input_is_flip_pending)(struct mem_input *mem_input);
......
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