Fix 4GB and larger system memory allocations

Intermediate size was stored in a 32-bit variable. This resulted in
4GB allocations to fail in KFD due to 0 size. Larger allocations
would allocate the wrong amount of memory.

Change-Id: If19dedf64952f1d2edd813793241e12c0362d220
This commit is contained in:
Felix Kuehling authored and Gerrit Code Review committed 2016-04-11 11:17:06 -04:00
1 vanhempi 31861c838e
commit 82b3fad320
1 file changed
+1 -1
+1 -1
Näytä tiedosto
@@ -811,7 +811,7 @@ static void* fmm_allocate_host_gpu(uint64_t MemorySizeInBytes,
manageble_aperture_t *aperture;
uint64_t mmap_offset;
uint32_t ioc_flags;
uint32_t size;
uint64_t size;
int32_t i;
uint32_t gpu_id;