Monado OpenXR Runtime
comp_window_direct.c File Reference

Common direct mode window code. More...

#include "comp_window_direct.h"
#include "util/u_misc.h"
Include dependency graph for comp_window_direct.c:

Functions

static struct vk_bundleget_vk (struct comp_target_swapchain *cts)
 
static int choose_best_vk_mode_auto (struct comp_target *ct, VkDisplayModePropertiesKHR *mode_properties, int mode_count)
 
static void print_modes (struct comp_target *ct, VkDisplayModePropertiesKHR *mode_properties, int mode_count)
 
static VkDisplayModeKHR get_primary_display_mode (struct comp_target_swapchain *cts, VkDisplayKHR display, uint32_t *out_width, uint32_t *out_height)
 
static VkDisplayPlaneAlphaFlagBitsKHR choose_alpha_mode (VkDisplayPlaneAlphaFlagsKHR flags)
 
VkResult comp_window_direct_create_surface (struct comp_target_swapchain *cts, VkDisplayKHR display, uint32_t width, uint32_t height)
 
int comp_window_direct_connect (struct comp_target_swapchain *cts, Display **dpy)
 
VkResult comp_window_direct_acquire_xlib_display (struct comp_target_swapchain *cts, Display *dpy, VkDisplayKHR display)
 
bool comp_window_direct_init_swapchain (struct comp_target_swapchain *cts, Display *dpy, VkDisplayKHR display, uint32_t width, uint32_t height)
 

Detailed Description

Function Documentation

◆ comp_window_direct_create_surface()

VkResult comp_window_direct_create_surface ( struct comp_target_swapchain cts,
VkDisplayKHR  display,
uint32_t  width,
uint32_t  height 
)
Todo:
actually select the plane.