diff options
Diffstat (limited to 'gralloc/gr_buf_mgr.cpp')
-rw-r--r-- | gralloc/gr_buf_mgr.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gralloc/gr_buf_mgr.cpp b/gralloc/gr_buf_mgr.cpp index a557886c..539bb000 100644 --- a/gralloc/gr_buf_mgr.cpp +++ b/gralloc/gr_buf_mgr.cpp @@ -1111,7 +1111,11 @@ Error BufferManager::GetMetadata(private_handle_t *handle, int64_t metadatatype_ android::gralloc4::encodeDataspace(dataspace, out); break; case (int64_t)StandardMetadataType::INTERLACED: - android::gralloc4::encodeInterlaced(qtigralloc::Interlaced_Qti, out); + if (metadata->interlaced > 0) { + android::gralloc4::encodeInterlaced(qtigralloc::Interlaced_Qti, out); + } else { + android::gralloc4::encodeInterlaced(android::gralloc4::Interlaced_None, out); + } break; case (int64_t)StandardMetadataType::COMPRESSION: if (handle->flags & qtigralloc::PRIV_FLAGS_UBWC_ALIGNED || |