Rename functions

Rename getEngines to getAllEngines
Rename engines to allEngines
Rename getEngineGroups to getRegularEngineGroups
Rename engineGroups to regularEngineGroups

Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
This commit is contained in:
Filip Hazubski
2021-12-13 12:45:24 +00:00
committed by Compute-Runtime-Automation
parent 3fd938a124
commit 64aec8dc4e
36 changed files with 185 additions and 185 deletions

View File

@@ -26,7 +26,7 @@ DrmMemoryOperationsHandlerBind::DrmMemoryOperationsHandlerBind(RootDeviceEnviron
DrmMemoryOperationsHandlerBind::~DrmMemoryOperationsHandlerBind() = default;
MemoryOperationsStatus DrmMemoryOperationsHandlerBind::makeResident(Device *device, ArrayRef<GraphicsAllocation *> gfxAllocations) {
auto &engines = device->getEngines();
auto &engines = device->getAllEngines();
for (const auto &engine : engines) {
engine.osContext->ensureContextInitialized();
this->makeResidentWithinOsContext(engine.osContext, gfxAllocations, false);
@@ -51,7 +51,7 @@ MemoryOperationsStatus DrmMemoryOperationsHandlerBind::makeResidentWithinOsConte
}
MemoryOperationsStatus DrmMemoryOperationsHandlerBind::evict(Device *device, GraphicsAllocation &gfxAllocation) {
auto &engines = device->getEngines();
auto &engines = device->getAllEngines();
auto retVal = MemoryOperationsStatus::SUCCESS;
for (const auto &engine : engines) {
retVal = this->evictWithinOsContext(engine.osContext, gfxAllocation);
@@ -81,7 +81,7 @@ void DrmMemoryOperationsHandlerBind::evictImpl(OsContext *osContext, GraphicsAll
MemoryOperationsStatus DrmMemoryOperationsHandlerBind::isResident(Device *device, GraphicsAllocation &gfxAllocation) {
std::lock_guard<std::mutex> lock(mutex);
bool isResident = true;
auto &engines = device->getEngines();
auto &engines = device->getAllEngines();
for (const auto &engine : engines) {
isResident &= gfxAllocation.isAlwaysResident(engine.osContext->getContextId());
}