tu: Fix setting RB_DEPTH_CNTL::Z_CLAMP_ENABLE
authorConnor Abbott <cwabbott0@gmail.com>
Wed, 28 Sep 2022 11:53:09 +0000 (13:53 +0200)
committerMarge Bot <emma+marge@anholt.net>
Thu, 29 Sep 2022 10:47:52 +0000 (10:47 +0000)
commit1ca893084503933452fa066f79a824ae628db22d
tree9430c192ce8a317ae57e0d172899c4e936425250
parent0b131b3e99c292d43df6f592e2cff312371bd26c
tu: Fix setting RB_DEPTH_CNTL::Z_CLAMP_ENABLE

I missed this when enabling pipeline libraries, and we were also setting
this to the wrong thing. Previously we were using rasterization state
when parsing depth/stencil indirectly via builder->depth_clip_disable,
which is not allowed with pipeline libraries. Fixing this is a bit
painful because now RB_DEPTH_CNTL can depend on state from both the
fragment shader library and the pre-rasterization library, in addition
to being disabled via output interface state.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18861>
src/freedreno/vulkan/tu_cmd_buffer.c
src/freedreno/vulkan/tu_pipeline.c
src/freedreno/vulkan/tu_pipeline.h