mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-25 13:33:02 +08:00
Refactor pipe control post sync operations
Related-To: NEO-6262 Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
61641bb70a
commit
36fd163837
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user