mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-04 15:53:45 +08:00
fix: fix data race issue
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
023b29cc58
commit
ce1c5d747b
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user