fix: fix data race issue

Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
This commit is contained in:
Lukasz Jobczyk
2025-10-13 12:47:09 +00:00
committed by Compute-Runtime-Automation
parent 023b29cc58
commit ce1c5d747b

View File

@@ -361,6 +361,7 @@ void TbxCommandStreamReceiverHw<GfxFamily>::processEviction() {
template <typename GfxFamily>
void TbxCommandStreamReceiverHw<GfxFamily>::makeNonResident(GraphicsAllocation &gfxAllocation) {
auto lock = this->obtainUniqueOwnership();
if (gfxAllocation.isResident(osContext->getContextId())) {
this->allocationsForDownload.insert(&gfxAllocation);
}