mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-20 13:11:34 +08:00
Add DCFlush before resolving
Change-Id: Id5f82edc4631aa16baa55b26b8bde69f4a30572c
This commit is contained in:

committed by
sys_ocldev

parent
e17dcfbb83
commit
89410a6733
@ -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;
|
||||
|
Reference in New Issue
Block a user