mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-14 02:32:59 +08:00
Include files are now grouped and sorted in following order: 1. Header file of the class the current file implements 2. Project files 3. Third party files 4. Standard library Change-Id: If31af05652184169f7fee1d7ad08f1b2ed602cf0 Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
83 lines
2.5 KiB
C++
83 lines
2.5 KiB
C++
/*
|
|
* Copyright (C) 2017-2019 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#include "runtime/aub_mem_dump/aub_alloc_dump.inl"
|
|
#include "runtime/aub_mem_dump/aub_mem_dump.inl"
|
|
#include "runtime/helpers/hw_helper.h"
|
|
|
|
#include "aub_mapper.h"
|
|
|
|
namespace AubMemDump {
|
|
|
|
enum {
|
|
device = DeviceValues::Bdw
|
|
};
|
|
|
|
// Instantiate these common template implementations.
|
|
template struct AubDump<Traits<device, 32>>;
|
|
template struct AubDump<Traits<device, 48>>;
|
|
|
|
template struct AubPageTableHelper32<Traits<device, 32>>;
|
|
template struct AubPageTableHelper64<Traits<device, 48>>;
|
|
} // namespace AubMemDump
|
|
|
|
namespace OCLRT {
|
|
using Family = BDWFamily;
|
|
|
|
static AubMemDump::LrcaHelperRcs rcs(0x002000);
|
|
static AubMemDump::LrcaHelperBcs bcs(0x022000);
|
|
static AubMemDump::LrcaHelperVcs vcs(0x012000);
|
|
static AubMemDump::LrcaHelperVecs vecs(0x01a000);
|
|
|
|
const AubMemDump::LrcaHelper *AUBFamilyMapper<Family>::csTraits[EngineType::NUM_ENGINES] = {
|
|
&rcs,
|
|
&bcs,
|
|
&vcs,
|
|
&vecs};
|
|
|
|
const MMIOList AUBFamilyMapper<Family>::globalMMIO;
|
|
|
|
static const MMIOList mmioListRCS = {
|
|
MMIOPair(0x000020d8, 0x00020000),
|
|
MMIOPair(AubMemDump::computeRegisterOffset(rcs.mmioBase, 0x229c), 0xffff8280),
|
|
};
|
|
|
|
static const MMIOList mmioListBCS = {
|
|
MMIOPair(AubMemDump::computeRegisterOffset(bcs.mmioBase, 0x229c), 0xffff8280),
|
|
};
|
|
|
|
static const MMIOList mmioListVCS = {
|
|
MMIOPair(AubMemDump::computeRegisterOffset(vcs.mmioBase, 0x229c), 0xffff8280),
|
|
};
|
|
|
|
static const MMIOList mmioListVECS = {
|
|
MMIOPair(AubMemDump::computeRegisterOffset(vecs.mmioBase, 0x229c), 0xffff8280),
|
|
};
|
|
|
|
const MMIOList *AUBFamilyMapper<Family>::perEngineMMIO[EngineType::NUM_ENGINES] = {
|
|
&mmioListRCS,
|
|
&mmioListBCS,
|
|
&mmioListVCS,
|
|
&mmioListVECS};
|
|
} // namespace OCLRT
|
|
|
|
namespace AubAllocDump {
|
|
using namespace OCLRT;
|
|
|
|
template uint32_t getImageSurfaceTypeFromGmmResourceType<Family>(GMM_RESOURCE_TYPE gmmResourceType);
|
|
|
|
template void dumpBufferInBinFormat<Family>(GraphicsAllocation &gfxAllocation, AubMemDump::AubFileStream *stream, uint32_t context);
|
|
|
|
template void dumpImageInBmpFormat<Family>(GraphicsAllocation &gfxAllocation, AubMemDump::AubFileStream *stream, uint32_t context);
|
|
|
|
template void dumpBufferInTreFormat<Family>(GraphicsAllocation &gfxAllocation, AubMemDump::AubFileStream *stream, uint32_t context);
|
|
|
|
template void dumpImageInTreFormat<Family>(GraphicsAllocation &gfxAllocation, AubMemDump::AubFileStream *stream, uint32_t context);
|
|
|
|
template void dumpAllocation<Family>(GraphicsAllocation &gfxAllocation, AubMemDump::AubFileStream *stream, uint32_t context);
|
|
} // namespace AubAllocDump
|