zink: add gfx pipeline lookup shortcut
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Thu, 11 Aug 2022 13:10:08 +0000 (09:10 -0400)
committerMarge Bot <emma+marge@anholt.net>
Sat, 20 Aug 2022 01:27:13 +0000 (01:27 +0000)
commit1d521a5c15f47c986c322d542aef97549fa827b7
treec023dcd7b7b3330fd95b17f597a620b957f5cdfc
parent6a836eaff5511abc930fc479b2014c003117942c
zink: add gfx pipeline lookup shortcut

if the final hash was the same as the last-used hash for this program,
it should be safe to reuse the last pipeline object in the presence of
dynamic vertex input since the number of permutations is low

Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18135>
src/gallium/drivers/zink/zink_program_state.hpp
src/gallium/drivers/zink/zink_types.h