mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-12 17:33:00 +08:00
Calculate CS timestamp based on OA timestamp and frequencies ratio
Changes affect cores up to xe_hpg Resolves: NEO-7346 Signed-off-by: Katarzyna Cencelewska <katarzyna.cencelewska@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
343371faad
commit
bbd75959d5
@@ -18,10 +18,6 @@ template <>
|
||||
void HwInfoConfigHw<IGFX_UNKNOWN>::adjustSamplerState(void *sampler, const HardwareInfo &hwInfo) {
|
||||
}
|
||||
|
||||
template <>
|
||||
void HwInfoConfigHw<IGFX_UNKNOWN>::convertTimestampsFromOaToCsDomain(uint64_t ×tampData) {
|
||||
}
|
||||
|
||||
template <>
|
||||
uint32_t HwInfoConfigHw<IGFX_UNKNOWN>::getMaxThreadsForWorkgroupInDSSOrSS(const HardwareInfo &hwInfo, uint32_t maxNumEUsPerSubSlice, uint32_t maxNumEUsPerDualSubSlice) const {
|
||||
return 0;
|
||||
|
||||
@@ -10,10 +10,16 @@
|
||||
#include "shared/source/os_interface/windows/os_time_win.h"
|
||||
|
||||
namespace NEO {
|
||||
struct MockDeviceTimeWddm : DeviceTimeWddm {
|
||||
using DeviceTimeWddm::convertTimestampsFromOaToCsDomain;
|
||||
};
|
||||
class MockOSTimeWin : public OSTimeWin {
|
||||
public:
|
||||
MockOSTimeWin(Wddm *wddm) {
|
||||
this->deviceTime = std::make_unique<DeviceTimeWddm>(wddm);
|
||||
}
|
||||
void convertTimestampsFromOaToCsDomain(HardwareInfo const &hwInfo, uint64_t ×tampData, uint64_t freqOA, uint64_t freqCS) {
|
||||
static_cast<MockDeviceTimeWddm *>(this->deviceTime.get())->convertTimestampsFromOaToCsDomain(hwInfo, timestampData, freqOA, freqCS);
|
||||
}
|
||||
};
|
||||
} // namespace NEO
|
||||
|
||||
Reference in New Issue
Block a user