| 1 |
/* |
| 2 |
* Copyright (C) 2020 Intel Corporation |
| 3 |
* |
| 4 |
* SPDX-License-Identifier: MIT |
| 5 |
* |
| 6 |
*/ |
| 7 |
|
| 8 |
#pragma once |
| 9 |
#include <cstddef> |
| 10 |
#include <cstdint> |
| 11 |
|
| 12 |
namespace NEO { |
| 13 |
|
| 14 |
struct HardwareInfo; |
| 15 |
class LinearStream; |
| 16 |
|
| 17 |
template <typename GfxFamily> |
| 18 |
class Dispatcher { |
| 19 |
public: |
| 20 |
static void dispatchStartCommandBuffer(LinearStream &cmdBuffer, uint64_t gpuStartAddress); |
| 21 |
static size_t getSizeStartCommandBuffer(); |
| 22 |
|
| 23 |
static void dispatchStopCommandBuffer(LinearStream &cmdBuffer); |
| 24 |
static size_t getSizeStopCommandBuffer(); |
| 25 |
|
| 26 |
static void dispatchStoreDwordCommand(LinearStream &cmdBuffer, uint64_t gpuVa, uint32_t value); |
| 27 |
static size_t getSizeStoreDwordCommand(); |
| 28 |
}; |
| 29 |
} // namespace NEO |