panfrost: Call tgsi_to_nir earlier
authorAlyssa Rosenzweig <alyssa@collabora.com>
Tue, 26 Apr 2022 17:58:19 +0000 (13:58 -0400)
committerAlyssa Rosenzweig <alyssa@collabora.com>
Mon, 2 May 2022 13:55:49 +0000 (09:55 -0400)
commitb834dea8896c2f55457c98a7cd2ef2459df891e1
tree9c9bd5a0b93271476a729bc902d7eb924733b306
parent3f505a8bc164e3ccf23ef43b268c3548c7b26621
panfrost: Call tgsi_to_nir earlier

This ensures we always have NIR available in the shader state. It also saves a
(trivial) amount of recomputation if multiple TGSI variants are needed.

Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16173>
src/gallium/drivers/panfrost/pan_assemble.c
src/gallium/drivers/panfrost/pan_compute.c
src/gallium/drivers/panfrost/pan_context.c
src/gallium/drivers/panfrost/pan_context.h