summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2017-04-24 14:40:44 -0700
committerMathias Agopian <mathias@google.com>2017-04-24 14:46:41 -0700
commit6aa688f4b8ef17d04155e8e201c89eb53ee099dd (patch)
treec6d85d1941d932d2b6a695e71336ea8b81d36ae7
parentc46ffabe6e727c656d241d5642df88b722714eca (diff)
downloadrs-6aa688f4b8ef17d04155e8e201c89eb53ee099dd.tar.gz
Plumb gralloc producer/consumer bits correctly
Bug: 33350696 Test: compile, boot device, cts Change-Id: I7168eae109abc2ce204e1b011574a4f2d3f25bc3
-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.");