Enforce uncached memory on AllocatePCIeRW request
Change-Id: Ib5a624ab979220d50205448ef37b4550672fb97d
This commit is contained in:
gecommit door
David Yat Sin
bovenliggende
dbf8905dd1
commit
ed0a1be2c3
@@ -190,6 +190,7 @@ hsa_status_t MemoryRegion::AllocateImpl(size_t& size, AllocateFlags alloc_flags,
|
||||
|
||||
// Allocate pseudo fine grain memory
|
||||
kmt_alloc_flags.ui32.CoarseGrain = (alloc_flags & AllocatePCIeRW ? 0 : kmt_alloc_flags.ui32.CoarseGrain);
|
||||
kmt_alloc_flags.ui32.Uncached = (alloc_flags & AllocatePCIeRW ? 1 : kmt_alloc_flags.ui32.Uncached);
|
||||
|
||||
// Only allow using the suballocator for ordinary VRAM.
|
||||
if (IsLocalMemory()) {
|
||||
|
||||
Verwijs in nieuw issue
Block a user