L0Debug - add support for mirrored isa heaps

- allow tileInstanced ISA while debugging

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
This commit is contained in:
Mateusz Hoppe
2022-09-14 09:23:40 +00:00
committed by Compute-Runtime-Automation
parent 643e21631c
commit 92893a5101
7 changed files with 639 additions and 41 deletions

View File

@ -196,8 +196,14 @@ void DrmAllocation::registerBOBindExtHandle(Drm *drm) {
}
if (resourceClass != DrmResourceClass::MaxSize) {
uint64_t gpuAddress = getGpuAddress();
auto handle = drm->registerResource(resourceClass, &gpuAddress, sizeof(gpuAddress));
auto handle = 0;
if (resourceClass == DrmResourceClass::Isa) {
auto deviceBitfiled = static_cast<uint32_t>(this->storageInfo.subDeviceBitfield.to_ulong());
handle = drm->registerResource(resourceClass, &deviceBitfiled, sizeof(deviceBitfiled));
} else {
uint64_t gpuAddress = getGpuAddress();
handle = drm->registerResource(resourceClass, &gpuAddress, sizeof(gpuAddress));
}
registeredBoBindHandles.push_back(handle);
auto &bos = getBOs();