anv/apply_pipeline_layout: Apply dynamic offsets in load_ssbo_descriptor
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 20 Jan 2021 21:59:23 +0000 (15:59 -0600)
committerMarge Bot <eric+marge@anholt.net>
Wed, 17 Mar 2021 17:49:59 +0000 (17:49 +0000)
commit42de744155b801c45c80dbaa69ea280c4a5612ba
treee48f1e80999379724974f4136318e9f2996bdc2b
parent8a61e3a0c0704dcc81fcccb17b815f5f5475b7e0
anv/apply_pipeline_layout: Apply dynamic offsets in load_ssbo_descriptor

This function has exactly two call sites.  The first is where we had
these calculations before.  The second only cares about the size of the
SSBO so all the extra code we emit will be dead.  However, NIR should
easily clean that up and this lets us consolidate things a bit better.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8635>
src/intel/vulkan/anv_nir_apply_pipeline_layout.c