mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 06:49:52 +08:00
Fix GMM usage in 1D image allocation on windows
Properly use the gmm resource created for the Image allocation instead of the gmm resource created in allocateGraphicsMemoryWithAlignment in the windows wddm memory manager by removing the call to allocateGraphicsMemoryWithAlignment for 1D images. Invalid ULT testing this functionality has been removed. Related-To: LOCI-1845 Signed-off-by: Spruit, Neil R <neil.r.spruit@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
184ec7d07d
commit
464e4fd1b1
@@ -69,10 +69,6 @@ GraphicsAllocation *WddmMemoryManager::allocateShareableMemory(const AllocationD
|
||||
}
|
||||
|
||||
GraphicsAllocation *WddmMemoryManager::allocateGraphicsMemoryForImageImpl(const AllocationData &allocationData, std::unique_ptr<Gmm> gmm) {
|
||||
if (allocationData.imgInfo->linearStorage && allocationData.imgInfo->mipCount == 0) {
|
||||
return allocateGraphicsMemoryWithAlignment(allocationData);
|
||||
}
|
||||
|
||||
auto allocation = std::make_unique<WddmAllocation>(allocationData.rootDeviceIndex,
|
||||
1u, // numGmms
|
||||
allocationData.type, nullptr, allocationData.imgInfo->size,
|
||||
|
||||
Reference in New Issue
Block a user