v3dv: Do not increase TFU READAHEAD for imported buffers size
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/13508
Fixes: 0bcb82048c ("v3dv: avoid TFU reading unmapped pages beyond the end of the buffers")
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36134>
This commit is contained in:
committed by
Marge Bot
parent
6d1daf51c9
commit
14399da3c6
@@ -2249,7 +2249,7 @@ v3dv_AllocateMemory(VkDevice _device,
|
||||
assert(fd_info->handleType == VK_EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_FD_BIT ||
|
||||
fd_info->handleType == VK_EXTERNAL_MEMORY_HANDLE_TYPE_DMA_BUF_BIT_EXT);
|
||||
result = device_import_bo(device, pAllocator,
|
||||
fd_info->fd, alloc_size, &mem->bo);
|
||||
fd_info->fd, pAllocateInfo->allocationSize, &mem->bo);
|
||||
if (result == VK_SUCCESS)
|
||||
close(fd_info->fd);
|
||||
} else if (mem->vk.ahardware_buffer) {
|
||||
|
||||
Reference in New Issue
Block a user