mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 11:08:03 +02:00
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:
parent
6d1daf51c9
commit
14399da3c6
1 changed files with 1 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue