radeonsi: precompute si_*_descriptors_idx in si_shader_selector
authorMarek Olšák <marek.olsak@amd.com>
Sat, 15 Aug 2020 04:56:39 +0000 (00:56 -0400)
committerMarek Olšák <marek.olsak@amd.com>
Thu, 3 Sep 2020 03:03:00 +0000 (23:03 -0400)
commit966307983bda3fc6141a33bb5300a91fd15d5551
tree99a254a1a370c466b08974edceb7699adacfb217
parentcbfc13b27c4ab30037c42b75bf6f7db17ff3d338
radeonsi: precompute si_*_descriptors_idx in si_shader_selector

It helps remove one use of sel->type.

Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6340>
src/gallium/drivers/radeonsi/si_compute.c
src/gallium/drivers/radeonsi/si_descriptors.c
src/gallium/drivers/radeonsi/si_shader.h
src/gallium/drivers/radeonsi/si_state_shaders.c