Refactor pipe control post sync operations

Related-To: NEO-6262

Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
This commit is contained in:
Zbigniew Zdanowicz
2021-11-08 16:50:31 +00:00
committed by Compute-Runtime-Automation
parent 61641bb70a
commit 36fd163837
10 changed files with 202 additions and 39 deletions

View File

@@ -65,6 +65,8 @@ struct UnitTestHelper {
static const bool useFullRowForLocalIdsGeneration;
static const bool additionalMiFlushDwRequired;
static uint64_t getPipeControlPostSyncAddress(const typename GfxFamily::PIPE_CONTROL &pipeControl);
};
} // namespace NEO

View File

@@ -105,4 +105,12 @@ const bool UnitTestHelper<GfxFamily>::useFullRowForLocalIdsGeneration = false;
template <typename GfxFamily>
const bool UnitTestHelper<GfxFamily>::additionalMiFlushDwRequired = false;
template <typename GfxFamily>
uint64_t UnitTestHelper<GfxFamily>::getPipeControlPostSyncAddress(const typename GfxFamily::PIPE_CONTROL &pipeControl) {
uint64_t gpuAddress = pipeControl.getAddress();
uint64_t gpuAddressHigh = pipeControl.getAddressHigh();
return (gpuAddressHigh << 32) | gpuAddress;
}
} // namespace NEO