lavapipe: fix pipeline handling for dynamic render zs state with pipeline library
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Wed, 11 May 2022 17:06:11 +0000 (13:06 -0400)
committerMarge Bot <emma+marge@anholt.net>
Tue, 17 May 2022 02:44:01 +0000 (02:44 +0000)
commit5f83571f9232a82315d800db7e5ea3ded23ce54c
tree519c1ce011defed635622964ac0617896b63beb0
parent0b2d383316af7efa6f970db5b8517a55a32dedf2
lavapipe: fix pipeline handling for dynamic render zs state with pipeline library

this is slightly more nuanced: if this is ONLY a fragment state,
pDepthStencilState must exist, but if it's BOTH fragment and output,
then pDepthStencilState must only exist if zs attachment is used

Fixes: d4d5a7abba7 ("lavapipe: implement EXT_graphics_pipeline_library")

Acked-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16457>
src/gallium/frontends/lavapipe/lvp_pipeline.c