The open source OpenXR runtime

ipc: Avoid printing non-errors

Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2619>

authored by

Jakob Bornecrantz and committed by
Marge Bot
a320964a 80f8afd8

+11
+11
src/xrt/ipc/client/ipc_client_compositor.c
··· 1 1 // Copyright 2020, Collabora, Ltd. 2 + // Copyright 2025, NVIDIA CORPORATION. 2 3 // SPDX-License-Identifier: BSL-1.0 3 4 /*! 4 5 * @file ··· 288 289 &use_dedicated_allocation, // out 289 290 remote_handles, // handles 290 291 XRT_MAX_SWAPCHAIN_IMAGES); // handles 292 + if (xret == XRT_ERROR_SWAPCHAIN_FLAG_VALID_BUT_UNSUPPORTED) { 293 + // Don't error print this, will spam CTS logs. 294 + IPC_DEBUG(icc->ipc_c, "Got XRT_ERROR_SWAPCHAIN_FLAG_VALID_BUT_UNSUPPORTED"); 295 + return xret; 296 + } 291 297 IPC_CHK_AND_RET(icc->ipc_c, xret, "ipc_call_swapchain_create"); 292 298 293 299 struct ipc_client_swapchain *ics = U_TYPED_CALLOC(struct ipc_client_swapchain); ··· 345 351 handles, // handles 346 352 image_count, // handles 347 353 &id); // out 354 + if (xret == XRT_ERROR_SWAPCHAIN_FLAG_VALID_BUT_UNSUPPORTED) { 355 + // Don't error print this, not an error. 356 + IPC_DEBUG(icc->ipc_c, "Got XRT_ERROR_SWAPCHAIN_FLAG_VALID_BUT_UNSUPPORTED"); 357 + return xret; 358 + } 348 359 IPC_CHK_AND_RET(icc->ipc_c, xret, "ipc_call_swapchain_import"); 349 360 350 361 struct ipc_client_swapchain *ics = U_TYPED_CALLOC(struct ipc_client_swapchain);