Do not set gfx base if using STANDARD heap.

Change-Id: Ic7615f2304d53c824afc3c4d3567e5c7bbe9f9b3
Signed-off-by: Mrozek, Michal <michal.mrozek@intel.com>
This commit is contained in:
Mrozek, Michal
2019-08-09 12:36:20 +02:00
parent 26774a21e7
commit 874ae355f7
2 changed files with 3 additions and 5 deletions

View File

@@ -433,8 +433,6 @@ GraphicsAllocation *DrmMemoryManager::createGraphicsAllocationFromSharedHandle(o
if (requireSpecificBitness && this->force32bitAllocations) {
drmAllocation->set32BitAllocation(true);
drmAllocation->setGpuBaseAddress(GmmHelper::canonize(getExternalHeapBaseAddress()));
} else {
drmAllocation->setGpuBaseAddress(GmmHelper::canonize(gfxPartition->getHeapBase(HeapIndex::HEAP_STANDARD)));
}
if (properties.imgInfo) {