mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-25 05:24:02 +08:00
Remove redundant coherency variables for SCM
Remove CommandStreamReceiver::lastSentCoherencyRequest Remove CsrSizeRequestFlags::coherencyRequestChanged Related-To: NEO-5995 Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
7b4c37e50d
commit
3511b4755f
@@ -18,7 +18,7 @@ static auto gfxCore = IGFX_GEN11_CORE;
|
||||
|
||||
template <>
|
||||
size_t CommandStreamReceiverHw<Family>::getCmdSizeForComputeMode() {
|
||||
if (csrSizeRequestFlags.coherencyRequestChanged) {
|
||||
if (this->streamProperties.stateComputeMode.isDirty()) {
|
||||
return sizeof(typename Family::MI_LOAD_REGISTER_IMM);
|
||||
}
|
||||
return 0;
|
||||
@@ -26,12 +26,11 @@ size_t CommandStreamReceiverHw<Family>::getCmdSizeForComputeMode() {
|
||||
|
||||
template <>
|
||||
void CommandStreamReceiverHw<Family>::programComputeMode(LinearStream &stream, DispatchFlags &dispatchFlags, const HardwareInfo &hwInfo) {
|
||||
if (csrSizeRequestFlags.coherencyRequestChanged) {
|
||||
if (this->streamProperties.stateComputeMode.isDirty()) {
|
||||
LriHelper<Family>::program(&stream,
|
||||
gen11HdcModeRegister::address,
|
||||
DwordBuilder::build(gen11HdcModeRegister::forceNonCoherentEnableBit, true, !dispatchFlags.requiresCoherency),
|
||||
false);
|
||||
this->lastSentCoherencyRequest = static_cast<int8_t>(dispatchFlags.requiresCoherency);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user