Skip to content

Commit

Permalink
[Media Common] [VP] Fix oca resource type not being set
Browse files Browse the repository at this point in the history
Fix oca resource type not being set!
  • Loading branch information
Dylan-debug authored and intel-mediadev committed Jul 4, 2023
1 parent a5d4674 commit fe2c090
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions media_softlet/agnostic/common/os/mos_oca_rtlog_mgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ MOS_STATUS MosOcaRTLogMgr::RegisterRes(OsContextNext *osDriverContext, MOS_OCA_R
sParams.Format = Format_Buffer;
sParams.pBufName = "OcaRtlog";
sParams.bIsPersistent = 1;
// Use encode output bitstream to ensure coherency being enabled for CPU catchable surface, which
// will be checked during MapGpuVirtualAddress w/ critical message for invalid case.
sParams.ResUsageType = MOS_HW_RESOURCE_USAGE_ENCODE_OUTPUT_BITSTREAM;
resInterface->ocaRTLogResource = (PMOS_RESOURCE)MOS_AllocAndZeroMemory(sizeof(MOS_RESOURCE));
if (nullptr == resInterface->ocaRTLogResource)
{
Expand Down

0 comments on commit fe2c090

Please sign in to comment.