From d4f3c794df04a797f32d6886a0216a0a4065efbc Mon Sep 17 00:00:00 2001 From: Jakob Bornecrantz Date: Tue, 19 Sep 2023 15:42:59 +0100 Subject: [PATCH] c/render: Don't enable depth testing and writing for mesh shader It's not used, so don't leave it on. --- src/xrt/compositor/render/render_gfx.c | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/src/xrt/compositor/render/render_gfx.c b/src/xrt/compositor/render/render_gfx.c index 197282b27..7b941c577 100644 --- a/src/xrt/compositor/render/render_gfx.c +++ b/src/xrt/compositor/render/render_gfx.c @@ -1,4 +1,4 @@ -// Copyright 2019-2022, Collabora, Ltd. +// Copyright 2019-2023, Collabora, Ltd. // SPDX-License-Identifier: BSL-1.0 /*! * @file @@ -262,17 +262,11 @@ create_mesh_pipeline(struct vk_bundle *vk, VkPipelineDepthStencilStateCreateInfo depth_stencil_state = { .sType = VK_STRUCTURE_TYPE_PIPELINE_DEPTH_STENCIL_STATE_CREATE_INFO, - .depthTestEnable = VK_TRUE, - .depthWriteEnable = VK_TRUE, + .depthTestEnable = VK_FALSE, + .depthWriteEnable = VK_FALSE, .depthCompareOp = VK_COMPARE_OP_LESS_OR_EQUAL, - .front = - { - .compareOp = VK_COMPARE_OP_ALWAYS, - }, - .back = - { - .compareOp = VK_COMPARE_OP_ALWAYS, - }, + .front = {.compareOp = VK_COMPARE_OP_ALWAYS}, + .back = {.compareOp = VK_COMPARE_OP_ALWAYS}, }; VkPipelineViewportStateCreateInfo viewport_state = {