mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-20 13:11:34 +08:00

Updating files modified in 2018 only. Older files remain with old style copyright header Change-Id: Ic99f2e190ad74b4b7f2bd79dd7b9fa5fbe36ec92 Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
44 lines
1.1 KiB
C++
44 lines
1.1 KiB
C++
/*
|
|
* Copyright (C) 2017-2018 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
#include <cstddef>
|
|
#include <cstdint>
|
|
|
|
namespace OCLRT {
|
|
|
|
class GmmHelper;
|
|
class IndirectHeap;
|
|
class LinearStream;
|
|
|
|
template <typename GfxFamily>
|
|
struct StateBaseAddressHelper {
|
|
using STATE_BASE_ADDRESS = typename GfxFamily::STATE_BASE_ADDRESS;
|
|
|
|
static void programStateBaseAddress(
|
|
LinearStream &commandStream,
|
|
const IndirectHeap &dsh,
|
|
const IndirectHeap &ioh,
|
|
const IndirectHeap &ssh,
|
|
uint64_t generalStateBase,
|
|
uint32_t statelessMocsIndex,
|
|
uint64_t internalHeapBase,
|
|
GmmHelper *gmmHelper);
|
|
|
|
static void appendStateBaseAddressParameters(
|
|
STATE_BASE_ADDRESS *stateBaseAddress,
|
|
const IndirectHeap &dsh,
|
|
const IndirectHeap &ioh,
|
|
const IndirectHeap &ssh,
|
|
uint64_t generalStateBase,
|
|
uint64_t internalHeapBase);
|
|
|
|
static void programBindingTableBaseAddress(LinearStream &commandStream, const IndirectHeap &ssh, size_t stateBaseAddressCmdOffset,
|
|
GmmHelper *gmmHelper);
|
|
};
|
|
} // namespace OCLRT
|