Simplify code.

Change-Id: If730d02312da01515ae53b5faaeb5d33419ec4ba
Signed-off-by: Piotr Fusik <piotr.fusik@intel.com>
This commit is contained in:
Piotr Fusik
2019-02-28 11:21:01 +01:00
committed by sys_ocldev
parent 295d45f5ef
commit 33a9d3160b
9 changed files with 53 additions and 79 deletions

View File

@ -2196,10 +2196,7 @@ void Kernel::getAllocationsForCacheFlush(CacheFlushAllocationsVec &out) const {
}
bool Kernel::allocationForCacheFlush(GraphicsAllocation *argAllocation) const {
if (argAllocation->flushL3Required || argAllocation->isMemObjectsAllocationWithWritableFlags()) {
return true;
}
return false;
return argAllocation->flushL3Required || argAllocation->isMemObjectsAllocationWithWritableFlags();
}
void Kernel::addAllocationToCacheFlushVector(uint32_t argIndex, GraphicsAllocation *argAllocation) {