Files
test2/source/blender/gpu/vulkan/vk_ghost_api.hh
Jeroen Bakker 108a0f2ec0 Vulkan: Share driver check between GPU and GHOST
GPU and GHOST require to have identical checks to remove faulty drivers.
When not done GHOST can still select a device that isn't supported and
lead to freezing interfaces.

Pull Request: https://projects.blender.org/blender/blender/pulls/131241
2024-12-02 14:50:32 +01:00

31 lines
917 B
C++

/* SPDX-FileCopyrightText: 2022 Blender Authors
*
* SPDX-License-Identifier: GPL-2.0-or-later */
/** \file
* \ingroup gpu
*/
#pragma once
/** This file contains API that the GHOST_ContextVK can invoke directly. */
namespace blender::gpu {
/**
* Is the driver of the given physical device supported?
*
* There are some drivers that have known issues and should not be used. This check needs to be
* identical between GPU module and GHOST, otherwise GHOST can still select a device which isn't
* supported.
*
* For example on a Linux machine where llvmpipe is installed and an not supported NVIDIA driver
* Blender would detect a supported configuration using llvmpipe, but GHOST could still select the
* unsupported NVIDIA driver.
*
* Returns true when supported, false when not supported.
*/
bool GPU_vulkan_is_supported_driver(VkPhysicalDevice vk_physical_device);
} // namespace blender::gpu