diff --git a/src/panfrost/vulkan/panvk_vX_pipeline.c b/src/panfrost/vulkan/panvk_vX_pipeline.c index de8e7787be3..3c8cd0fe9d6 100644 --- a/src/panfrost/vulkan/panvk_vX_pipeline.c +++ b/src/panfrost/vulkan/panvk_vX_pipeline.c @@ -685,6 +685,9 @@ static void panvk_pipeline_builder_parse_zs(struct panvk_pipeline_builder *builder, struct panvk_pipeline *pipeline) { + if (!builder->use_depth_stencil_attachment) + return; + pipeline->zs.z_test = builder->create_info.gfx->pDepthStencilState->depthTestEnable; pipeline->zs.z_write = builder->create_info.gfx->pDepthStencilState->depthWriteEnable; pipeline->zs.z_compare_func =