lavapipe: try harder to reuse pipeline layouts during merge
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Wed, 1 Feb 2023 20:04:53 +0000 (15:04 -0500)
committerMarge Bot <emma+marge@anholt.net>
Thu, 2 Feb 2023 04:49:42 +0000 (04:49 +0000)
commitfd0562693d6b8cdf81fece8368a21cf4777fc88d
treed76b8a362f9d57eb489cb5b55ca026c90ba06613
parenta1a859328b1da23c9b9179aae8f606fcb674f655
lavapipe: try harder to reuse pipeline layouts during merge

the original code was quite conservative and always created a new layout,
but many times this is unnecessary, and the original layout can just be refcounted
since it doesn't need to be merged

Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21051>
src/gallium/frontends/lavapipe/lvp_pipeline.c