mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-16 14:08:07 +02:00
* DXVK lacks the problematic rgba4 formats. It can use opaque black. * lots of games dont use custom colours. Skip the emulation. Not a general solution but speeds up a few things, and buys me some time. Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31532>
28 lines
611 B
C
28 lines
611 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 workaround_rgba4;
|
|
bool no_border;
|
|
};
|
|
|
|
VK_DEFINE_HANDLE_CASTS(hk_instance, vk.base, VkInstance,
|
|
VK_OBJECT_TYPE_INSTANCE)
|