Intel® graphics drivers and software, compatibility, troubleshooting, performance, and optimization
20748 Discussions

Vulkan depth test fails when depth buffer write is disabled and gl_FragDepth is updated in fragment shader.


The following conditions are required to experience the issue:

- Depth buffer write is disabled

- The z coordinates of vertices in the vertex shader is outside the [0,1] range

- gl_FragDepth is updated in the fragment shader

Under these conditions, the geometry is not drawn.


Intel Iris Plus Graphics 640 with driver


Here is some sample code to reproduce the issue

Based on The Practical Approach to Vulkan sample 1. I just added a bias to the z coordinate of vertices, disabled depth writes and added a line in the fragment shader to update gl_FragDepth. In this configuration, nothing is drawn.


Enabling depth buffer writes makes the geometry appear.

0 Kudos
1 Reply

Hello Flyinghead,


Thank you for posting on the Intel® communities.


We are checking this thread and based on the details described we noticed that this seems to be related to the developing of a custom application/software.


In this case, we advise you to contact our Developer Zone Community so that we can check this behavior further. You can find the links below:


Intel® Developer Zone


Registration Intel® Developer Zone


You may also find helpful to address this inquiry with the Vulkan® Graphics API support.




Andrew G.

Intel Customer Support Technician

A Contingent Worker at Intel

0 Kudos