mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-21 01:04:57 +08:00
Add improvements to heap estimation in level zero command lists
- add estimation parameter for interface descriptor data count - add to the heap estimation alignment parameter for dynamic and surface heaps - extend encode interface and implementations to allow child heaps Related-To: NEO-5055 Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
5a833e2c08
commit
7e0401d280
@@ -119,7 +119,7 @@ class CommandContainer : public NonCopyableOrMovableClass {
|
||||
bool immediateCmdListSharedHeap(HeapType heapType) {
|
||||
return (heapSharingEnabled && (heapType == HeapType::DYNAMIC_STATE || heapType == HeapType::SURFACE_STATE));
|
||||
}
|
||||
void ensureHeapSizePrepared(size_t sshRequiredSize, size_t dshRequiredSize, bool getDsh);
|
||||
void ensureHeapSizePrepared(size_t sshRequiredSize, size_t sshDefaultAlignment, size_t dshRequiredSize, size_t dshDefaultAlignment, bool getDsh);
|
||||
|
||||
GraphicsAllocation *reuseExistingCmdBuffer();
|
||||
GraphicsAllocation *allocateCommandBuffer();
|
||||
@@ -141,6 +141,7 @@ class CommandContainer : public NonCopyableOrMovableClass {
|
||||
size_t getTotalCmdBufferSize();
|
||||
IndirectHeap *getHeapWithRequiredSize(HeapType heapType, size_t sizeRequired, size_t alignment, bool allowGrow);
|
||||
void createAndAssignNewHeap(HeapType heapType, size_t size);
|
||||
IndirectHeap *getCsrAlignedSize(HeapType heapType, size_t size, size_t alignment);
|
||||
GraphicsAllocation *allocationIndirectHeaps[HeapType::NUM_TYPES] = {};
|
||||
std::unique_ptr<IndirectHeap> indirectHeaps[HeapType::NUM_TYPES];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user