summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2017-04-28 00:23:23 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2017-04-28 00:23:31 +0000
commit03454dcd7e5fa60a4389df6da7ec5074ee39b564 (patch)
tree10670c3d530bd11cad763c0cfad45cbafdeba796
parent33f8c68f6cade1f765418b391bef90e647713cf7 (diff)
parent6aa688f4b8ef17d04155e8e201c89eb53ee099dd (diff)
downloadrs-03454dcd7e5fa60a4389df6da7ec5074ee39b564.tar.gz
Merge "Plumb gralloc producer/consumer bits correctly" into oc-dev
-rw-r--r--driver/rsdAllocation.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/driver/rsdAllocation.cpp b/driver/rsdAllocation.cpp
index 232f7629..8bdd75b7 100644
--- a/driver/rsdAllocation.cpp
+++ b/driver/rsdAllocation.cpp
@@ -714,7 +714,7 @@ static bool IoGetBuffer(const Context *rsc, Allocation *alloc, ANativeWindow *nw
void *dst = nullptr;
AHardwareBuffer* ahwb = ANativeWindowBuffer_getHardwareBuffer(drv->wndBuffer);
- r = AHardwareBuffer_lock(ahwb, AHARDWAREBUFFER_USAGE0_CPU_WRITE_OFTEN,
+ r = AHardwareBuffer_lock(ahwb, AHARDWAREBUFFER_USAGE_CPU_WRITE_OFTEN,
fenceID, NULL, &dst);
if (r) {
rsc->setError(RS_ERROR_DRIVER, "Error Locking IO output buffer.");