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:
Erik Faye-Lund 2023-02-17 16:29:58 +01:00 committed by Marge Bot
parent 6242fe3923
commit e02cdb397e
7 changed files with 16 additions and 6 deletions

View file

@ -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"

View file

@ -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"

View file

@ -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;

View file

@ -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)
{

View file

@ -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;

View file

@ -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

View file

@ -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"