Skip to content

Commit

Permalink
[Media Common] [VP] fix kw issue
Browse files Browse the repository at this point in the history
fix kw mhw issue
  • Loading branch information
Dylan-debug authored and intel-mediadev committed Sep 5, 2023
1 parent 7a5cb2b commit 7e3e75a
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 18 deletions.
19 changes: 5 additions & 14 deletions media_driver/agnostic/common/vp/hal/vphal_render_composite.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5867,20 +5867,11 @@ bool CompositeState::RenderBufferMediaWalker(
else
{
// Horizontal and Vertical base on non-rotated in case of dual output
if (pRenderingData->bCmFcEnable && pRenderingData->iLayers > 0)
{
pWalkerStatic->DW69.DestHorizontalBlockOrigin =
(uint16_t)pRenderingData->pTarget[1]->rcDst.left;
pWalkerStatic->DW69.DestVerticalBlockOrigin =
(uint16_t)pRenderingData->pTarget[1]->rcDst.top;
}
else
{
pWalkerStatic->DW69.DestHorizontalBlockOrigin =
(uint16_t)pRenderingData->pTarget[1]->rcDst.left;
pWalkerStatic->DW69.DestVerticalBlockOrigin =
(uint16_t)pRenderingData->pTarget[1]->rcDst.top;
}
pWalkerStatic->DW69.DestHorizontalBlockOrigin =
(uint16_t)pRenderingData->pTarget[1]->rcDst.left;
pWalkerStatic->DW69.DestVerticalBlockOrigin =
(uint16_t)pRenderingData->pTarget[1]->rcDst.top;

AlignedRect = pRenderingData->pTarget[1]->rcDst;
}

Expand Down
6 changes: 3 additions & 3 deletions media_driver/agnostic/gen12/hw/mhw_state_heap_g12.c
Original file line number Diff line number Diff line change
Expand Up @@ -151,11 +151,11 @@ MOS_STATUS MHW_STATE_HEAP_INTERFACE_G12_X::AddInterfaceDescriptorData(

// need to subtract memory block's offset in current state heap for AddData API
offset -= pParams->memoryBlock->GetOffset();
MHW_MI_CHK_STATUS(pParams->memoryBlock->AddData(pInterfaceDescriptor, offset,
sizeof(mhw_state_heap_g12_X::INTERFACE_DESCRIPTOR_DATA_CMD)));
eStatus = pParams->memoryBlock->AddData(pInterfaceDescriptor, offset,
sizeof(mhw_state_heap_g12_X::INTERFACE_DESCRIPTOR_DATA_CMD));

MOS_SafeFreeMemory(pInterfaceDescriptor);

MHW_MI_CHK_STATUS(eStatus);
return eStatus;
}
MOS_STATUS MHW_STATE_HEAP_INTERFACE_G12_X::SetSurfaceStateEntry(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,7 @@ MOS_STATUS MemoryBlockManager::RegisterHeap(uint32_t heapId, uint32_t size , boo
if (block == nullptr)
{
MOS_Delete(adjacencyListBegin);
HEAP_ASSERTMESSAGE("block be null");
return MOS_STATUS_NULL_POINTER;
}

Expand Down
2 changes: 1 addition & 1 deletion media_softlet/agnostic/common/os/mos_gpucontext_next.h
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ class GpuContextNext
MOS_RESOURCE_HANDLE m_statusBufferResource = nullptr;

//! \brief Track the GPU Context Client Info
MOS_GPU_CONTEXT m_gpuContext;
MOS_GPU_CONTEXT m_gpuContext = MOS_GPU_CONTEXT_INVALID_HANDLE;

//! \brief VE attribute buffer
MOS_CMD_BUF_ATTRI_VE m_bufAttriVe = {};
Expand Down

0 comments on commit 7e3e75a

Please sign in to comment.