zink: add a fs base key, fix optimal fs key packing
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Wed, 4 Jan 2023 19:54:25 +0000 (14:54 -0500)
committerMarge Bot <emma+marge@anholt.net>
Tue, 10 Jan 2023 00:51:24 +0000 (00:51 +0000)
commitb20df1abebed112b4bebc56102fa760fac9c804c
tree80f4af58b7827d86ef8f0ac426146679a65b7d63
parent8772651aa047fbd8987c3f8d9a493232abeffa0d
zink: add a fs base key, fix optimal fs key packing

the optimal fs key gets at most 16 bits, so it's crucial to only use
the ones that are needed in order to conserve bits for things needed
by all drivers

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20585>
src/gallium/drivers/zink/zink_compiler.c
src/gallium/drivers/zink/zink_context.c
src/gallium/drivers/zink/zink_program.c
src/gallium/drivers/zink/zink_program.h
src/gallium/drivers/zink/zink_program_state.hpp
src/gallium/drivers/zink/zink_shader_keys.h
src/gallium/drivers/zink/zink_state.c