diff options
author | Pullakavi Srinivas <spullaka@codeaurora.org> | 2018-10-31 15:47:02 +0530 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2018-12-10 09:44:32 -0800 |
commit | cad23cff29d4756c26c8611f4046b7822d161772 (patch) | |
tree | 2cc91e1b842f3b374721893a74c740e9a35527fd /sdm/libs/hwc2/hwc_layers.cpp | |
parent | ac8254d783074ba2eaf56baef4d0b94cd897a3da (diff) |
hwc2: Pass appropriate datatype to avoid corruption.
CRs-Fixed: 2342467
Change-Id: I9bfa9aa468d5bbb9853501ab2d7aa2718eb07c19
Diffstat (limited to 'sdm/libs/hwc2/hwc_layers.cpp')
-rw-r--r-- | sdm/libs/hwc2/hwc_layers.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sdm/libs/hwc2/hwc_layers.cpp b/sdm/libs/hwc2/hwc_layers.cpp index 35676742..45cfb16c 100644 --- a/sdm/libs/hwc2/hwc_layers.cpp +++ b/sdm/libs/hwc2/hwc_layers.cpp @@ -854,8 +854,9 @@ DisplayError HWCLayer::SetMetaData(const private_handle_t *pvt_handle, Layer *la GetUBWCStatsFromMetaData(&cr_stats[0], &(layer_buffer->ubwc_crstats[0])); } // if (getMetaData) - single_buffer_ = false; - getMetaData(const_cast<private_handle_t *>(handle), GET_SINGLE_BUFFER_MODE, &single_buffer_); + uint32_t single_buffer = 0; + getMetaData(const_cast<private_handle_t *>(handle), GET_SINGLE_BUFFER_MODE, &single_buffer); + single_buffer_ = (single_buffer == 1); // Handle colorMetaData / Dataspace handling now ValidateAndSetCSC(handle); |