mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-04 07:14:10 +08:00
Revert "Make small buffer allocations lockable"
This reverts commit 9b9b0f10ef.
Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
e87865b416
commit
074a1e8583
@@ -35,7 +35,7 @@ StorageInfo MemoryManager::createStorageInfoFromProperties(const AllocationPrope
|
||||
|
||||
StorageInfo storageInfo{preferredTile, allTilesValue};
|
||||
storageInfo.subDeviceBitfield = properties.subDevicesBitfield;
|
||||
storageInfo.isLockable = GraphicsAllocation::isLockable(properties.allocationType) || GraphicsAllocation::isSmallBuffer(properties.allocationType, properties.size);
|
||||
storageInfo.isLockable = GraphicsAllocation::isLockable(properties.allocationType);
|
||||
storageInfo.cpuVisibleSegment = GraphicsAllocation::isCpuAccessRequired(properties.allocationType);
|
||||
|
||||
AppResourceHelper::copyResourceTagStr(storageInfo.resourceTag, properties.allocationType,
|
||||
|
||||
@@ -56,8 +56,6 @@ class GraphicsAllocation : public IDNode<GraphicsAllocation> {
|
||||
GPU
|
||||
};
|
||||
|
||||
static constexpr auto largestLockableBufferSize = 64 * KB;
|
||||
|
||||
~GraphicsAllocation() override;
|
||||
GraphicsAllocation &operator=(const GraphicsAllocation &) = delete;
|
||||
GraphicsAllocation(const GraphicsAllocation &) = delete;
|
||||
@@ -213,10 +211,6 @@ class GraphicsAllocation : public IDNode<GraphicsAllocation> {
|
||||
type == AllocationType::DEBUG_MODULE_AREA;
|
||||
}
|
||||
|
||||
static bool isSmallBuffer(AllocationType type, size_t size) {
|
||||
return type == AllocationType::BUFFER && size <= largestLockableBufferSize;
|
||||
}
|
||||
|
||||
static bool isDebugSurfaceAllocationType(AllocationType type) {
|
||||
return type == AllocationType::DEBUG_CONTEXT_SAVE_AREA ||
|
||||
type == AllocationType::DEBUG_SBA_TRACKING_BUFFER;
|
||||
|
||||
Reference in New Issue
Block a user