2020-01-16 00:02:47 +08:00
|
|
|
/*
|
2021-04-14 22:40:23 +08:00
|
|
|
* Copyright (C) 2020-2021 Intel Corporation
|
2020-01-16 00:02:47 +08:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
2020-02-24 05:44:01 +08:00
|
|
|
#include "shared/source/direct_submission/dispatchers/dispatcher.h"
|
2020-01-16 00:02:47 +08:00
|
|
|
|
|
|
|
namespace NEO {
|
|
|
|
|
|
|
|
template <typename GfxFamily>
|
2020-03-27 03:13:10 +08:00
|
|
|
class BlitterDispatcher : public Dispatcher<GfxFamily> {
|
2020-01-16 00:02:47 +08:00
|
|
|
public:
|
2020-03-27 03:13:10 +08:00
|
|
|
static void dispatchPreemption(LinearStream &cmdBuffer);
|
|
|
|
static size_t getSizePreemption();
|
2020-01-16 00:02:47 +08:00
|
|
|
|
2020-03-27 03:13:10 +08:00
|
|
|
static void dispatchMonitorFence(LinearStream &cmdBuffer,
|
|
|
|
uint64_t gpuAddress,
|
|
|
|
uint64_t immediateData,
|
2021-06-17 19:55:28 +08:00
|
|
|
const HardwareInfo &hwInfo,
|
2021-09-28 07:27:46 +08:00
|
|
|
bool useNotifyEnable,
|
|
|
|
bool partitionedWorkload);
|
2020-03-27 03:13:10 +08:00
|
|
|
static size_t getSizeMonitorFence(const HardwareInfo &hwInfo);
|
2020-01-16 00:02:47 +08:00
|
|
|
|
2021-07-29 14:40:42 +08:00
|
|
|
static void dispatchCacheFlush(LinearStream &cmdBuffer, const HardwareInfo &hwInfo, uint64_t address);
|
2021-12-22 02:13:53 +08:00
|
|
|
static void dispatchTlbFlush(LinearStream &cmdBuffer, uint64_t address, const HardwareInfo &hwInfo);
|
2020-03-27 03:13:10 +08:00
|
|
|
static size_t getSizeCacheFlush(const HardwareInfo &hwInfo);
|
2021-04-14 22:40:23 +08:00
|
|
|
static size_t getSizeTlbFlush();
|
2021-10-13 05:28:34 +08:00
|
|
|
static bool isMultiTileSynchronizationSupported() {
|
|
|
|
return false;
|
|
|
|
}
|
2020-01-16 00:02:47 +08:00
|
|
|
};
|
|
|
|
} // namespace NEO
|