From 67829613c08b3ee3fd1d85f818fa9fca1fc43d61 Mon Sep 17 00:00:00 2001 From: Marissa Wall Date: Fri, 28 Feb 2020 09:37:17 -0800 Subject: [PATCH] gralloc4-vts: RGBA_8888 sampleIncrementInBits should be 32 SampleIncrementInBits is the delta between samples not components. It should be 32 for RGBA_8888. Test: VtsHalGraphicsMapperV4_0 Bug: 150461327 Change-Id: Idf283b93cd0243fa33eabac23185c513825d83ca --- .../4.0/vts/functional/VtsHalGraphicsMapperV4_0TargetTest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/graphics/mapper/4.0/vts/functional/VtsHalGraphicsMapperV4_0TargetTest.cpp b/graphics/mapper/4.0/vts/functional/VtsHalGraphicsMapperV4_0TargetTest.cpp index 295ba3668b..6cc5e34326 100644 --- a/graphics/mapper/4.0/vts/functional/VtsHalGraphicsMapperV4_0TargetTest.cpp +++ b/graphics/mapper/4.0/vts/functional/VtsHalGraphicsMapperV4_0TargetTest.cpp @@ -221,7 +221,7 @@ class GraphicsMapperHidlTest case PlaneLayoutComponentType::Y: ASSERT_EQ(nullptr, outYCbCr->y); ASSERT_EQ(8, planeLayoutComponent.sizeInBits); - ASSERT_EQ(8, planeLayout.sampleIncrementInBits); + ASSERT_EQ(32, planeLayout.sampleIncrementInBits); outYCbCr->y = tmpData; outYCbCr->ystride = planeLayout.strideInBytes; break;