Skip to content

Commit 925057b

Browse files
committed
Link command pool fallback symbols strongly
1 parent 3fd12b1 commit 925057b

1 file changed

Lines changed: 3 additions & 9 deletions

File tree

tests/wasm/src/lavapipe_runtime_smoke.c

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,28 +9,22 @@
99
#include "webvulkan/webvulkan_shader_runtime_registry.h"
1010

1111
VKAPI_ATTR PFN_vkVoidFunction VKAPI_CALL vk_icdGetInstanceProcAddr(VkInstance instance, const char* pName);
12-
#if defined(__GNUC__) || defined(__clang__)
13-
#define WEBVULKAN_WEAK_SYMBOL __attribute__((weak))
14-
#else
15-
#define WEBVULKAN_WEAK_SYMBOL
16-
#endif
1712
VKAPI_ATTR VkResult VKAPI_CALL vk_common_CreateCommandPool(
1813
VkDevice device,
1914
const VkCommandPoolCreateInfo* pCreateInfo,
2015
const VkAllocationCallbacks* pAllocator,
2116
VkCommandPool* pCommandPool
22-
) WEBVULKAN_WEAK_SYMBOL;
17+
);
2318
VKAPI_ATTR void VKAPI_CALL vk_common_DestroyCommandPool(
2419
VkDevice device,
2520
VkCommandPool commandPool,
2621
const VkAllocationCallbacks* pAllocator
27-
) WEBVULKAN_WEAK_SYMBOL;
22+
);
2823
VKAPI_ATTR VkResult VKAPI_CALL vk_common_AllocateCommandBuffers(
2924
VkDevice device,
3025
const VkCommandBufferAllocateInfo* pAllocateInfo,
3126
VkCommandBuffer* pCommandBuffers
32-
) WEBVULKAN_WEAK_SYMBOL;
33-
#undef WEBVULKAN_WEAK_SYMBOL
27+
);
3428
static double g_last_dispatch_wall_ms = -1.0;
3529
static const uint32_t kSmokeBufferWordCount = 65536u;
3630

0 commit comments

Comments
 (0)