mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-21 01:04:57 +08:00
Fix the PAT-index reporting in logger as currently on Windows reported values are simply wrong. The changed logic dependends on `RootDeviceEnvironment` and in order to avoid introducing such dependencies into logger.[ch] the `logAllocation()` is no longer a member of `FileLogger` but a free-function instead (and a separate .cpp file). This is important because the source files `logger.[ch]` are also used by ocloc library and there is no point to contaminate ocloc code structure with unnecessary dependencies. Related-To: NEO-9421 Signed-off-by: Maciej Bielski <maciej.bielski@intel.com>
20 lines
481 B
C++
20 lines
481 B
C++
/*
|
|
* Copyright (C) 2020-2024 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#include "shared/source/os_interface/windows/wddm_allocation.h"
|
|
|
|
#include "shared/source/gmm_helper/gmm.h"
|
|
#include "shared/source/gmm_helper/resource_info.h"
|
|
|
|
namespace NEO {
|
|
std::string WddmAllocation::getAllocationInfoString() const {
|
|
return getHandleInfoString();
|
|
}
|
|
std::string WddmAllocation::getPatIndexInfoString(const ProductHelper &) const {
|
|
return "";
|
|
}
|
|
} // namespace NEO
|