Skip to content

Commit

Permalink
[VP] integrate FDFB native kernel
Browse files Browse the repository at this point in the history
* [VP] integrate FDFB native kernel

integrate FDFB native kernel.
  • Loading branch information
Alex1Zhang authored and intel-mediadev committed Dec 26, 2022
1 parent 7273373 commit 48fa9d3
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,11 @@ class VpPlatformInterfaceXe_Hpm : public VpPlatformInterface
return false;
}

virtual bool IsAdvanceNativeKernelSupported()
{
return false;
}

virtual MOS_STATUS GetInputFrameWidthHeightAlignUnit(
PVP_MHWINTERFACE pvpMhwInterface,
uint32_t &widthAlignUnit,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,11 @@ class VpPlatformInterfaceXe_Xpm : public VpPlatformInterface
return false;
}

virtual bool IsAdvanceNativeKernelSupported()
{
return false;
}

virtual MOS_STATUS GetInputFrameWidthHeightAlignUnit(
PVP_MHWINTERFACE pvpMhwInterface,
uint32_t &widthAlignUnit,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,11 @@ class VpPlatformInterfaceG12Tgllp : public VpPlatformInterface
return false;
}

virtual bool IsAdvanceNativeKernelSupported()
{
return false;
}

virtual MOS_STATUS GetInputFrameWidthHeightAlignUnit(
PVP_MHWINTERFACE pvpMhwInterface,
uint32_t &widthAlignUnit,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,11 @@ class VpPlatformInterfacesXe_Lpm_Plus : public VpPlatformInterface
return true;
}

virtual bool IsAdvanceNativeKernelSupported()
{
return false;
}

protected:
bool m_disableSfcDithering = false;

Expand Down
4 changes: 3 additions & 1 deletion media_softlet/agnostic/common/renderhal/renderhal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4057,7 +4057,9 @@ MOS_STATUS RenderHal_GetSurfaceStateEntries(
PlaneDefinition == RENDERHAL_PLANES_YUY2 ||
PlaneDefinition == RENDERHAL_PLANES_RGBP ||
PlaneDefinition == RENDERHAL_PLANES_PL3 ||
PlaneDefinition == RENDERHAL_PLANES_YV12))
PlaneDefinition == RENDERHAL_PLANES_YV12 ||
PlaneDefinition == RENDERHAL_PLANES_R16_UNORM ||
PlaneDefinition == RENDERHAL_PLANES_A8))
{
dwSurfaceWidth = dwSurfaceWidth / OutputSurfaceWidthRatio;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,11 @@ class VpPlatformInterface
return false;
}

virtual bool IsAdvanceNativeKernelSupported()
{
return true;
}

protected:
PMOS_INTERFACE m_pOsInterface = nullptr;
VP_KERNEL_BINARY m_vpKernelBinary = {}; //!< vp kernels
Expand Down

0 comments on commit 48fa9d3

Please sign in to comment.