Skip to content

Commit

Permalink
[VP] Coverity issues clean up part 2
Browse files Browse the repository at this point in the history
Fix coverity issues.
  • Loading branch information
VickyZengg authored and intel-mediadev committed Sep 8, 2023
1 parent b5a1ea8 commit 58ab522
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ class VphalStateXe_Xpm_Plus : public VphalState
}
#endif

if (!MEDIA_IS_SKU(m_skuTable, FtrCCSNode))
if (m_skuTable && !MEDIA_IS_SKU(m_skuTable, FtrCCSNode))
{
bComputeContextEnabled = false;
}
Expand Down
17 changes: 0 additions & 17 deletions media_driver/agnostic/common/shared/mediacopy/media_vebox_copy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,23 +44,6 @@
#define SURFACE_DW_VY_OFFSET(pSurface) \
((pSurface) != nullptr ? ((pSurface)->VPlaneOffset.iSurfaceOffset - (pSurface)->dwOffset) / (pSurface)->dwPitch + (pSurface)->VPlaneOffset.iYOffset : 0)

VeboxCopyState::VeboxCopyState(PMOS_INTERFACE osInterface) :
m_osInterface(osInterface),
m_mhwInterfaces(nullptr),
m_miInterface(nullptr),
m_veboxInterface(nullptr),
m_cpInterface(nullptr)
{
MOS_ZeroMemory(&params, sizeof(params));
params.Flags.m_vebox = 1;
m_mhwInterfaces = MhwInterfaces::CreateFactory(params, osInterface);
if (m_mhwInterfaces != nullptr)
{
m_veboxInterface = m_mhwInterfaces->m_veboxInterface;
m_miInterface = m_mhwInterfaces->m_miInterface;
}
}

VeboxCopyState::VeboxCopyState(PMOS_INTERFACE osInterface, MhwInterfaces* mhwInterfaces) :
m_osInterface(osInterface),
m_mhwInterfaces(nullptr),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ class VeboxCopyState
//! \param osInterface
//! [in] Pointer to MOS_INTERFACE.
//!
VeboxCopyState(PMOS_INTERFACE osInterface);
VeboxCopyState(PMOS_INTERFACE osInterface, MhwInterfaces* mhwInterfaces);

virtual ~VeboxCopyState();
Expand Down
2 changes: 1 addition & 1 deletion media_driver/agnostic/gen12_tgllp/vp/hal/vphal_g12_tgllp.h
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ class VphalStateG12Tgllp : public VphalState
bComputeContextEnabled = computeContextEnabled ? true : false;
}

if (!MEDIA_IS_SKU(m_skuTable, FtrCCSNode))
if (m_skuTable && !MEDIA_IS_SKU(m_skuTable, FtrCCSNode))
{
bComputeContextEnabled = false;
}
Expand Down

0 comments on commit 58ab522

Please sign in to comment.