zink: pre-hash gfx-pipeline-state
authorAntonio Caggiano <antonio.caggiano@collabora.com>
Fri, 24 Jul 2020 14:50:15 +0000 (16:50 +0200)
committerAntonio Caggiano <antonio.caggiano@collabora.com>
Fri, 7 Aug 2020 13:57:59 +0000 (15:57 +0200)
commit1185b3f32d97a260dfd388bd0ca032bc6a380bbf
tree700f9d4f79e8bccffa18c953d025a5eea423688c
parent7be12df5e621e6d339b1dca3fb0a84e9b8550337
zink: pre-hash gfx-pipeline-state

Store a hash in `zink_gfx_pipeline_state` to keep track of state
changes and avoid to recompute it when the state has not changed.

Signed-off-by: Antonio Caggiano <antonio.caggiano@collabora.com>
Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6061>
src/gallium/drivers/zink/zink_context.c
src/gallium/drivers/zink/zink_pipeline.h
src/gallium/drivers/zink/zink_program.c
src/gallium/drivers/zink/zink_state.c