Skip to content

Commit

Permalink
[Media Common] [VP] Fix open source kernel build error
Browse files Browse the repository at this point in the history
Fix open source kernel build error
#1842
  • Loading branch information
Effieyu0 authored and intel-mediadev committed Aug 21, 2024
1 parent 0f3d453 commit d9e615e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
#include "media_render_common.h"
#include "vpkrnheader.h"

#ifndef _FULL_OPEN_SOURCE
#if defined(ENABLE_KERNELS) && !defined(_FULL_OPEN_SOURCE)
#include "igvpkrn_xe2_hpg.h"
#endif

Expand All @@ -51,9 +51,12 @@ class MhwInterfacesNext;
RenderCopyxe2_Lpm::RenderCopyxe2_Lpm(PMOS_INTERFACE osInterface, MhwInterfacesNext *mhwInterfaces):
RenderCopyStateNext(osInterface, mhwInterfaces)
{
#ifndef _FULL_OPEN_SOURCE
#if defined(ENABLE_KERNELS) && !defined(_FULL_OPEN_SOURCE)
m_KernelBin = (const void*)IGVPKRN_XE2_HPG;
m_KernelBinSize = IGVPKRN_XE2_HPG_SIZE;
#else
m_KernelBin = nullptr;
m_KernelBinSize = 0;
#endif
}

Expand Down
3 changes: 2 additions & 1 deletion media_softlet/agnostic/Xe_R/Xe2_HPG/vp/media_srcs.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
# OTHER DEALINGS IN THE SOFTWARE.


if(ENABLE_KERNELS AND ENABLE_NONFREE_KERNELS)
media_include_subdirectory(kernel)
endif()
media_include_subdirectory(kernel_config)
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
#include "mhw_vdbox_vdenc_impl_xe_lpm_plus.h"
#endif

#ifndef _FULL_OPEN_SOURCE
#if defined(ENABLE_KERNELS) && !defined(_FULL_OPEN_SOURCE)
#include "igvpkrn_xe2_hpg.h"
#include "igvpkrn_xe2_hpg_cmfcpatch.h"
#include "igvpkrn_l0_xe2_hpg.h"
Expand Down Expand Up @@ -139,15 +139,14 @@ void VphalInterfacesXe2_Lpm::InitPlatformKernelBinary(
{
static vp::VpKernelConfigXe2_Hpg kernelConfig;
vpPlatformInterface->SetKernelConfig(&kernelConfig);
#ifndef _FULL_OPEN_SOURCE
#if defined(ENABLE_KERNELS) && !defined(_FULL_OPEN_SOURCE)
vpPlatformInterface->SetVpFCKernelBinary(
IGVPKRN_XE2_HPG,
IGVPKRN_XE2_HPG_SIZE,
IGVPKRN_XE2_HPG_CMFCPATCH,
IGVPKRN_XE2_HPG_CMFCPATCH_SIZE);

vpPlatformInterface->AddVpNativeAdvKernelEntryToList(IGVP3DLUT_GENERATION_XE2_HPG, IGVP3DLUT_GENERATION_XE2_HPG_SIZE, "hdr_3dlut_l0");

#endif
}

Expand Down

0 comments on commit d9e615e

Please sign in to comment.