mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-22 04:50:11 +01:00
zink: prefer vulkan_core.h over vulkan.h
There's just two places where we need any of the WSI specific vulkan includes, the rest of Zink should do just fine with vulkan_core.h. So let's include the win32-specific header explicitly in those two places, and reduce the need for WSI specifics inside zink itself. Kopper handles the rest of the WSI integration. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21441>
This commit is contained in:
parent
6242fe3923
commit
e02cdb397e
7 changed files with 16 additions and 6 deletions
|
|
@ -26,7 +26,7 @@
|
|||
|
||||
#include <stdlib.h>
|
||||
#include <stdint.h>
|
||||
#include <vulkan/vulkan.h>
|
||||
#include <vulkan/vulkan_core.h>
|
||||
|
||||
#include "compiler/nir/nir.h"
|
||||
#include "compiler/shader_enums.h"
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@
|
|||
#ifndef ZINK_BATCH_H
|
||||
#define ZINK_BATCH_H
|
||||
|
||||
#include <vulkan/vulkan.h>
|
||||
#include <vulkan/vulkan_core.h>
|
||||
#include "zink_types.h"
|
||||
|
||||
#include "util/list.h"
|
||||
|
|
|
|||
|
|
@ -347,7 +347,12 @@ header_code = """
|
|||
|
||||
#include "util/u_memory.h"
|
||||
|
||||
#include <vulkan/vulkan.h>
|
||||
#include <vulkan/vulkan_core.h>
|
||||
|
||||
#ifdef _WIN32
|
||||
#include <windows.h>
|
||||
#include <vulkan/vulkan_win32.h>
|
||||
#endif
|
||||
|
||||
struct zink_screen;
|
||||
|
||||
|
|
|
|||
|
|
@ -32,6 +32,11 @@
|
|||
#include "util/set.h"
|
||||
#include "util/u_memory.h"
|
||||
|
||||
#ifdef _WIN32
|
||||
#include <windows.h>
|
||||
#include <vulkan/vulkan_win32.h>
|
||||
#endif
|
||||
|
||||
static void
|
||||
destroy_fence(struct zink_screen *screen, struct zink_tc_fence *mfence)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@
|
|||
#include "util/format/u_format.h"
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <vulkan/vulkan.h>
|
||||
#include <vulkan/vulkan_core.h>
|
||||
|
||||
union pipe_color_union;
|
||||
|
||||
|
|
|
|||
|
|
@ -69,7 +69,7 @@ header_code = """
|
|||
|
||||
#include "os/os_process.h"
|
||||
|
||||
#include <vulkan/vulkan.h>
|
||||
#include <vulkan/vulkan_core.h>
|
||||
|
||||
#if defined(__APPLE__)
|
||||
// Source of MVK_VERSION
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@
|
|||
#ifndef ZINK_TYPES_H
|
||||
#define ZINK_TYPES_H
|
||||
|
||||
#include <vulkan/vulkan.h>
|
||||
#include <vulkan/vulkan_core.h>
|
||||
|
||||
#include "compiler/nir/nir.h"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue