summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGurpreet Singh Dhami <gdhami@codeaurora.org>2018-06-08 11:54:20 -0400
committerGerrit - the friendly Code Review server <code-review@localhost>2018-06-13 08:25:59 -0700
commit0853ca865ab6a0d307ec0fe22af11dff18da11a6 (patch)
treec421820f5500d875379eaf98da8c4d8c52d83b0b
parent0ceb16be81f64595d4c8021f05f09a017a946e04 (diff)
downloadandroid_hardware_qcom_sdm710_display-0853ca865ab6a0d307ec0fe22af11dff18da11a6.tar.gz
android_hardware_qcom_sdm710_display-0853ca865ab6a0d307ec0fe22af11dff18da11a6.tar.bz2
android_hardware_qcom_sdm710_display-0853ca865ab6a0d307ec0fe22af11dff18da11a6.zip
hwc: Fix HWC Writeback wrong resolution shown with dumped frames
Change-Id: Ia4c680381801f14305515bb2e6b75cd49794743d
-rw-r--r--sdm/libs/hwc2/hwc_display.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/sdm/libs/hwc2/hwc_display.cpp b/sdm/libs/hwc2/hwc_display.cpp
index 37e408fc..7bc4e734 100644
--- a/sdm/libs/hwc2/hwc_display.cpp
+++ b/sdm/libs/hwc2/hwc_display.cpp
@@ -1649,7 +1649,8 @@ void HWCDisplay::DumpOutputBuffer(const BufferInfo &buffer_info, void *base, int
}
snprintf(dump_file_name, sizeof(dump_file_name), "%s/output_layer_%dx%d_%s_frame%d.raw",
- dir_path, buffer_info.buffer_config.width, buffer_info.buffer_config.height,
+ dir_path, buffer_info.alloc_buffer_info.aligned_width,
+ buffer_info.alloc_buffer_info.aligned_height,
GetFormatString(buffer_info.buffer_config.format), dump_frame_index_);
FILE *fp = fopen(dump_file_name, "w+");