Add returned status to MemoryOperationsHandler

Change-Id: Ic8685e3711cec03d8f83d371fa7152ee095a47a0
Signed-off-by: Maciej Plewka <maciej.plewka@intel.com>
This commit is contained in:
Maciej Plewka
2019-08-29 13:46:49 +02:00
committed by sys_ocldev
parent 77e22bd81b
commit 7827501b91
21 changed files with 130 additions and 107 deletions

View File

@@ -12,16 +12,16 @@ namespace NEO {
DrmMemoryOperationsHandler::DrmMemoryOperationsHandler() {
}
bool DrmMemoryOperationsHandler::makeResident(GraphicsAllocation &gfxAllocation) {
return false;
MemoryOperationsStatus DrmMemoryOperationsHandler::makeResident(GraphicsAllocation &gfxAllocation) {
return MemoryOperationsStatus::UNSUPPORTED;
}
bool DrmMemoryOperationsHandler::evict(GraphicsAllocation &gfxAllocation) {
return false;
MemoryOperationsStatus DrmMemoryOperationsHandler::evict(GraphicsAllocation &gfxAllocation) {
return MemoryOperationsStatus::UNSUPPORTED;
}
bool DrmMemoryOperationsHandler::isResident(GraphicsAllocation &gfxAllocation) {
return false;
MemoryOperationsStatus DrmMemoryOperationsHandler::isResident(GraphicsAllocation &gfxAllocation) {
return MemoryOperationsStatus::UNSUPPORTED;
}
} // namespace NEO

View File

@@ -15,8 +15,8 @@ class DrmMemoryOperationsHandler : public MemoryOperationsHandler {
DrmMemoryOperationsHandler();
~DrmMemoryOperationsHandler() override = default;
bool makeResident(GraphicsAllocation &gfxAllocation) override;
bool evict(GraphicsAllocation &gfxAllocation) override;
bool isResident(GraphicsAllocation &gfxAllocation) override;
MemoryOperationsStatus makeResident(GraphicsAllocation &gfxAllocation) override;
MemoryOperationsStatus evict(GraphicsAllocation &gfxAllocation) override;
MemoryOperationsStatus isResident(GraphicsAllocation &gfxAllocation) override;
};
} // namespace NEO