Add function addPipeControlBeforeStateBaseAddress

Related-To: NEO-3430
Change-Id: Iecef814b7795556ef39e49d0769e0ff58abda0ed
Signed-off-by: Krzysztof Gibala <krzysztof.gibala@intel.com>
This commit is contained in:
Krzysztof Gibala
2019-07-19 12:45:56 +02:00
committed by sys_ocldev
parent af91147c5d
commit 6dd530babe
2 changed files with 10 additions and 3 deletions

View File

@@ -118,6 +118,14 @@ inline typename GfxFamily::PIPE_CONTROL *CommandStreamReceiverHw<GfxFamily>::add
return pCmd;
}
template <typename GfxFamily>
inline typename GfxFamily::PIPE_CONTROL *CommandStreamReceiverHw<GfxFamily>::addPipeControlBeforeStateBaseAddress(LinearStream &commandStream) {
auto pCmd = addPipeControlCmd(commandStream);
pCmd->setTextureCacheInvalidationEnable(true);
pCmd->setDcFlushEnable(true);
return pCmd;
}
template <typename GfxFamily>
CompletionStamp CommandStreamReceiverHw<GfxFamily>::flushTask(
LinearStream &commandStreamTask,
@@ -274,9 +282,7 @@ CompletionStamp CommandStreamReceiverHw<GfxFamily>::flushTask(
//Reprogram state base address if required
if (isStateBaseAddressDirty || device.isSourceLevelDebuggerActive()) {
auto pCmd = addPipeControlCmd(commandStreamCSR);
pCmd->setTextureCacheInvalidationEnable(true);
pCmd->setDcFlushEnable(true);
addPipeControlBeforeStateBaseAddress(commandStreamCSR);
uint64_t newGSHbase = 0;
GSBAFor32BitProgrammed = false;