From a6cc72e829f14a1bb81147eeddb0cfc1c3c2ef72 Mon Sep 17 00:00:00 2001 From: Hu_Molly Date: Mon, 25 Oct 2021 19:28:59 +0800 Subject: [PATCH] [VP] disable EUfusion when colorfill and rotation work togther disable EUfusion when colorfill and rotation work togther to fix corruption issue --- media_driver/agnostic/common/renderhal/renderhal.h | 3 ++- media_driver/agnostic/common/vp/hal/vphal_render_composite.cpp | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/media_driver/agnostic/common/renderhal/renderhal.h b/media_driver/agnostic/common/renderhal/renderhal.h index 8df24667d2b..a1965cf76b4 100644 --- a/media_driver/agnostic/common/renderhal/renderhal.h +++ b/media_driver/agnostic/common/renderhal/renderhal.h @@ -1265,7 +1265,8 @@ typedef struct _RENDERHAL_INTERFACE bool isMMCEnabled; MediaPerfProfiler *pPerfProfiler = nullptr; //!< Performance data profiler - int32_t iSourceCount = 0; + bool eufusionBypass = false; + //--------------------------- // HW interface functions //--------------------------- diff --git a/media_driver/agnostic/common/vp/hal/vphal_render_composite.cpp b/media_driver/agnostic/common/vp/hal/vphal_render_composite.cpp index ad2d652ccd2..baf059544c7 100644 --- a/media_driver/agnostic/common/vp/hal/vphal_render_composite.cpp +++ b/media_driver/agnostic/common/vp/hal/vphal_render_composite.cpp @@ -2319,7 +2319,7 @@ MOS_STATUS CompositeState::Render( VPHAL_RENDER_ASSERTMESSAGE("Invalid number of samples."); goto finish; } - pRenderHal->iSourceCount = iSources; + pRenderHal->eufusionBypass = pRenderHal->eufusionBypass || ((iSources > 1) ? 1:0); // Determine cspace for compositing ColorSpace = PrepareCSC(pcRenderParams, pSources,