mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-07 04:48:08 +08:00
move aub_mem_dump to shared/
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
82f27e882d
commit
470b22e8a0
86
shared/source/gen8/aub_mem_dump_gen8.cpp
Normal file
86
shared/source/gen8/aub_mem_dump_gen8.cpp
Normal file
@@ -0,0 +1,86 @@
|
||||
/*
|
||||
* Copyright (C) 2018-2021 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
*/
|
||||
|
||||
#include "shared/source/aub/aub_helper_bdw_and_later.inl"
|
||||
#include "shared/source/aub_mem_dump/aub_alloc_dump.inl"
|
||||
#include "shared/source/aub_mem_dump/aub_mem_dump.inl"
|
||||
#include "shared/source/gen8/aub_mapper.h"
|
||||
#include "shared/source/helpers/hw_helper.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 NEO {
|
||||
using Family = BDWFamily;
|
||||
|
||||
static const AubMemDump::LrcaHelperRcs rcs(0x002000);
|
||||
static const AubMemDump::LrcaHelperBcs bcs(0x022000);
|
||||
static const AubMemDump::LrcaHelperVcs vcs(0x012000);
|
||||
static const AubMemDump::LrcaHelperVecs vecs(0x01a000);
|
||||
|
||||
const AubMemDump::LrcaHelper *const AUBFamilyMapper<Family>::csTraits[aub_stream::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[aub_stream::NUM_ENGINES] = {
|
||||
&mmioListRCS,
|
||||
&mmioListBCS,
|
||||
&mmioListVCS,
|
||||
&mmioListVECS};
|
||||
|
||||
template class AubHelperHw<Family>;
|
||||
} // namespace NEO
|
||||
|
||||
namespace AubAllocDump {
|
||||
using namespace NEO;
|
||||
|
||||
template SurfaceInfo *getDumpSurfaceInfo<Family>(GraphicsAllocation &gfxAllocation, DumpFormat dumpFormat);
|
||||
|
||||
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>(DumpFormat dumpFormat, GraphicsAllocation &gfxAllocation, AubMemDump::AubFileStream *stream, uint32_t context);
|
||||
} // namespace AubAllocDump
|
||||
Reference in New Issue
Block a user