From bf928e775d5fa84e29e9f052359b3e55af0ec850 Mon Sep 17 00:00:00 2001 From: Roman Stratiienko Date: Fri, 21 Jan 2022 10:49:47 +0200 Subject: [PATCH] composer: 2.4: vts: Add missing COMPOSER_OVERLAY allocation flag Without this flag, the composer will fail to PRESENT the buffer on the systems that do not have IOMMU support and can scanout contiguous- only buffers. Signed-off-by: Roman Stratiienko Change-Id: I566534a2a1fb602c0ce69ef861805d4fb03d7c47 --- .../vts/functional/VtsHalGraphicsComposerV2_4TargetTest.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/graphics/composer/2.4/vts/functional/VtsHalGraphicsComposerV2_4TargetTest.cpp b/graphics/composer/2.4/vts/functional/VtsHalGraphicsComposerV2_4TargetTest.cpp index b071f71e85..fa294ff259 100644 --- a/graphics/composer/2.4/vts/functional/VtsHalGraphicsComposerV2_4TargetTest.cpp +++ b/graphics/composer/2.4/vts/functional/VtsHalGraphicsComposerV2_4TargetTest.cpp @@ -161,7 +161,8 @@ class GraphicsComposerHidlTest : public ::testing::TestWithParam { return mGralloc->allocate( width, height, /*layerCount*/ 1, static_cast(PixelFormat::RGBA_8888), - static_cast(BufferUsage::CPU_WRITE_OFTEN | BufferUsage::CPU_READ_OFTEN)); + static_cast(BufferUsage::CPU_WRITE_OFTEN | BufferUsage::CPU_READ_OFTEN | + BufferUsage::COMPOSER_OVERLAY)); } struct TestParameters {