radv: factor out radv_alloc_memory
authorAndres Rodriguez <andresx7@gmail.com>
Fri, 20 Oct 2017 22:42:12 +0000 (18:42 -0400)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Fri, 20 Oct 2017 23:15:49 +0000 (01:15 +0200)
commiteff2bdbd8272ceec723dcc1643dd3d5f77020d1f
tree8f3511478c858ac922ccb37a2f21ab5f5cf90f5b
parent92724338ba2db433f99f4017a18d2ee4f6601d6c
radv: factor out radv_alloc_memory

This allows us to pass extra parameters to the memory allocation
operation that are not defined in the vulkan spec. This is useful for
internal usage.

Signed-off-by: Andres Rodriguez <andresx7@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/radv_device.c
src/amd/vulkan/radv_private.h