SWDEV-508632 - Align address to 2 MBs for hidden heap allocation. (#29)
[ROCm/clr commit: b5c9cbc236]
This commit is contained in:
committed by
GitHub
parent
29be7230eb
commit
b217d3a4e6
@@ -102,7 +102,8 @@ static void handlePayload(MessageHandler& messages, uint32_t service, uint64_t*
|
||||
}
|
||||
} else {
|
||||
amd::Context& ctx = dev.context();
|
||||
amd::Buffer* buf = new(ctx) amd::Buffer(ctx, CL_MEM_READ_WRITE, payload[1]);
|
||||
amd::Buffer* buf = new(ctx) amd::Buffer(ctx, CL_MEM_READ_WRITE, payload[1], NULL,
|
||||
(payload[1] == 2 * Mi) ? 2 * Mi : 0);
|
||||
uint64_t va = 0;
|
||||
if (buf) {
|
||||
if (buf->create()) {
|
||||
|
||||
Reference in New Issue
Block a user