The open source OpenXR runtime
0
fork

Configure Feed

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

c/render: Don't enable depth testing and writing for mesh shader

It's not used, so don't leave it on.

+5 -11
+5 -11
src/xrt/compositor/render/render_gfx.c
··· 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 ··· 262 262 263 263 VkPipelineDepthStencilStateCreateInfo depth_stencil_state = { 264 264 .sType = VK_STRUCTURE_TYPE_PIPELINE_DEPTH_STENCIL_STATE_CREATE_INFO, 265 - .depthTestEnable = VK_TRUE, 266 - .depthWriteEnable = VK_TRUE, 265 + .depthTestEnable = VK_FALSE, 266 + .depthWriteEnable = VK_FALSE, 267 267 .depthCompareOp = VK_COMPARE_OP_LESS_OR_EQUAL, 268 - .front = 269 - { 270 - .compareOp = VK_COMPARE_OP_ALWAYS, 271 - }, 272 - .back = 273 - { 274 - .compareOp = VK_COMPARE_OP_ALWAYS, 275 - }, 268 + .front = {.compareOp = VK_COMPARE_OP_ALWAYS}, 269 + .back = {.compareOp = VK_COMPARE_OP_ALWAYS}, 276 270 }; 277 271 278 272 VkPipelineViewportStateCreateInfo viewport_state = {