summaryrefslogtreecommitdiff
path: root/hwc3/impl/HalImpl.cpp
diff options
context:
space:
mode:
authorLong Ling <longling@google.com>2021-12-07 11:54:07 -0800
committerLong Ling <longling@google.com>2021-12-07 19:57:58 +0000
commitef08f2dcfc7e477767992b3115cc1acd4055b548 (patch)
treea21701b5c9553fe7a010450a26623c907f59b550 /hwc3/impl/HalImpl.cpp
parent522bdd9205c68949f1672e266562a16e2a338cac (diff)
hwc3: return correct dataspace for getReadbackBufferAttributes
Bug: 209510845 Change-Id: Ia0beae6d51347dfff374b695c94f2e268c1c7b54
Diffstat (limited to 'hwc3/impl/HalImpl.cpp')
-rw-r--r--hwc3/impl/HalImpl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/hwc3/impl/HalImpl.cpp b/hwc3/impl/HalImpl.cpp
index 25c716d..d208b52 100644
--- a/hwc3/impl/HalImpl.cpp
+++ b/hwc3/impl/HalImpl.cpp
@@ -482,7 +482,7 @@ int32_t HalImpl::getReadbackBufferAttributes(int64_t display,
RET_IF_ERR(halDisplay->getReadbackBufferAttributes(&format, &dataspace));
h2a::translate(format, attrs->format);
- h2a::translate(format, attrs->dataspace);
+ h2a::translate(dataspace, attrs->dataspace);
return HWC2_ERROR_NONE;
}