mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 05:08:08 +02:00
radv: fix defining RADV_USE_WSI_PLATFORM
RADV_USE_WSI_PLATFORM was unused in radv_CreateImage().
Fixes: 2a5d7f4926 ("radv: fix missing implementation of creating images from swapchains")
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21763>
This commit is contained in:
parent
a6dcd62f44
commit
c87c34bbba
2 changed files with 5 additions and 5 deletions
|
|
@ -440,11 +440,6 @@ radv_NV_device_generated_commands_enabled(const struct radv_physical_device *dev
|
|||
driQueryOptionb(&device->instance->dri_options, "radv_dgc");
|
||||
}
|
||||
|
||||
#if defined(VK_USE_PLATFORM_WAYLAND_KHR) || defined(VK_USE_PLATFORM_XCB_KHR) || \
|
||||
defined(VK_USE_PLATFORM_XLIB_KHR) || defined(VK_USE_PLATFORM_DISPLAY_KHR)
|
||||
#define RADV_USE_WSI_PLATFORM
|
||||
#endif
|
||||
|
||||
#ifdef ANDROID
|
||||
#define RADV_API_VERSION VK_MAKE_VERSION(1, 1, VK_HEADER_VERSION)
|
||||
#else
|
||||
|
|
|
|||
|
|
@ -122,6 +122,11 @@ extern "C"
|
|||
#define RADV_SUPPORT_ANDROID_HARDWARE_BUFFER 0
|
||||
#endif
|
||||
|
||||
#if defined(VK_USE_PLATFORM_WAYLAND_KHR) || defined(VK_USE_PLATFORM_XCB_KHR) || \
|
||||
defined(VK_USE_PLATFORM_XLIB_KHR) || defined(VK_USE_PLATFORM_DISPLAY_KHR)
|
||||
#define RADV_USE_WSI_PLATFORM
|
||||
#endif
|
||||
|
||||
#ifdef _WIN32
|
||||
#define RADV_SUPPORT_CALIBRATED_TIMESTAMPS 0
|
||||
#else
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue