From 7898bbf265b2179037d35b3f296d13a85be411ad Mon Sep 17 00:00:00 2001 From: Wang_Xiaotong Date: Fri, 28 Feb 2020 05:05:55 +0800 Subject: [PATCH] [VP] Remove blt interface from MhwInterfaces base class Remove blt interface from MhwInterfaces base class. Change-Id: I1e3cc821db2597bc101a8eb8bd99a11331ffad40 --- .../agnostic/common/media_interfaces/media_interfaces_mhw.h | 3 +-- .../linux/common/media_interfaces/media_interfaces.cpp | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/media_driver/agnostic/common/media_interfaces/media_interfaces_mhw.h b/media_driver/agnostic/common/media_interfaces/media_interfaces_mhw.h index 4c20a0bc06f..6773332ba51 100644 --- a/media_driver/agnostic/common/media_interfaces/media_interfaces_mhw.h +++ b/media_driver/agnostic/common/media_interfaces/media_interfaces_mhw.h @@ -99,7 +99,6 @@ class MhwInterfaces MhwVdboxHcpInterface *m_hcpInterface = nullptr; MhwVdboxHucInterface *m_hucInterface = nullptr; MhwVdboxVdencInterface *m_vdencInterface = nullptr; - MhwBltInterface *m_bltInterface = nullptr; //! //! \brief Calls the factory function to initialize all requested interfaces. @@ -130,7 +129,7 @@ class MhwInterfaces //! \brief Destroys all created MHW interfaces //! \details If the HAL creation fails, this is used for cleanup //! - void Destroy(); + virtual void Destroy(); }; extern template class MediaInterfacesFactory; diff --git a/media_driver/linux/common/media_interfaces/media_interfaces.cpp b/media_driver/linux/common/media_interfaces/media_interfaces.cpp index 684eb5676e4..602276bd850 100644 --- a/media_driver/linux/common/media_interfaces/media_interfaces.cpp +++ b/media_driver/linux/common/media_interfaces/media_interfaces.cpp @@ -198,7 +198,6 @@ void MhwInterfaces::Destroy() MOS_Delete(m_hcpInterface); MOS_Delete(m_hucInterface); MOS_Delete(m_vdencInterface); - MOS_Delete(m_bltInterface); } Codechal* CodechalDevice::CreateFactory(