c/util: Use GPU index specified by XRT_COMPOSITOR_FORCE_CLIENT_GPU_INDEX

This commit is contained in:
nima01 2021-11-18 14:14:32 +00:00 committed by Jakob Bornecrantz
parent 0a9b098a37
commit 70263a6b16

View file

@ -60,6 +60,9 @@ fill_in_results(struct vk_bundle *vk, const struct comp_vulkan_arguments *vk_arg
// Grab the device index from the vk_bundle
vk_res->selected_gpu_index = vk->physical_device_index;
// Grab the suggested device index for the client to use
vk_res->client_gpu_index = vk_args->client_gpu_index;
// Store physical device UUID for compositor in settings
if (vk_res->selected_gpu_index >= 0) {
if (get_device_uuid(vk, vk_res->selected_gpu_index, vk_res->selected_gpu_deviceUUID)) {