Provide Vulkan version to Monado
This commit is contained in:
@@ -715,6 +715,7 @@ compositor::compositor(wivrn_session & session) :
|
|||||||
log_level);
|
log_level);
|
||||||
vk::detail::resultCheck(vk::Result(res), "vk_init_from_given");
|
vk::detail::resultCheck(vk::Result(res), "vk_init_from_given");
|
||||||
|
|
||||||
|
c_base->vk.version = vk_bundle::api_version;
|
||||||
// vk_init_from_given can't enable calibrated timestamps; do it here.
|
// vk_init_from_given can't enable calibrated timestamps; do it here.
|
||||||
#ifdef VK_EXT_calibrated_timestamps
|
#ifdef VK_EXT_calibrated_timestamps
|
||||||
c_base->vk.has_EXT_calibrated_timestamps = vk.has_device_ext(VK_EXT_CALIBRATED_TIMESTAMPS_EXTENSION_NAME);
|
c_base->vk.has_EXT_calibrated_timestamps = vk.has_device_ext(VK_EXT_CALIBRATED_TIMESTAMPS_EXTENSION_NAME);
|
||||||
|
|||||||
@@ -144,7 +144,7 @@ wivrn::vk_bundle::vk_bundle() :
|
|||||||
vk::ApplicationInfo app_info{
|
vk::ApplicationInfo app_info{
|
||||||
.pApplicationName = "WiVRn server",
|
.pApplicationName = "WiVRn server",
|
||||||
.pEngineName = "WiVRn",
|
.pEngineName = "WiVRn",
|
||||||
.apiVersion = VK_API_VERSION_1_3,
|
.apiVersion = api_version,
|
||||||
};
|
};
|
||||||
{
|
{
|
||||||
// Required extensions
|
// Required extensions
|
||||||
|
|||||||
@@ -22,7 +22,6 @@
|
|||||||
#include "vk/vk_allocator.h"
|
#include "vk/vk_allocator.h"
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
#include <inplace_vector.hpp>
|
#include <inplace_vector.hpp>
|
||||||
#include <mutex>
|
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
#include <type_traits>
|
#include <type_traits>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
@@ -63,6 +62,7 @@ uint64_t vk_handle(const T & handle)
|
|||||||
|
|
||||||
struct vk_bundle
|
struct vk_bundle
|
||||||
{
|
{
|
||||||
|
static const uint32_t api_version = VK_API_VERSION_1_3;
|
||||||
// Lockable that can be redirected to a pthread_mutex_t owned by monado,
|
// Lockable that can be redirected to a pthread_mutex_t owned by monado,
|
||||||
// so that all VkQueue submitters take the same lock.
|
// so that all VkQueue submitters take the same lock.
|
||||||
class queue_mutex
|
class queue_mutex
|
||||||
|
|||||||
Reference in New Issue
Block a user