mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
Simplify code.
Change-Id: If730d02312da01515ae53b5faaeb5d33419ec4ba Signed-off-by: Piotr Fusik <piotr.fusik@intel.com>
This commit is contained in:
@ -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) {
|
||||
|
Reference in New Issue
Block a user