SWDEV-413997 - Changes to use GlobalContext in views.
Change-Id: I1f8411eae9ed49632667e244a25f223fed92c720
[ROCm/clr commit: 0e1a0572e6]
Tá an tiomantas seo le fáil i:
tiomanta ag
Karthik Jayaprakash
tuismitheoir
fd08a5b6e3
tiomantas
154a113a88
@@ -409,8 +409,7 @@ amd::Memory* Device::CreateVirtualBuffer(amd::Context& device_context, void* vpt
|
||||
constexpr bool kSkipAlloc = false;
|
||||
|
||||
if (parent) {
|
||||
vaddr_base_obj = new (device_context) amd::Buffer(device_context, CL_MEM_VA_RANGE_AMD, size,
|
||||
vptr);
|
||||
vaddr_base_obj = new (GlbCtx()) amd::Buffer(GlbCtx(), CL_MEM_VA_RANGE_AMD, size, vptr);
|
||||
if (vaddr_base_obj == nullptr) {
|
||||
LogError("failed to new a va range curr_mem_obj object!");
|
||||
return nullptr;
|
||||
|
||||
Tagairt in Eagrán Nua
Cuir bac ar úsáideoir