mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-25 13:33:02 +08:00
Move AllocationType enum out of GraphicsAllocation class
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
fd27098194
commit
4b0d986876
@@ -35,7 +35,7 @@ CommandContainer::~CommandContainer() {
|
||||
}
|
||||
}
|
||||
for (auto deallocation : deallocationContainer) {
|
||||
if (((deallocation->getAllocationType() == GraphicsAllocation::AllocationType::INTERNAL_HEAP) || (deallocation->getAllocationType() == GraphicsAllocation::AllocationType::LINEAR_STREAM))) {
|
||||
if (((deallocation->getAllocationType() == AllocationType::INTERNAL_HEAP) || (deallocation->getAllocationType() == AllocationType::LINEAR_STREAM))) {
|
||||
getHeapHelper()->storeHeapAllocation(deallocation);
|
||||
}
|
||||
}
|
||||
@@ -243,13 +243,13 @@ GraphicsAllocation *CommandContainer::obtainNextCommandBufferAllocation() {
|
||||
|
||||
GraphicsAllocation *cmdBufferAllocation = nullptr;
|
||||
if (this->reusableAllocationList) {
|
||||
cmdBufferAllocation = this->reusableAllocationList->detachAllocation(alignedSize, nullptr, nullptr, GraphicsAllocation::AllocationType::COMMAND_BUFFER).release();
|
||||
cmdBufferAllocation = this->reusableAllocationList->detachAllocation(alignedSize, nullptr, nullptr, AllocationType::COMMAND_BUFFER).release();
|
||||
}
|
||||
if (!cmdBufferAllocation) {
|
||||
AllocationProperties properties{device->getRootDeviceIndex(),
|
||||
true /* allocateMemory*/,
|
||||
alignedSize,
|
||||
GraphicsAllocation::AllocationType::COMMAND_BUFFER,
|
||||
AllocationType::COMMAND_BUFFER,
|
||||
(device->getNumGenericSubDevices() > 1u) /* multiOsContextCapable */,
|
||||
false,
|
||||
device->getDeviceBitfield()};
|
||||
|
||||
@@ -588,7 +588,7 @@ void EncodeSurfaceState<Family>::encodeExtraBufferParams(EncodeSurfaceStateArgs
|
||||
uint32_t compressionFormat = 0;
|
||||
|
||||
bool setConstCachePolicy = false;
|
||||
if (args.allocation && args.allocation->getAllocationType() == GraphicsAllocation::AllocationType::CONSTANT_SURFACE) {
|
||||
if (args.allocation && args.allocation->getAllocationType() == AllocationType::CONSTANT_SURFACE) {
|
||||
setConstCachePolicy = true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user