mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-08 05:56:36 +08:00
Add function addPipeControlBeforeStateBaseAddress
Related-To: NEO-3430 Change-Id: Iecef814b7795556ef39e49d0769e0ff58abda0ed Signed-off-by: Krzysztof Gibala <krzysztof.gibala@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
af91147c5d
commit
6dd530babe
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user