Add DCFlush before resolving

Change-Id: Id5f82edc4631aa16baa55b26b8bde69f4a30572c
This commit is contained in:
Kamil Diedrich
2019-02-07 13:41:03 +01:00
committed by sys_ocldev
parent e17dcfbb83
commit 89410a6733
3 changed files with 27 additions and 3 deletions

View File

@ -7,6 +7,7 @@
#pragma once
#include "runtime/gen_common/hw_cmds.h"
#include <vector>
#include <list>
typedef std::list<void *> GenCmdList;
@ -25,6 +26,19 @@ static inline GenCmdList::iterator find(GenCmdList::iterator itorStart, GenCmdLi
return itor;
}
template <typename CommandToFind>
static inline std::vector<GenCmdList::iterator> findAll(GenCmdList::iterator commandListStart, GenCmdList::const_iterator commandListEnd) {
std::vector<GenCmdList::iterator> matchedCommands;
GenCmdList::iterator currentCommand = commandListStart;
while (currentCommand != commandListEnd) {
if (genCmdCast<CommandToFind>(*currentCommand)) {
matchedCommands.push_back(currentCommand);
}
++currentCommand;
}
return matchedCommands;
}
template <typename FamilyType>
static inline GenCmdList::iterator findMmio(GenCmdList::iterator itorStart, GenCmdList::const_iterator itorEnd, uint32_t regOffset) {
GenCmdList::iterator itor = itorStart;