2020-01-15 17:02:47 +01:00
|
|
|
/*
|
2023-01-20 03:04:15 +00:00
|
|
|
* Copyright (C) 2020-2023 Intel Corporation
|
2020-01-15 17:02:47 +01:00
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#pragma once
|
2020-02-23 22:44:01 +01:00
|
|
|
#include "shared/source/direct_submission/dispatchers/dispatcher.h"
|
2020-01-15 17:02:47 +01:00
|
|
|
|
|
|
|
|
namespace NEO {
|
|
|
|
|
|
2023-01-20 03:04:15 +00:00
|
|
|
struct RootDeviceEnvironment;
|
2023-01-25 19:28:09 +00:00
|
|
|
class ProductHelper;
|
2023-01-20 03:04:15 +00:00
|
|
|
|
2020-01-15 17:02:47 +01:00
|
|
|
template <typename GfxFamily>
|
2020-03-26 20:13:10 +01:00
|
|
|
class RenderDispatcher : public Dispatcher<GfxFamily> {
|
2020-01-15 17:02:47 +01:00
|
|
|
public:
|
2020-03-26 20:13:10 +01:00
|
|
|
static void dispatchPreemption(LinearStream &cmdBuffer);
|
|
|
|
|
static size_t getSizePreemption();
|
2020-01-15 17:02:47 +01:00
|
|
|
|
2020-03-26 20:13:10 +01:00
|
|
|
static void dispatchMonitorFence(LinearStream &cmdBuffer,
|
|
|
|
|
uint64_t gpuAddress,
|
|
|
|
|
uint64_t immediateData,
|
2023-01-25 19:28:09 +00:00
|
|
|
const RootDeviceEnvironment &rootDeviceEnvironment,
|
2021-09-27 23:27:46 +00:00
|
|
|
bool useNotifyEnable,
|
2022-10-11 18:47:13 +00:00
|
|
|
bool partitionedWorkload,
|
|
|
|
|
bool dcFlushRequired);
|
2023-01-26 03:58:18 +00:00
|
|
|
static size_t getSizeMonitorFence(const RootDeviceEnvironment &rootDeviceEnvironment);
|
2020-01-15 17:02:47 +01:00
|
|
|
|
2023-01-20 03:04:15 +00:00
|
|
|
static void dispatchCacheFlush(LinearStream &cmdBuffer, const RootDeviceEnvironment &rootDeviceEnvironment, uint64_t address);
|
2023-03-06 12:42:09 +00:00
|
|
|
static void dispatchTlbFlush(LinearStream &cmdBuffer, uint64_t address, const RootDeviceEnvironment &rootDeviceEnvironment);
|
|
|
|
|
static size_t getSizeCacheFlush(const RootDeviceEnvironment &rootDeviceEnvironment);
|
|
|
|
|
static size_t getSizeTlbFlush(const RootDeviceEnvironment &rootDeviceEnvironment);
|
2021-10-12 21:28:34 +00:00
|
|
|
static bool isMultiTileSynchronizationSupported() {
|
|
|
|
|
return true;
|
|
|
|
|
}
|
2020-01-15 17:02:47 +01:00
|
|
|
};
|
|
|
|
|
} // namespace NEO
|