Skip to content

Commit

Permalink
[Media Common] Render copy clean up
Browse files Browse the repository at this point in the history
Render copy clean up
  • Loading branch information
LhGu authored and intel-mediadev committed Nov 21, 2024
1 parent 36baa12 commit ab45550
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,11 @@ MOS_STATUS MediaCopyBaseState::CapabilityCheck(
return MOS_STATUS_INVALID_PARAMETER;
}

if (MCPY_METHOD_PERFORMANCE == preferMethod && !caps.engineRender)
{
MCPY_ASSERTMESSAGE("No cap support for render copy, so app could not prefer to use EU copy");
return MOS_STATUS_INVALID_PARAMETER; // Bypass media copy, and let APP handle it.
}
// vebox cap check.
if (!IsVeboxCopySupported(mcpySrc.OsRes, mcpyDst.OsRes) || // format check, implemented on Gen derivate class.
mcpySrc.bAuxSuface)
Expand Down Expand Up @@ -479,7 +484,7 @@ MOS_STATUS MediaCopyBaseState::SurfaceCopy(PMOS_RESOURCE src, PMOS_RESOURCE dst,
mcpySrc, mcpyDst,
mcpyEngineCaps, preferMethod));

CopyEnigneSelect(preferMethod, mcpyEngine, mcpyEngineCaps);
MCPY_CHK_STATUS_RETURN(CopyEnigneSelect(preferMethod, mcpyEngine, mcpyEngineCaps));

MCPY_CHK_STATUS_RETURN(ValidateResource(SrcResDetails, DstResDetails, mcpyEngine));

Expand Down

0 comments on commit ab45550

Please sign in to comment.