Avoid using sdma engine if there's none
Change-Id: Id8d373683f3e1667ab461b4c5b8b490377b64cc0
[ROCm/clr commit: 40b432f992]
This commit is contained in:
@@ -356,6 +356,10 @@ bool Settings::create(const Pal::DeviceProperties& palProp,
|
||||
return false;
|
||||
}
|
||||
|
||||
if (0 == palProp.engineProperties[Pal::EngineTypeDma].engineCount) {
|
||||
disableSdma_ = true;
|
||||
}
|
||||
|
||||
// Image DMA must be disabled if SDMA is disabled
|
||||
imageDMA_ &= !disableSdma_;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user