File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
media_softlet/media_interface/media_interfaces_nvl Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -44,6 +44,8 @@ Copyright (c) 2026, Intel Corporation
4444#ifdef _MEDIA_RESERVED
4545#include " mhw_vdbox_aqm_impl_xe3p_lpm.h"
4646#include " mhw_vdbox_vdenc_impl_xe3p_lpm.h"
47+ #else
48+ #include " mhw_vdbox_vdenc_impl_xe3_lpm.h" // Temporary WA for decode open source test. Remove after xe3p_lpm VDEnc is available.
4749#endif
4850#include " huc_kernel_source_xe3p_lpm_base.h"
4951
@@ -254,6 +256,15 @@ MOS_STATUS MhwInterfacesNvl_Xe3G::Initialize(
254256 auto ptr = std::make_shared<mhw::vdbox::vdenc::xe3p_lpm_base::xe3p_lpm::Impl>(osInterface);
255257 m_vdencItf = std::static_pointer_cast<mhw::vdbox::vdenc::Itf>(ptr);
256258 }
259+ #else
260+ // The xe3p_lpm vdenc is not yet available in the open source build.
261+ // As a temporary workaround, the xe3_lpm vdenc is used for open source decode test.
262+ // TODO: Remove this workaround once the xe3p_lpm vdenc is ready in open source.
263+ if (params.Flags .m_vdboxAll || params.Flags .m_vdenc )
264+ {
265+ auto ptr = std::make_shared<mhw::vdbox::vdenc::xe3_lpm_base::xe3_lpm::Impl>(osInterface);
266+ m_vdencItf = std::static_pointer_cast<mhw::vdbox::vdenc::Itf>(ptr);
267+ }
257268#endif
258269 if (params.Flags .m_blt )
259270 {
You can’t perform that action at this time.
0 commit comments