iris: Pull brw_nir_analyze_ubo_ranges() call out setup_uniforms
authorCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Thu, 23 May 2019 08:08:15 +0000 (01:08 -0700)
committerCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Mon, 3 Jun 2019 21:14:45 +0000 (14:14 -0700)
commit518f83236b90b21e08585ada4555655c8f14b0ba
tree39dea6c999e931337d8b764bf2878ab52aa678d2
parent1f8546ba2f9b48d6982c8b0e28cdb6b7417e7d3f
iris: Pull brw_nir_analyze_ubo_ranges() call out setup_uniforms

We'll change iris to perform lowering of the binding table indices
earlier (before the backend kick in), but the backend compiler uses
the result of the analysis to identify load_ubo intrinsics, so we do
the analysis after the lowering to have the right indices.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/gallium/drivers/iris/iris_program.c