android: radv: fix building error in radv_android.c

Fixes the following building error:

external/mesa/src/amd/vulkan/radv_android.c:752:77: error: too few arguments to function call, expected 4, have 3
                VkResult result = radv_image_create_layout(device, create_info, mem->image);
                                  ~~~~~~~~~~~~~~~~~~~~~~~~                                ^
external/mesa/src/amd/vulkan/radv_private.h:2175:1: note: 'radv_image_create_layout' declared here
VkResult
^
1 error generated.

Fixes: 7f7da82dbb ("radv: Add image layout with drm format modifiers.")
Signed-off-by: Mauro Rossi <issor.oruam@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8899>
This commit is contained in:
Mauro Rossi 2021-02-05 21:55:57 +01:00
parent ecdef27117
commit b45c8a8671
1 changed files with 1 additions and 1 deletions

View File

@ -749,7 +749,7 @@ radv_import_ahb_memory(struct radv_device *device,
.bo_metadata = &metadata
};
VkResult result = radv_image_create_layout(device, create_info, mem->image);
VkResult result = radv_image_create_layout(device, create_info, NULL, mem->image);
if (result != VK_SUCCESS) {
device->ws->buffer_destroy(mem->bo);
mem->bo = NULL;