panvk: move macro-definition to header

This define is used in panvk_physical_device.c as well, so it needs to
be visible there.

Fixes: ac34183ec3 ("panvk: Move the VkPhysicalDevice logic to panvk_physical_device.{c,h}")
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29751>
(cherry picked from commit 9336190868)
This commit is contained in:
Erik Faye-Lund 2024-06-17 14:41:13 +02:00 committed by Eric Engestrom
parent 06778bffbd
commit dc7d0d6a58
3 changed files with 5 additions and 5 deletions

View file

@ -854,7 +854,7 @@
"description": "panvk: move macro-definition to header",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "ac34183ec3df1435481f345d87f06ee949ed43c7",
"notes": null

View file

@ -35,10 +35,6 @@ static const struct debug_control panvk_debug_options[] = {
{"no_known_warn", PANVK_DEBUG_NO_KNOWN_WARN},
{NULL, 0}};
#if defined(VK_USE_PLATFORM_WAYLAND_KHR)
#define PANVK_USE_WSI_PLATFORM
#endif
VKAPI_ATTR VkResult VKAPI_CALL
panvk_EnumerateInstanceVersion(uint32_t *pApiVersion)
{

View file

@ -23,6 +23,10 @@ enum panvk_debug_flags {
PANVK_DEBUG_NO_KNOWN_WARN = 1 << 7,
};
#if defined(VK_USE_PLATFORM_WAYLAND_KHR)
#define PANVK_USE_WSI_PLATFORM
#endif
struct panvk_instance {
struct vk_instance vk;