summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSooChan Lim <sc1.lim@samsung.com>2019-08-12 14:41:23 +0900
committerSooChan Lim <sc1.lim@samsung.com>2019-08-12 14:41:23 +0900
commitb0d053cd19667fa17b71a82ec733853dff04fa2c (patch)
tree2d06c338dbc41a60c08c1627218ba56d8fef95d8
parent72b164d14edcb72786aa9c58d6787b42fc95b970 (diff)
downloadlibtdm-vc4-b0d053cd19667fa17b71a82ec733853dff04fa2c.tar.gz
libtdm-vc4-b0d053cd19667fa17b71a82ec733853dff04fa2c.tar.bz2
libtdm-vc4-b0d053cd19667fa17b71a82ec733853dff04fa2c.zip
change the dst size at the mirror mode
Change-Id: I6fcb3a6bf88181541551ac674394edba0022c86c
-rw-r--r--src/tdm_vc4_display.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/tdm_vc4_display.c b/src/tdm_vc4_display.c
index 12f235f..0431b69 100644
--- a/src/tdm_vc4_display.c
+++ b/src/tdm_vc4_display.c
@@ -2461,14 +2461,15 @@ vc4_output_data_prepare_mirror_commit(tdm_vc4_output_data *output_data, tbm_surf
info.src_config.size.h = surf_info.width;
info.src_config.size.v = surf_info.height;
+ info.src_config.format = TBM_FORMAT_ARGB8888;
info.src_config.pos.x = 0;
info.src_config.pos.y = 0;
info.src_config.pos.w = surf_info.width;
info.src_config.pos.h = surf_info.height;
info.dst_pos.x = dst_pos.x;
info.dst_pos.y = dst_pos.y;
- info.dst_pos.w = dst_pos.w;
- info.dst_pos.h = dst_pos.h;
+ info.dst_pos.w = output_data->current_mode->hdisplay;
+ info.dst_pos.h = output_data->current_mode->vdisplay;
info.transform = TDM_TRANSFORM_NORMAL;
ret = vc4_layer_set_info((tdm_layer *)layer_data, &info);