From eb81806cee18170ff3ea84c14443e703e202c652 Mon Sep 17 00:00:00 2001 From: Unknown <0.tamas.marton@gmail.com> Date: Mon, 20 Apr 2020 13:45:17 +0100 Subject: [PATCH] fixed pipeline depth setup --- driver/draw.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/driver/draw.c b/driver/draw.c index 3013f1b..114724d 100644 --- a/driver/draw.c +++ b/driver/draw.c @@ -81,9 +81,9 @@ static uint32_t drawCommon(VkCommandBuffer commandBuffer) //Configuration Bits clFit(commandBuffer, &commandBuffer->binCl, V3D21_CONFIGURATION_BITS_length); clInsertConfigurationBits(&commandBuffer->binCl, - cb->graphicsPipeline->depthWriteEnable, //earlyz updates enable + 1, //earlyz updates enable cb->graphicsPipeline->depthTestEnable, //earlyz enable - cb->graphicsPipeline->depthWriteEnable, //z updates enable + cb->graphicsPipeline->depthWriteEnable && cb->graphicsPipeline->depthTestEnable, //z updates enable cb->graphicsPipeline->depthTestEnable ? getCompareOp(cb->graphicsPipeline->depthCompareOp) : V3D_COMPARE_FUNC_ALWAYS, //depth compare func 0, //coverage read mode 0, //coverage pipe select