llvmpipe/linear/tgsi: calculate num_texs properly for nir.
authorDave Airlie <airlied@redhat.com>
Mon, 10 Jul 2023 05:39:35 +0000 (15:39 +1000)
committerMarge Bot <emma+marge@anholt.net>
Wed, 12 Jul 2023 02:17:26 +0000 (02:17 +0000)
commit70f49c78cc73be0dfe96fbc68bfc07e17466db39
tree8611353e467e8985fb808f70b8b7f7e2d59d261b
parente43804ba65d525b61e9a5c783fdfd43e08af16e3
llvmpipe/linear/tgsi: calculate num_texs properly for nir.

This is a bit hacky, but it does the right thing and counts the number
of textures instructions so the linear path can work for multiple textures.

Reviewed-by: Brian Paul <brianp@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24066>
src/gallium/auxiliary/nir/nir_to_tgsi_info.c
src/gallium/drivers/llvmpipe/lp_state_fs.c
src/gallium/drivers/llvmpipe/lp_state_fs_analysis.c