SWDEV-381633 - Use blit manager on app's queue
Heap initialization used device queue, but it shoudl be used for cooperative launches only. Heap initialization must use the same queue as the current dispatch. Change-Id: I856621bf82bbdeb1c2d0fbc4970e90d09af805cb
This commit is contained in:
@@ -2356,8 +2356,8 @@ void Device::ReleaseExclusiveGpuAccess(VirtualGPU& vgpu) const {
|
||||
}
|
||||
|
||||
// ================================================================================================
|
||||
void Device::HiddenHeapAlloc() {
|
||||
auto HeapAlloc = [this]() -> bool {
|
||||
void Device::HiddenHeapAlloc(const VirtualGPU& gpu) {
|
||||
auto HeapAlloc = [this, &gpu]() -> bool {
|
||||
// Allocate initial heap for device memory allocator
|
||||
static constexpr size_t HeapBufferSize = 128 * Ki;
|
||||
heap_buffer_ = createMemory(HeapBufferSize);
|
||||
@@ -2369,7 +2369,7 @@ void Device::HiddenHeapAlloc() {
|
||||
LogError("Heap buffer allocation failed!");
|
||||
return false;
|
||||
}
|
||||
bool result = static_cast<const KernelBlitManager&>(xferMgr()).initHeap(
|
||||
bool result = static_cast<const KernelBlitManager&>(gpu.blitMgr()).initHeap(
|
||||
heap_buffer_, initial_heap_buffer_, HeapBufferSize, initial_heap_size_ / (2 * Mi));
|
||||
|
||||
return result;
|
||||
|
||||
Reference in New Issue
Block a user