mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-25 13:33:02 +08:00
performance: Disable force pin for ULLS light
Related-To: NEO-13922 Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
1a996d666a
commit
7cb7229c1c
@@ -1775,6 +1775,10 @@ void DrmMemoryManager::drainGemCloseWorker() const {
|
||||
}
|
||||
}
|
||||
|
||||
void DrmMemoryManager::disableForcePin() {
|
||||
this->forcePinEnabled = false;
|
||||
}
|
||||
|
||||
bool DrmMemoryManager::copyMemoryToAllocation(GraphicsAllocation *graphicsAllocation, size_t destinationOffset, const void *memoryToCopy, size_t sizeToCopy) {
|
||||
if (graphicsAllocation->getUnderlyingBuffer() && (graphicsAllocation->storageInfo.getNumBanks() == 1 || GraphicsAllocation::isDebugSurfaceAllocationType(graphicsAllocation->getAllocationType()))) {
|
||||
return MemoryManager::copyMemoryToAllocation(graphicsAllocation, destinationOffset, memoryToCopy, sizeToCopy);
|
||||
|
||||
@@ -130,6 +130,7 @@ class DrmMemoryManager : public MemoryManager {
|
||||
size_t getUserptrAlignment();
|
||||
|
||||
void drainGemCloseWorker() const override;
|
||||
void disableForcePin();
|
||||
|
||||
decltype(&mmap) mmapFunction = mmap;
|
||||
decltype(&munmap) munmapFunction = munmap;
|
||||
|
||||
Reference in New Issue
Block a user