Mapping public VRAM BO to cpu

Change-Id: I2ff62ff0784f8ce556ad80739a177b90d866f1b4
Signed-off-by: Ben Goz <ben.goz@amd.com>
This commit is contained in:
Ben Goz
2016-02-17 17:52:25 +02:00
parent 7a383f9d88
commit 3f02a3cf0b
3 changed files with 29 additions and 11 deletions
+1 -1
View File
@@ -142,7 +142,7 @@ hsaKmtAllocMemory(
}
if (gpu_id && MemFlags.ui32.NonPaged && !MemFlags.ui32.Scratch) {
*MemoryAddress = fmm_allocate_device(gpu_id, SizeInBytes);
*MemoryAddress = fmm_allocate_device(gpu_id, SizeInBytes, MemFlags);
if (*MemoryAddress == NULL)
return HSAKMT_STATUS_NO_MEMORY;