From f5ba66b3f9475c5d9da74764de645551ef00abb5 Mon Sep 17 00:00:00 2001 From: dai1 Date: Thu, 23 May 2019 17:51:06 +0800 Subject: [PATCH] [CM][HW]add new interface for register resource before lock this is part 1 patch for fixing surface corruption issue Change-Id: Ifca48a1c5eb789f9297ea007e08a4f714cbe71c9 --- media_driver/agnostic/common/cm/cm_hal_generic.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/media_driver/agnostic/common/cm/cm_hal_generic.h b/media_driver/agnostic/common/cm/cm_hal_generic.h index 69172c8a4f..45a4a9fb6d 100644 --- a/media_driver/agnostic/common/cm/cm_hal_generic.h +++ b/media_driver/agnostic/common/cm/cm_hal_generic.h @@ -655,6 +655,10 @@ struct CM_HAL_GENERIC return m_decompress; } + virtual MOS_STATUS RegisterResourceBeforeLock(PMOS_INTERFACE pOsInterface, PMOS_RESOURCE pResource) + { + return MOS_STATUS_SUCCESS; + } protected: uint32_t m_platformID; uint32_t m_genGT;