From 7f3f32177b89bc95d6d4f4593aad098c32bcc3a5 Mon Sep 17 00:00:00 2001 From: Devika Krishnadas Date: Fri, 13 Jan 2023 00:13:26 +0000 Subject: [PATCH] gralloc4-vts: Remove assert for sizeInBits for RAW formats sizeInBits for components in RAW formats do not have to be invalid even if the bits are not contiguous. Bug: 265348037 Test: atest VtsHalGraphicsMapperV4_0TargetTest Change-Id: I69f58226e988c20b8ba5499ffec4fa0e2b2a68df Signed-off-by: Devika Krishnadas --- .../4.0/vts/functional/VtsHalGraphicsMapperV4_0TargetTest.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/graphics/mapper/4.0/vts/functional/VtsHalGraphicsMapperV4_0TargetTest.cpp b/graphics/mapper/4.0/vts/functional/VtsHalGraphicsMapperV4_0TargetTest.cpp index 5a450e385a..1e7cb8ef4c 100644 --- a/graphics/mapper/4.0/vts/functional/VtsHalGraphicsMapperV4_0TargetTest.cpp +++ b/graphics/mapper/4.0/vts/functional/VtsHalGraphicsMapperV4_0TargetTest.cpp @@ -952,7 +952,6 @@ TEST_P(GraphicsMapperHidlTest, Lock_RAW10) { EXPECT_EQ(PlaneLayoutComponentType::RAW, static_cast(planeLayoutComponent.type.value)); EXPECT_EQ(0, planeLayoutComponent.offsetInBits % 8); - EXPECT_EQ(-1, planeLayoutComponent.sizeInBits); ASSERT_NO_FATAL_FAILURE(fence.reset(mGralloc->unlock(bufferHandle))); } @@ -994,7 +993,6 @@ TEST_P(GraphicsMapperHidlTest, Lock_RAW12) { EXPECT_EQ(PlaneLayoutComponentType::RAW, static_cast(planeLayoutComponent.type.value)); EXPECT_EQ(0, planeLayoutComponent.offsetInBits % 8); - EXPECT_EQ(-1, planeLayoutComponent.sizeInBits); ASSERT_NO_FATAL_FAILURE(fence.reset(mGralloc->unlock(bufferHandle))); }