mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-12-15 08:03:30 -08:00
tests/shader_runner: Introduce a new tag system.
Mostly to be able to associate a version number to each tag and get rid of all the foo<1.2.3 tags. The new system also has fixed tag slots, rather than dealing with strings, so we don't have to manually adjust the size of the `tags' array. With the new system each tag can be present or not, and if it is present it can have an associated version number (of the form major.minor.patch). If the version is not available, it is set to 0.0.0. Each tag can be queried for existence and for comparison with the version number.
This commit is contained in:
committed by
Henri Verbeet
parent
41515b7047
commit
cd64aa69c8
Notes:
Henri Verbeet
2025-10-06 19:48:45 +02:00
Approved-by: Henri Verbeet (@hverbeet) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1768
@@ -449,17 +449,6 @@ static inline void get_vulkan_driver_version(const VkPhysicalDeviceProperties *d
|
||||
*patch = VK_VERSION_PATCH(version);
|
||||
}
|
||||
|
||||
static inline bool is_vulkan_driver_version_ge(const VkPhysicalDeviceProperties *device_properties,
|
||||
const VkPhysicalDeviceDriverPropertiesKHR *driver_properties,
|
||||
uint32_t major, uint32_t minor, uint32_t patch)
|
||||
{
|
||||
uint32_t driver_major, driver_minor, driver_patch;
|
||||
|
||||
get_vulkan_driver_version(device_properties, driver_properties, &driver_major, &driver_minor, &driver_patch);
|
||||
|
||||
return compare_versions(driver_major, driver_minor, driver_patch, major, minor, patch) >= 0;
|
||||
}
|
||||
|
||||
static inline bool is_mesa_vulkan_driver(const VkPhysicalDeviceDriverPropertiesKHR *properties)
|
||||
{
|
||||
switch (properties->driverID)
|
||||
|
||||
Reference in New Issue
Block a user