diff --git a/media_driver/agnostic/common/vp/hal/vphal_render_composite.cpp b/media_driver/agnostic/common/vp/hal/vphal_render_composite.cpp index e1dd8260da8..0d5cd986f46 100644 --- a/media_driver/agnostic/common/vp/hal/vphal_render_composite.cpp +++ b/media_driver/agnostic/common/vp/hal/vphal_render_composite.cpp @@ -1448,10 +1448,10 @@ MOS_STATUS CompositeState::IntermediateAllocation(PVPHAL_SURFACE &pIntermediate, // Get resource info (width, height, pitch, tiling, etc) MOS_ZeroMemory(&Info, sizeof(VPHAL_GET_SURFACE_INFO)); - VpHal_GetSurfaceInfo( + VPHAL_RENDER_CHK_STATUS_RETURN(VpHal_GetSurfaceInfo( pOsInterface, &Info, - pIntermediate); + pIntermediate)); } } diff --git a/media_softlet/agnostic/Xe_R/Xe_HPG_Base/hw/mhw_state_heap_xe_hpg.cpp b/media_softlet/agnostic/Xe_R/Xe_HPG_Base/hw/mhw_state_heap_xe_hpg.cpp index b56d53ae3be..a35d5d6aa58 100644 --- a/media_softlet/agnostic/Xe_R/Xe_HPG_Base/hw/mhw_state_heap_xe_hpg.cpp +++ b/media_softlet/agnostic/Xe_R/Xe_HPG_Base/hw/mhw_state_heap_xe_hpg.cpp @@ -147,10 +147,10 @@ MOS_STATUS MHW_STATE_HEAP_INTERFACE_XE_HPG::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_xe_hpg::INTERFACE_DESCRIPTOR_DATA_CMD))); + eStatus = pParams->memoryBlock->AddData(pInterfaceDescriptor, offset, sizeof(mhw_state_heap_xe_hpg::INTERFACE_DESCRIPTOR_DATA_CMD)); MOS_SafeFreeMemory(pInterfaceDescriptor); - + MHW_MI_CHK_STATUS(eStatus); return eStatus; }