Skip to content

Commit c13864a

Browse files
pghafariPayam Ghafari
authored andcommitted
SWDEV-430356 - updated VArange to use SVM
Change-Id: Ice3582732dd6f43af6d566e5420234a581a1c194
1 parent 79162c2 commit c13864a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

rocclr/device/pal/palresource.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1338,8 +1338,10 @@ bool Resource::create(MemoryType memType, CreateParams* params, bool forceLinear
13381338
} else if (memoryType() == VaRange) {
13391339
createInfo.flags.virtualAlloc = true;
13401340
if (params->owner_->getSvmPtr() != nullptr) {
1341-
createInfo.flags.startVaHintFlag = true;
1342-
createInfo.startVaHint = reinterpret_cast<Pal::gpusize>(params->owner_->getSvmPtr());
1341+
createInfo.vaRange = Pal::VaRange::Svm;
1342+
createInfo.flags.useReservedGpuVa = true;
1343+
createInfo.pReservedGpuVaOwner = params->svmBase_->iMem();
1344+
desc_.SVMRes_ = true;
13431345
}
13441346
}
13451347

0 commit comments

Comments
 (0)