nir: add nir_opt_move_load_ubo() optimization pass
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 26 Jan 2018 11:38:57 +0000 (12:38 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 16 Mar 2018 08:50:31 +0000 (09:50 +0100)
commitaf355aaa07173abdc6861992f4c05ad334b9595b
treed3c9a735002509e699e26314200c81e2c63abf26
parent9d0d806332a32cd60b4f53fe805650751001d169
nir: add nir_opt_move_load_ubo() optimization pass

This pass moves load UBO operations just before their first use,
loosely based on nir_opt_move_comparisons.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/compiler/Makefile.sources
src/compiler/nir/meson.build
src/compiler/nir/nir.h
src/compiler/nir/nir_opt_move_load_ubo.c [new file with mode: 0644]