The open source OpenXR runtime
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

c/client: Implement transition image stubs

+33 -3
+8 -1
src/xrt/compositor/client/comp_d3d11_client.cpp
··· 1 - // Copyright 2019-2022, Collabora, Ltd. 1 + // Copyright 2019-2023, Collabora, Ltd. 2 2 // SPDX-License-Identifier: BSL-1.0 3 3 /*! 4 4 * @file ··· 293 293 } 294 294 295 295 static xrt_result_t 296 + client_d3d11_swapchain_barrier_image(struct xrt_swapchain *xsc, enum xrt_barrier_direction direction, uint32_t index) 297 + { 298 + return XRT_SUCCESS; 299 + } 300 + 301 + static xrt_result_t 296 302 client_d3d11_swapchain_release_image(struct xrt_swapchain *xsc, uint32_t index) 297 303 { 298 304 struct client_d3d11_swapchain *sc = as_client_d3d11_swapchain(xsc); ··· 436 442 sc->base.base.destroy = client_d3d11_swapchain_destroy; 437 443 sc->base.base.acquire_image = client_d3d11_swapchain_acquire_image; 438 444 sc->base.base.wait_image = client_d3d11_swapchain_wait_image; 445 + sc->base.base.barrier_image = client_d3d11_swapchain_barrier_image; 439 446 sc->base.base.release_image = client_d3d11_swapchain_release_image; 440 447 sc->c = c; 441 448 sc->base.base.image_count = image_count;
+8 -1
src/xrt/compositor/client/comp_d3d12_client.cpp
··· 1 - // Copyright 2019-2022, Collabora, Ltd. 1 + // Copyright 2019-2023, Collabora, Ltd. 2 2 // SPDX-License-Identifier: BSL-1.0 3 3 /*! 4 4 * @file ··· 367 367 } 368 368 369 369 static xrt_result_t 370 + client_d3d12_swapchain_barrier_image(struct xrt_swapchain *xsc, enum xrt_barrier_direction direction, uint32_t index) 371 + { 372 + return XRT_SUCCESS; 373 + } 374 + 375 + static xrt_result_t 370 376 client_d3d12_swapchain_release_image(struct xrt_swapchain *xsc, uint32_t index) 371 377 { 372 378 struct client_d3d12_swapchain *sc = as_client_d3d12_swapchain(xsc); ··· 537 543 sc->base.base.destroy = client_d3d12_swapchain_destroy; 538 544 sc->base.base.acquire_image = client_d3d12_swapchain_acquire_image; 539 545 sc->base.base.wait_image = client_d3d12_swapchain_wait_image; 546 + sc->base.base.barrier_image = client_d3d12_swapchain_barrier_image; 540 547 sc->base.base.release_image = client_d3d12_swapchain_release_image; 541 548 sc->c = c; 542 549 sc->base.base.image_count = image_count;
+10 -1
src/xrt/compositor/client/comp_gl_client.c
··· 1 - // Copyright 2019-2021, Collabora, Ltd. 1 + // Copyright 2019-2023, Collabora, Ltd. 2 2 // SPDX-License-Identifier: BSL-1.0 3 3 /*! 4 4 * @file ··· 149 149 150 150 // Pipe down call into native swapchain. 151 151 return xrt_swapchain_wait_image(&sc->xscn->base, timeout_ns, index); 152 + } 153 + 154 + static xrt_result_t 155 + client_gl_swapchain_barrier_image(struct xrt_swapchain *xsc, enum xrt_barrier_direction direction, uint32_t index) 156 + { 157 + return XRT_SUCCESS; 152 158 } 153 159 154 160 static xrt_result_t ··· 493 499 } 494 500 if (NULL == sc->base.base.wait_image) { 495 501 sc->base.base.wait_image = client_gl_swapchain_wait_image; 502 + } 503 + if (NULL == sc->base.base.barrier_image) { 504 + sc->base.base.barrier_image = client_gl_swapchain_barrier_image; 496 505 } 497 506 if (NULL == sc->base.base.release_image) { 498 507 sc->base.base.release_image = client_gl_swapchain_release_image;
+7
src/xrt/compositor/client/comp_vk_client.c
··· 295 295 } 296 296 297 297 static xrt_result_t 298 + client_vk_swapchain_barrier_image(struct xrt_swapchain *xsc, enum xrt_barrier_direction direction, uint32_t index) 299 + { 300 + return XRT_SUCCESS; 301 + } 302 + 303 + static xrt_result_t 298 304 client_vk_swapchain_release_image(struct xrt_swapchain *xsc, uint32_t index) 299 305 { 300 306 COMP_TRACE_MARKER(); ··· 632 638 sc->base.base.destroy = client_vk_swapchain_destroy; 633 639 sc->base.base.acquire_image = client_vk_swapchain_acquire_image; 634 640 sc->base.base.wait_image = client_vk_swapchain_wait_image; 641 + sc->base.base.barrier_image = client_vk_swapchain_barrier_image; 635 642 sc->base.base.release_image = client_vk_swapchain_release_image; 636 643 sc->base.base.reference.count = 1; 637 644 sc->base.base.image_count = xsc->image_count; // Fetch the number of images from the native swapchain.