aboutsummaryrefslogtreecommitdiffstats
path: root/src/freedreno/vulkan/tu_device.c
diff options
context:
space:
mode:
authorKristian H. Kristensen <[email protected]>2020-04-07 08:45:03 -0700
committerMarge Bot <[email protected]>2020-04-07 18:44:21 +0000
commite99f6f2ea14ce4c3c0d69250b818ea0ab58ce02b (patch)
tree3697662e62b4e944c858005ef5aaebebbcbdc4eb /src/freedreno/vulkan/tu_device.c
parent80c13a81b160f73f706bba4315461d77760ced76 (diff)
turnip: Add missing VKAPI_ATTR annotations
Make sure the types match. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4478>
Diffstat (limited to 'src/freedreno/vulkan/tu_device.c')
-rw-r--r--src/freedreno/vulkan/tu_device.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/freedreno/vulkan/tu_device.c b/src/freedreno/vulkan/tu_device.c
index c96c793e617..67269457f08 100644
--- a/src/freedreno/vulkan/tu_device.c
+++ b/src/freedreno/vulkan/tu_device.c
@@ -338,7 +338,7 @@ tu_physical_device_finish(struct tu_physical_device *device)
close(device->master_fd);
}
-static void *
+static VKAPI_ATTR void *
default_alloc_func(void *pUserData,
size_t size,
size_t align,
@@ -347,7 +347,7 @@ default_alloc_func(void *pUserData,
return malloc(size);
}
-static void *
+static VKAPI_ATTR void *
default_realloc_func(void *pUserData,
void *pOriginal,
size_t size,
@@ -357,7 +357,7 @@ default_realloc_func(void *pUserData,
return realloc(pOriginal, size);
}
-static void
+static VKAPI_ATTR void
default_free_func(void *pUserData, void *pMemory)
{
free(pMemory);