diff options
Diffstat (limited to 'src/virtio/vulkan/vn_android.c')
-rw-r--r-- | src/virtio/vulkan/vn_android.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/virtio/vulkan/vn_android.c b/src/virtio/vulkan/vn_android.c index 8ddf4c9c068..b914966ca02 100644 --- a/src/virtio/vulkan/vn_android.c +++ b/src/virtio/vulkan/vn_android.c @@ -1181,7 +1181,8 @@ vn_android_fix_buffer_create_info( } VkResult -vn_android_init_ahb_buffer_memory_type_bits(struct vn_device *dev) +vn_android_get_ahb_buffer_memory_type_bits(struct vn_device *dev, + uint32_t *out_mem_type_bits) { const uint32_t format = AHARDWAREBUFFER_FORMAT_BLOB; /* ensure dma_buf_memory_type_bits covers host visible usage */ @@ -1213,7 +1214,7 @@ vn_android_init_ahb_buffer_memory_type_bits(struct vn_device *dev) if (result != VK_SUCCESS) return result; - dev->ahb_buffer_memory_type_bits = mem_type_bits; + *out_mem_type_bits = mem_type_bits; return VK_SUCCESS; } |