mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-21 01:04:57 +08:00
fix: reduce types for tagSize and tagCount within TagAllocator
Related-To: NEO-16444 Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
133421a5e9
commit
7660b29bbb
@@ -138,7 +138,7 @@ class GfxCoreHelper {
|
||||
virtual uint32_t getPlanarYuvMaxHeight() const = 0;
|
||||
virtual size_t getPreemptionAllocationAlignment() const = 0;
|
||||
virtual std::unique_ptr<TagAllocatorBase> createTimestampPacketAllocator(const RootDeviceIndicesContainer &rootDeviceIndices, MemoryManager *memoryManager,
|
||||
size_t initialTagCount, CommandStreamReceiverType csrType,
|
||||
uint32_t initialTagCount, CommandStreamReceiverType csrType,
|
||||
DeviceBitfield deviceBitfield) const = 0;
|
||||
virtual size_t getTimestampPacketAllocatorAlignment() const = 0;
|
||||
virtual size_t getSingleTimestampPacketSize() const = 0;
|
||||
@@ -404,7 +404,7 @@ class GfxCoreHelperHw : public GfxCoreHelper {
|
||||
size_t getPreemptionAllocationAlignment() const override;
|
||||
|
||||
std::unique_ptr<TagAllocatorBase> createTimestampPacketAllocator(const RootDeviceIndicesContainer &rootDeviceIndices, MemoryManager *memoryManager,
|
||||
size_t initialTagCount, CommandStreamReceiverType csrType,
|
||||
uint32_t initialTagCount, CommandStreamReceiverType csrType,
|
||||
DeviceBitfield deviceBitfield) const override;
|
||||
size_t getTimestampPacketAllocatorAlignment() const override;
|
||||
|
||||
|
||||
@@ -505,7 +505,7 @@ uint32_t GfxCoreHelperHw<GfxFamily>::getNativeVectorWidthHalf(uint32_t vectorWid
|
||||
|
||||
template <typename GfxFamily>
|
||||
std::unique_ptr<TagAllocatorBase> GfxCoreHelperHw<GfxFamily>::createTimestampPacketAllocator(const RootDeviceIndicesContainer &rootDeviceIndices, MemoryManager *memoryManager,
|
||||
size_t initialTagCount, CommandStreamReceiverType csrType, DeviceBitfield deviceBitfield) const {
|
||||
uint32_t initialTagCount, CommandStreamReceiverType csrType, DeviceBitfield deviceBitfield) const {
|
||||
bool doNotReleaseNodes = (csrType > CommandStreamReceiverType::hardware) ||
|
||||
debugManager.flags.DisableTimestampPacketOptimizations.get();
|
||||
|
||||
|
||||
@@ -29,7 +29,7 @@ class DeviceAllocNodeType {
|
||||
public:
|
||||
using ValueT = uint64_t;
|
||||
|
||||
static constexpr size_t defaultAllocatorTagCount = 128;
|
||||
static constexpr uint32_t defaultAllocatorTagCount = 128;
|
||||
|
||||
static constexpr AllocationType getAllocationType() { return deviceAlloc ? NEO::AllocationType::gpuTimestampDeviceBuffer : NEO::AllocationType::timestampPacketTagBuffer; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user