From c0bba97f26e34ff915cf8289d2b8ac3cdc2118ee Mon Sep 17 00:00:00 2001 From: Gabriel Wang Date: Tue, 24 Oct 2023 17:37:53 +0100 Subject: [PATCH] optimize arm_2d_helper_pfb_t layout --- Helper/Include/arm_2d_helper_pfb.h | 13 +++++++------ Helper/Source/arm_2d_helper_pfb.c | 4 ++-- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/Helper/Include/arm_2d_helper_pfb.h b/Helper/Include/arm_2d_helper_pfb.h index b449825a2..5c7b7058c 100644 --- a/Helper/Include/arm_2d_helper_pfb.h +++ b/Helper/Include/arm_2d_helper_pfb.h @@ -21,8 +21,8 @@ * Title: #include "arm_2d_helper_pfb.h" * Description: Public header file for the PFB helper service * - * $Date: 19. Oct 2023 - * $Revision: V.1.6.3 + * $Date: 24. Oct 2023 + * $Revision: V.1.6.4 * * Target Processor: Cortex-M cores * -------------------------------------------------------------------- */ @@ -590,8 +590,8 @@ ARM_PRIVATE( arm_2d_tile_t tPFBTile; arm_2d_size_t tFrameSize; uint32_t wPFBPixelCount; - bool bFirstIteration; - bool bIsRegionChanged; + //bool bFirstIteration; + //bool bIsRegionChanged; uint8_t chPT; struct { uint8_t bIsNewFrame : 1; @@ -600,7 +600,8 @@ ARM_PRIVATE( uint8_t bHideNavigationLayer : 1; uint8_t bIsDryRun : 1; //!< A flag to indicate whether the first iteration was a dry run uint8_t bNoAdditionalDirtyRegionList: 1; - uint8_t : 2; + uint8_t bFirstIteration : 1; + uint8_t bIsRegionChanged : 1; }; uint16_t hwFreePFBCount; arm_2d_pfb_t *ptCurrent; @@ -610,7 +611,7 @@ ARM_PRIVATE( arm_2d_pfb_t *ptHead; arm_2d_pfb_t *ptTail; }FlushFIFO; - arm_2d_tile_t *ptFrameBuffer; + arm_2d_tile_t *ptFrameBuffer; } Adapter; ) diff --git a/Helper/Source/arm_2d_helper_pfb.c b/Helper/Source/arm_2d_helper_pfb.c index 179ef15fd..c32cf1b82 100644 --- a/Helper/Source/arm_2d_helper_pfb.c +++ b/Helper/Source/arm_2d_helper_pfb.c @@ -21,8 +21,8 @@ * Title: #include "arm_2d_helper_pfb.c" * Description: the pfb helper service source code * - * $Date: 19. Oct 2023 - * $Revision: V.1.6.3 + * $Date: 24. Oct 2023 + * $Revision: V.1.6.4 * * Target Processor: Cortex-M cores * -------------------------------------------------------------------- */