[VP] fix GDHM issue
fix GDHM issue-- remove gen9 vebox/sfc Y410/Y416/Y210/Y216 format .
Change-Id: I456ffd2c7cd0b25ed7b8fff94fcd034410b9c583
diff --git a/media_driver/agnostic/gen9/vp/hal/vphal_render_sfc_g9_base.cpp b/media_driver/agnostic/gen9/vp/hal/vphal_render_sfc_g9_base.cpp
index 53bb7ce..0feb48a 100644
--- a/media_driver/agnostic/gen9/vp/hal/vphal_render_sfc_g9_base.cpp
+++ b/media_driver/agnostic/gen9/vp/hal/vphal_render_sfc_g9_base.cpp
@@ -44,7 +44,11 @@
(srcSurface->Format != Format_X8B8G8R8) &&
(srcSurface->Format != Format_A8R8G8B8) &&
(srcSurface->Format != Format_X8R8G8B8) &&
- !IS_PA_FORMAT(srcSurface->Format))
+ (!IS_PA_FORMAT(srcSurface->Format) ||
+ (srcSurface->Format == Format_Y410) || // Gen9 can't support Y410/Y416/Y210/Y216 Format
+ (srcSurface->Format == Format_Y416) ||
+ (srcSurface->Format == Format_Y210) ||
+ (srcSurface->Format == Format_Y216)))
{
VPHAL_RENDER_NORMALMESSAGE("Unsupported Source Format '0x%08x' for SFC.", srcSurface->Format);
ret = false;
diff --git a/media_driver/agnostic/gen9/vp/hal/vphal_render_vebox_g9_base.cpp b/media_driver/agnostic/gen9/vp/hal/vphal_render_vebox_g9_base.cpp
index 7beef96..59a3bfd 100644
--- a/media_driver/agnostic/gen9/vp/hal/vphal_render_vebox_g9_base.cpp
+++ b/media_driver/agnostic/gen9/vp/hal/vphal_render_vebox_g9_base.cpp
@@ -2191,7 +2191,11 @@
pSrcSurface->Format != Format_Y8 &&
pSrcSurface->Format != Format_Y16U &&
pSrcSurface->Format != Format_Y16S &&
- !IS_PA_FORMAT(pSrcSurface->Format))
+ (!IS_PA_FORMAT(pSrcSurface->Format) ||
+ pSrcSurface->Format == Format_Y410 || // Gen9 can't support Y410/Y416/Y210/Y216 Format
+ pSrcSurface->Format == Format_Y416 ||
+ pSrcSurface->Format == Format_Y210 ||
+ pSrcSurface->Format == Format_Y216))
{
VPHAL_RENDER_NORMALMESSAGE("Unsupported Source Format '0x%08x' for VEBOX.", pSrcSurface->Format);
goto finish;