SWDEV-309657 - Align Virtual queue size to sizeof(uint64_t).

Change-Id: Ia55d7316693bd13938875ce53f7849d5eb658e8c
Bu işleme şunda yer alıyor:
kjayapra-amd authored and Karthik Jayaprakash committed 2021-11-12 10:35:36 -05:00
1 ebeveyn 777c91a539
işleme 7e32d6d909
1 file changed
+3
+3
Dosyayı Görüntüle
@@ -2582,6 +2582,9 @@ bool VirtualGPU::createVirtualQueue(uint deviceQueueSize)
// Add mask array for AmdAqlWrap slots
allocSize += amd::alignUp(numSlots, DeviceQueueMaskSize) / 8;
// Make sure the allocation size aligns with DWORD.
allocSize = amd::alignUp(allocSize, sizeof(uint64_t));
// CL_MEM_ALLOC_HOST_PTR/CL_MEM_READ_WRITE
virtualQueue_ = new (dev().context()) amd::Buffer(dev().context(), CL_MEM_READ_WRITE, allocSize);