SWDEV-508632 - Align address to 2 MBs for hidden heap allocation. (#29)
Tá an tiomantas seo le fáil i:
1 tuismitheoir
98f1db181c
tiomantas
b5c9cbc236
10 comhad athraithe
+33
-24
Níor tháinig aon chomhaid le do chuardach
@@ -2044,7 +2044,7 @@ device::Memory* Device::createMemory(amd::Memory& owner) const {
|
||||
}
|
||||
|
||||
// ================================================================================================
|
||||
device::Memory* Device::createMemory(size_t size) const {
|
||||
device::Memory* Device::createMemory(size_t size, size_t alignment) const {
|
||||
auto buffer = new roc::Buffer(*this, size);
|
||||
static constexpr bool LocalAlloc = true;
|
||||
if ((buffer == nullptr) || !buffer->create(LocalAlloc)) {
|
||||
|
||||
Tagairt in Eagrán Nua
Cuir bac ar úsáideoir