mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00

Avoid removing semaphores and reusing returned tags Change-Id: Ic26167953c5d5a9ccceaae49f4921af11a375fab Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
32 lines
827 B
C++
32 lines
827 B
C++
/*
|
|
* Copyright (C) 2017-2019 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "core/memory_manager/graphics_allocation.h"
|
|
#include "runtime/event/hw_timestamps.h"
|
|
|
|
namespace NEO {
|
|
|
|
struct HwPerfCounter {
|
|
void initialize() {
|
|
report[0] = 0;
|
|
}
|
|
|
|
static GraphicsAllocation::AllocationType getAllocationType() {
|
|
return GraphicsAllocation::AllocationType::PROFILING_TAG_BUFFER;
|
|
}
|
|
bool isCompleted() const { return true; }
|
|
|
|
// Gpu report size is not known during compile time.
|
|
// Such information will be provided by metrics library dll.
|
|
// Bellow variable will be allocated dynamically based on information
|
|
// from metrics library. Take look at CommandStreamReceiver::getEventPerfCountAllocator.
|
|
uint8_t report[1] = {};
|
|
};
|
|
} // namespace NEO
|