mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-29 14:30:10 +01:00
radv: Add support for VK_KHR_driver_properties.
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:
parent
e27902a261
commit
9d40ec2cf6
2 changed files with 25 additions and 0 deletions
|
|
@ -43,6 +43,7 @@
|
|||
#include "ac_llvm_util.h"
|
||||
#include "vk_format.h"
|
||||
#include "sid.h"
|
||||
#include "git_sha1.h"
|
||||
#include "gfx9d.h"
|
||||
#include "addrlib/gfx9/chip/gfx9_enum.h"
|
||||
#include "util/build_id.h"
|
||||
|
|
@ -1207,6 +1208,29 @@ void radv_GetPhysicalDeviceProperties2(
|
|||
properties->pciFunction = pdevice->bus_info.func;
|
||||
break;
|
||||
}
|
||||
case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DRIVER_PROPERTIES_KHR: {
|
||||
VkPhysicalDeviceDriverPropertiesKHR *driver_props =
|
||||
(VkPhysicalDeviceDriverPropertiesKHR *) ext;
|
||||
|
||||
driver_props->driverID = VK_DRIVER_ID_MESA_RADV_KHR;
|
||||
memset(driver_props->driverName, 0, VK_MAX_DRIVER_NAME_SIZE_KHR);
|
||||
strcpy(driver_props->driverName, "radv");
|
||||
|
||||
memset(driver_props->driverInfo, 0, VK_MAX_DRIVER_INFO_SIZE_KHR);
|
||||
snprintf(driver_props->driverInfo, VK_MAX_DRIVER_INFO_SIZE_KHR,
|
||||
"Mesa " PACKAGE_VERSION " (" MESA_GIT_SHA1 ")"
|
||||
" (LLVM %d.%d.%d)",
|
||||
(HAVE_LLVM >> 8) & 0xff, HAVE_LLVM & 0xff,
|
||||
MESA_LLVM_VERSION_PATCH);
|
||||
|
||||
driver_props->conformanceVersion = (VkConformanceVersionKHR) {
|
||||
.major = 1,
|
||||
.minor = 1,
|
||||
.subminor = 2,
|
||||
.patch = 0,
|
||||
};
|
||||
break;
|
||||
}
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -59,6 +59,7 @@ EXTENSIONS = [
|
|||
Extension('VK_KHR_device_group', 1, True),
|
||||
Extension('VK_KHR_device_group_creation', 1, True),
|
||||
Extension('VK_KHR_draw_indirect_count', 1, True),
|
||||
Extension('VK_KHR_driver_properties', 1, True),
|
||||
Extension('VK_KHR_external_fence', 1, 'device->rad_info.has_syncobj_wait_for_submit'),
|
||||
Extension('VK_KHR_external_fence_capabilities', 1, True),
|
||||
Extension('VK_KHR_external_fence_fd', 1, 'device->rad_info.has_syncobj_wait_for_submit'),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue