mesa/src/asahi/vulkan/hk_instance.h
Alyssa Rosenzweig 7f2a6cdd26 hk: only enable image view min LOD for dx12
I don't really want random Vulkan apps using this. fixes Steam shading
precaching via fossilize.

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36399>
2025-08-03 14:40:53 -04:00

29 lines
634 B
C

/*
* Copyright 2024 Valve Corporation
* Copyright 2024 Alyssa Rosenzweig
* Copyright 2022-2023 Collabora Ltd. and Red Hat Inc.
* SPDX-License-Identifier: MIT
*/
#pragma once
#include "util/xmlconfig.h"
#include "hk_private.h"
#include "vk_instance.h"
struct hk_instance {
struct vk_instance vk;
struct driOptionCache dri_options;
struct driOptionCache available_dri_options;
uint8_t driver_build_sha[20];
uint32_t force_vk_vendor;
bool no_border;
bool fake_minmax;
bool image_view_min_lod;
};
VK_DEFINE_HANDLE_CASTS(hk_instance, vk.base, VkInstance,
VK_OBJECT_TYPE_INSTANCE)