Optimize power usage in VA sharing scenarios.

- in VA sharing scenarios driver needs to be as power efficient as possible
- Added new mode to KMD notify helper called maxPowerSavingMode
- in this mode, whenever GPU is not busy, driver will choose non busy wait
path.

Change-Id: I7e4079be995107bea543ffda774ca161ce483944
This commit is contained in:
Mrozek, Michal
2018-07-31 08:38:50 +02:00
committed by sys_ocldev
parent b4b4a306d4
commit d53e1c3979
9 changed files with 85 additions and 4 deletions

View File

@@ -81,6 +81,10 @@ bool SharingFactory::finalizeProperties(Context &context, int32_t &errcodeRet) {
return true;
}
bool SharingFactory::isSharingPresent(SharingType sharingId) {
return sharingContextBuilder[sharingId] != nullptr;
}
SharingBuilderFactory *SharingFactory::sharingContextBuilder[SharingType::MAX_SHARING_VALUE] = {
nullptr,
};