Use 64KB pages for SVM allocations when 64KB pages are enabled

- clSVMAlloc allocates 64KB pages as memory storage for both
fine grain and coarse grain allocation

Change-Id: I2068ffb9f5577761f739df47b54bc382e971949c
This commit is contained in:
Hoppe, Mateusz
2017-12-28 11:25:43 +01:00
parent 2b91ea85c6
commit e8fb931ef1
5 changed files with 34 additions and 8 deletions

View File

@@ -69,7 +69,7 @@ void *SVMAllocsManager::createSVMAlloc(size_t size, bool coherent) {
return nullptr;
std::unique_lock<std::mutex> lock(mtx);
GraphicsAllocation *GA = memoryManager->allocateGraphicsMemoryForSVM(size, 4096, coherent);
GraphicsAllocation *GA = memoryManager->allocateGraphicsMemoryForSVM(size, coherent);
if (!GA) {
return nullptr;
}