From 9fadc918c72d97d87a4f1a1fd6cae62a182db195 Mon Sep 17 00:00:00 2001 From: Sebastian Luzynski Date: Wed, 4 Mar 2020 17:31:21 +0100 Subject: [PATCH] Added empty programMiFlushDwWA() workaround. Related-To: NEO-3940 Change-Id: Ibc0978557004ed599a6698d76dc0f55bd26f8999 --- shared/source/command_container/command_encoder.h | 1 + shared/source/command_container/command_encoder.inl | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/shared/source/command_container/command_encoder.h b/shared/source/command_container/command_encoder.h index 509d09a492..8898ca4176 100644 --- a/shared/source/command_container/command_encoder.h +++ b/shared/source/command_container/command_encoder.h @@ -216,6 +216,7 @@ template struct EncodeMiFlushDW { using MI_FLUSH_DW = typename GfxFamily::MI_FLUSH_DW; static void programMiFlushDw(LinearStream &commandStream, uint64_t immediateDataGpuAddress, uint64_t immediateData); + static void programMiFlushDwWA(LinearStream &commandStream); static void appendMiFlushDw(MI_FLUSH_DW *miFlushDwCmd); }; } // namespace NEO diff --git a/shared/source/command_container/command_encoder.inl b/shared/source/command_container/command_encoder.inl index b7febcf41a..5b90c58a2c 100644 --- a/shared/source/command_container/command_encoder.inl +++ b/shared/source/command_container/command_encoder.inl @@ -394,6 +394,8 @@ void EncodeSurfaceState::getSshAlignedPointer(uintptr_t &ptr, size_t &of template void EncodeMiFlushDW::programMiFlushDw(LinearStream &commandStream, uint64_t immediateDataGpuAddress, uint64_t immediateData) { + programMiFlushDwWA(commandStream); + auto miFlushDwCmd = commandStream.getSpaceForCmd(); *miFlushDwCmd = GfxFamily::cmdInitMiFlushDw; miFlushDwCmd->setPostSyncOperation(MI_FLUSH_DW::POST_SYNC_OPERATION_WRITE_IMMEDIATE_DATA_QWORD); @@ -402,4 +404,7 @@ void EncodeMiFlushDW::programMiFlushDw(LinearStream &commandStream, u appendMiFlushDw(miFlushDwCmd); } +template +void EncodeMiFlushDW::programMiFlushDwWA(LinearStream &commandStream) {} + } // namespace NEO