[CP] Enable Linux secure encode(CL#770690)
Enable Linux secure encode for CQP/VBR
Change-Id: I7cb5312b6d24c6502b996a8dc037df16a905c04f
diff --git a/media_driver/linux/common/os/mos_gpucontext_specific.cpp b/media_driver/linux/common/os/mos_gpucontext_specific.cpp
index 69bd7d0..074f0dc 100644
--- a/media_driver/linux/common/os/mos_gpucontext_specific.cpp
+++ b/media_driver/linux/common/os/mos_gpucontext_specific.cpp
@@ -428,6 +428,7 @@
uint32_t addCb2 = 0xffffffff;
MOS_STATUS eStatus = MOS_STATUS_SUCCESS;
int32_t ret = 0;
+ PLATFORM platform;
// Command buffer object DRM pointer
m_cmdBufFlushed = true;
@@ -556,8 +557,12 @@
{
if (true == osInterface->osCpInterface->IsHMEnabled())
{
- cliprects = (drm_clip_rect *)(&addCb2);
- num_cliprects = sizeof(addCb2);
+ osInterface->pfnGetPlatform(osInterface,&platform);
+ if (platform.eProductFamily < IGFX_BROXTON)
+ {
+ cliprects = (drm_clip_rect *)(&addCb2);
+ num_cliprects = sizeof(addCb2);
+ }
}
}
else