summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libs/vr/libvrflinger/display_surface.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/libs/vr/libvrflinger/display_surface.cpp b/libs/vr/libvrflinger/display_surface.cpp
index fb2751b77d..6917b8c79d 100644
--- a/libs/vr/libvrflinger/display_surface.cpp
+++ b/libs/vr/libvrflinger/display_surface.cpp
@@ -268,7 +268,10 @@ Status<LocalChannelHandle> DirectDisplaySurface::OnCreateQueue(
std::lock_guard<std::mutex> autolock(lock_);
if (!direct_queue_) {
- auto producer = ProducerQueue::Create(meta_size_bytes);
+ // Inject the hw composer usage flag to enable the display to read the
+ // buffers.
+ auto producer = ProducerQueue::Create(
+ meta_size_bytes, GraphicBuffer::USAGE_HW_COMPOSER, 0, 0, 0);
if (!producer) {
ALOGE(
"DirectDisplaySurface::OnCreateQueue: Failed to create producer "