monado/src/xrt/state_trackers
Christoph Haag e48c748a57 xrt: suggest correct GPU in xrGetVulkanGraphicsDevice()
As before, on the service side the GPU index the compositor runs on can be selected with
* XRT_COMPOSITOR_FORCE_GPU_INDEX=INDEX1

By default xrGetVulkanGraphicsDevice() will suggest the same GPU the compositor runs on.

It is also possible to override the GPU index suggested to applications with
* XRT_COMPOSITOR_FORCE_CLIENT_GPU_INDEX=INDEX2

The reason this is both done on the service side is that if compositor and client run
on different GPUs, the swapchains use linear tiling instead of optimal tiling.

To make chosen GPUs comparable across the compositor's and the client's vulkan instance,
VkPhysicalDeviceIDProperties.deviceUUID is used.
2020-08-07 17:01:13 +02:00
..
dev xrt: Add missing SPDX tags 2020-03-23 17:29:43 -05:00
gui xrt: Tidy xrt_instance_create argument order and add doc-comment 2020-07-08 14:41:12 +00:00
oxr xrt: suggest correct GPU in xrGetVulkanGraphicsDevice() 2020-08-07 17:01:13 +02:00
prober st/p: Downgrade an "error" message to a "debug" message. 2020-08-05 11:12:16 -05:00
CMakeLists.txt build: Switch all CMake options to XRT_... to match what's used in source. 2020-05-12 11:52:51 -05:00
meson.build st/gui: Refactor gui code into it's own state tracker 2019-10-09 21:53:21 +01:00