mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 13:48:06 +02:00
v3dv: implement vkGetBufferMemoryRequirements
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6766>
This commit is contained in:
parent
b478e8c53c
commit
5ee155043d
1 changed files with 13 additions and 0 deletions
|
|
@ -1300,6 +1300,19 @@ v3dv_BindImageMemory(VkDevice _device,
|
|||
return VK_SUCCESS;
|
||||
}
|
||||
|
||||
void
|
||||
v3dv_GetBufferMemoryRequirements(VkDevice _device,
|
||||
VkBuffer _buffer,
|
||||
VkMemoryRequirements* pMemoryRequirements)
|
||||
{
|
||||
V3DV_FROM_HANDLE(v3dv_buffer, buffer, _buffer);
|
||||
|
||||
pMemoryRequirements->memoryTypeBits = 0x3; /* Both memory types */
|
||||
pMemoryRequirements->alignment = buffer->alignment;
|
||||
pMemoryRequirements->size =
|
||||
align64(buffer->size, pMemoryRequirements->alignment);
|
||||
}
|
||||
|
||||
VkResult
|
||||
v3dv_CreateBuffer(VkDevice _device,
|
||||
const VkBufferCreateInfo *pCreateInfo,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue