SWDEV-270013 - Allocate kernel_arguments from kern_arg & finegrain pool instead of coarse grain.
Change-Id: Id4c6977934fdd6ef2311f6e75593801f1e51983c
Bu işleme şunda yer alıyor:
1 ebeveyn
0f14c54c04
işleme
2df099df9e
11 files changed
+54
-22
No files matched your search
@@ -284,7 +284,9 @@ int Context::create(const intptr_t* properties) {
|
||||
|
||||
void* Context::hostAlloc(size_t size, size_t alignment, bool atomics) const {
|
||||
if (customHostAllocDevice_ != NULL) {
|
||||
return customHostAllocDevice_->hostAlloc(size, alignment, atomics);
|
||||
return customHostAllocDevice_->hostAlloc(size, alignment, atomics
|
||||
? Device::MemorySegment::kAtomics
|
||||
: Device::MemorySegment::kNoAtomics);
|
||||
}
|
||||
return AlignedMemory::allocate(size, alignment);
|
||||
}
|
||||
|
||||
Reference in new issue
Bir kullanıcı engelle