panvk: Skip ZS setup if there is no depth/stencil attachment

Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15382>
This commit is contained in:
Jason Ekstrand
2022-03-11 14:38:08 -06:00
committed by Marge Bot
parent 4f843db0a1
commit 17e79b044e

View File

@@ -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 =